sudo systemctl list-units
Software Developer, Programming, Web resources and entertaiment. Desarrollo de software, programaciĆ³n, recursos web y entretenimiento.
Ubuntu 18.04.5 LTS (Bionic Beaver)
pgadmin4-desktop pgadmin4-server pgadmin4-web
ImportError: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /usr/pgadmin4/venv/lib/python3.8/site-packages/cryptography/hazmat/bindings/_rust.abi3.so)
fincahuanaco ~ ldd --version
ldd (Ubuntu GLIBC 2.27-3ubuntu1.4) 2.27
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
fincahuanaco ~ sudo /usr/pgadmin4/bin/setup-web.sh
ImportError: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by
/usr/pgadmin4/venv/lib/python3.8/site-packages/cryptography/hazmat/bindings/_rust.abi3.so)
Error setting up server mode. Please examine the output above.
Docker Alternative
fincahuanaco ~ docker pull dpage/pgadmin4
sudo docker run -p 5050:5050 -e 'PGADMIN_DEFAULT_EMAIL=email@gmail.com' -e 'PGADMIN_DEFAULT_PASSWORD=password' -e 'PGADMIN_LISTEN_PORT=5050' -d dpage/pgadmin4
sudo docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
2b0f1c329504 dpage/pgadmin4 "/entrypoint.sh" 25 minutes ago Up 25 minutes awesome_darwin
sudo docker stop 2b0f1c329504
sudo docker inspect 2b0f1c329504 | grep IPAddress #discovery ip
#force use local network
sudo docker run -p 5050:5050 --network host -e 'PGADMIN_DEFAULT_EMAIL=email@gmail.com' -e 'PGADMIN_DEFAULT_PASSWORD=password' -e 'PGADMIN_LISTEN_PORT=5050' -d dpage/pgadmin4
Resume docker containers
$ sudo docker start $(sudo docker ps -q -l)
Docker References:
[1] https://hub.docker.com/r/dpage/pgadmin4/
[2] Deploy https://www.pgadmin.org/docs/pgadmin4/latest/container_deployment.html
[3] https://stackoverflow.com/questions/53610385/docker-postgres-and-pgadmin-4-connection-refused
[4] Resume docker container https://stackoverflow.com/questions/21928691/how-to-continue-a-docker-container-which-has-exited
Resources:
[1] AI Animation https://vivago.ai/video-generation
[2] Remove BG https://www.remove.bg/upload
Code
import requests
proxies = {
'http': 'http://72.10.160.172:9739',
}
url = 'https://httpbin.io/ip'
response = requests.get(url, proxies=proxies)
print(response.json())
References:
[1] https://www.zenrows.com/blog/python-requests-proxy#perform-requests
[2] https://free-proxy-list.net/
[3] https://stackoverflow.com/questions/57579359/use-python-sshtunnel-for-port-forwarding-rest-request
#!/bin/bash
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8069
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 443 -j REDIRECT --to-port 8070
iptables-save
Permanent in system by:
$sudo vi /etc/rc.local
References:
https://www.odoo.com/forum/help-1/change-to-port-80-instead-of-8069-23031
select name->'es_PE',* from product_template where name->>'es_PE' like '%MEGACI%'
References:
[1] https://popsql.com/learn-sql/postgresql/how-to-query-a-json-column-in-postgresql
References:
[1] https://pendrivelinux.com/vga-boot-modes-to-set-screen-resolution/
$sudo adduser pharmaquipa
$sudo
usermod -aG sudo
pharmaquipa
#add to sudo group
References
[1] https://www.digitalocean.com/community/tutorials/how-to-create-a-new-sudo-enabled-user-on-ubuntu
[2] https://phoenixnap.com/kb/how-to-create-sudo-user-on-ubuntu
/usr/lib/jvm/java-8-openjdk-amd64/bin/java -jar ./facturadorApp-2.1.jar server prod.yaml
References:
[1] Make temp certificate for test https://llama.pe/facturador-sunat-see-sfs-certificado-digital
Winamp skins for Linux
https://lunduke.substack.com/p/miss-winamp-try-audacious-the-winamp
Using previous virtual environment (~python 3.10)
pip install --upgrade pip
pip install lxml==5.1.0
pip3 install Werkzeug==2.0.2
pip install pyOpenSSL
pip3 install docutils
pip3 install num2words
Trying on python3.8 by empy virtual environment
python3.8 -m pip install virtualenv
python3.8 -m virtualenv test
source test/bin/activate
sudo apt install python3.8-dev
pip install -r requirements.txt
python3 odoo-bin --http-port=1616 -d enter02
remove credential:
ls /var/lib/pgadmin/storage
pgadmin4 Online
[1] https://www.pgadmin.org/download/pgadmin-4-python
Enable remote access to pgadmin4
$vi pgadmin4/lib/python3.10/site-packages/pgadmin4/config.py
[1] https://www.digitalocean.com/community/tutorials/how-to-install-configure-pgadmin4-server-mode
References:
https://gcore.com/learning/how-to-install-pgadmin4-on-ubuntu/
Database size
select
table_name,
pg_size_pretty(pg_total_relation_size(quote_ident(table_name))),
pg_total_relation_size(quote_ident(table_name))
from information_schema.tables
where table_schema = 'public'
order by 3 desc;
References:
https://stackoverflow.com/questions/21738408/postgresql-list-and-order-tables-by-size
Merge Video and Audio
ffmpeg -i video.mp4 -i audio.mp3 -c:v copy -c:a aac output.mp4
bios.forceSetupOnce = "TRUE"
bios.bootDelay = "xxxx"
Resources
[1] Android images http://www.osboxes.org/android-x86/
References
[1] https://kb.vmware.com/s/article/1004129
[2] http://siliseed.com/2013/08/instalar-android-en-una-maquina-virtual-windows.html
[3] https://android.stackexchange.com/questions/141700/how-to-fix-android-x86-install-on-vmware
[4] https://android.stackexchange.com/questions/144535/android-x86-marshmallow-not-booting-on-virtualbox-and-vmware-workstation
Obtener numero de partida
https://www.sunarp.gob.pe/bus-personas-juridicas.asp
Consulta partida
https://conoce-aqui.sunarp.gob.pe/conoce-aqui/inicio
Inspect/canvas/copy/Image DATA-URL (to get the page image)
[1] Diario/Seq https://apps.odoo.com/apps/modules/17.0/sequence_for_journal