2024 m. gegužės 29 d., trečiadienis

2024 m. gegužės 28 d., antradienis

Uninstalling odoo module from cli

Add shell argument in after odoo-bin:


And run:

module_name="module_to_uninstall_name"
self.env['ir.module.module'].search([('name', '=', module_name)]).button_immediate_uninstall()

2024 m. gegužės 26 d., sekmadienis

Intercepting Android app data with BurpSuite and Genymotion

1. Download  🔗️ BurpSuite, setup proxy listiner

2. Setup certificates so we can listen so ssl trafic 


Download certificate

curl 127.0.0.1:8080/cert -o cert.der

Convert certificate file

openssl x509 -inform der -in cert.der -out burp.pem
 

List connected Android devices

adb devices -l

Remount read only partition

mount -o remount,rw /

Push certificate to Android device. 

sudo adb push 9a5ba575.0 /system/etc/security/cacerts/

3. Set proxy mode to Genymotion programmatically:

adb shell settings put global http_proxy 192.168.1.112 # set proxy
adb shell settings put global http_proxy :0 # unset proxy

More:

🔗️ Reference Video


2024 m. gegužės 21 d., antradienis

Naudingos svetainės

🔗️ Pay wall apėjimas naujienų ir kituose portaluose.

🔗️ Skirtingi ekranai. Netikro teksto generavimas kaip xmatrix tik svetainėje.

🔗️ Parašius yy po youtube, galima atsisiųsti dainą.

rclone

rclone

rclone config 

--dry-run just for testing without copping ex:

$ rclone sync --dry-run

Copying file:

$ rclone copy /from_linux.txt remotedrive:"/to_remote_drive_dir/"

Syncing folder:

$ rclone sync /backups remotedrive:"/backups"

nginx

nginx basic commands



Check Configuration syntax before reloading
$ nginx -t

 
Display current configurations:
$ nginx -T

 
Reload nginx
$ nginx -s reload

How to make nginx-proxy-manager private

This will show you how to setup ngin-proxy-manager so that it's not publicly available

Change docker compose:

      - '127.0.0.1:81:81' # Admin Web Port


sudo docker-compose up -d

 Connect with Visual Studio Code, 81 port will be automatically forwarder and be accessible.

Configuring Multithreading Mode with Odoo v17 Using Nginx Proxy Manager

 First download Nginx Proxy Manager

This tutorial assumes you are using nginx proxy manager docker image.

 

After setup add default configuration

Create 2 files with content:

Included at the top of the main http block

/opt/docker/nginx-proxy-manager/data/nginx/custom/http_top.conf

map $http_upgrade $connection_upgrade {
  default upgrade;
  ''      close;
}

Included at the end of every proxy server block:/opt/docker/nginx-proxy-manager/data/nginx/custom/server_proxy.conf


location /websocket {
    proxy_pass http://127.0.0.1:8072;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection $connection_upgrade;
    proxy_set_header X-Forwarded-Host $http_host;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header X-Real-IP $remote_addr;

    add_header Strict-Transport-Security "max-age=31536000; includeSubDomains";
    proxy_cookie_flags session_id samesite=lax secure;  # requires nginx 1.19.8
}


Check if port 8072 is opened:

sudo netstat -atlp | grep 8072