Django and postgres 15
Connecting to postgres 15 is a bit of a challenge. Hope this helps: As for the django part: And you need to set pg_hba.conf to (see noted line, and restart…
Connecting to postgres 15 is a bit of a challenge. Hope this helps: As for the django part: And you need to set pg_hba.conf to (see noted line, and restart…
Getting any of these? It seems the archive key was changed. The correct one is at: For me it helped to place this file in `/usr/share/keyrings/tor-archive-keyring.gpg` :
python3 -m venv --upgrade /opt/venv/
export GIT_SSH_COMMAND="ssh -o IdentitiesOnly=yes -i ~/.ssh/id_rsa_blah" git push
apt list --installed | grep postg pg_dropcluster 15 main --stop pg_upgradecluster 13 main service postgresql@13-main stop service postgresql@15-main start pg_lsclusters pg_dropcluster 13 main apt-get purge postgresql-13 postgresql-client-13
cat /etc/os-release; read -p enter; apt update; read -p enter; apt upgrade; apt full-upgrade; sed -i 's/bullseye/bookworm/g' /etc/apt/sources.list; grep -ir bull /etc/apt; read -p ok; apt clean; apt update; apt…
To add a password to your site:
To add an existing user to an existing Linux group:
Ever found yourself using a for/while loop using SSH in the loop, only to find out your loop only runs once? Your stdin is captured by ssh… This can be…
TMP="$(mktemp -d)" trap 'rm -rf -- "$TMP"' EXIT
My remote hosts are on srvXX.remote.com. I have a jump host jump.remote.com. I want to be able to type ssh srv42.remote.com and connect, without first having to ssh to jump.remote.com.…
Don’t follow the original guide You need to boot dtbo and boot too. Thanks to: https://www.reddit.com/r/LineageOS/comments/11y3aur/comment/jdafm2k/?utm_source=share&utm_medium=web2x&context=3
Note to self:
I got this: If you want to know more, enable log_errors
Add --rsync-path="ionice -c 3 nice rsync" to your rsync command (on sending side) Friendly for both sender and receiver: ionice -c3 nice rsync --rsync-path="ionice -c 3 nice rsync"
Getting this? Means you might have used su. Just do su - or do a proper login, so your $PATH is set correctly.
Then update, apt full-upgrade reboot
Prerequisites: Howto: 1. Create ssh keys (without passphrase) on the linux host: ssh-keygen 2. Copy ~/.ssh/id_rsa.pub , put in a .txt file, upload to routeros 3. Create a read only…
| todateiso8601
More info and source: https://sharats.me/posts/shell-script-best-practices/
You probably upgraded go. You need to remove /usr/local/go . Then reinstall go
rpm -qa –qf “%{NAME}\n”
find . -depth -name '* *' \ | while IFS= read -r f ; do mv -i "$f" "$(dirname "$f")/$(basename "$f"|tr ' ' _)" ; done
python -c ‘import pty; pty.spawn(“/bin/bash”)’ yay python
sort -t . -k 3,3n -k 4,4n IPs
Add to .bashrc: export PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND ;} ip=\$( echo \$PWD | grep -oE '{1,3}\.{1,3}\.{1,3}\.{1,3}' ) " Now if you browse to/in a directory which has an ipv4 ip, the IP will…
echo "===SUMMARY===";grep . */report/notes.txt| while read line; do IP=$( echo -ne $line|cut -d'/' -f1| tr -d '\n' ); ] && echo; echo -n $IP ; echo -n $line | cut…
Clone the repo: ./configure && make && sudo make install cp src/proxychains.conf /etc/proxychains.conf && vi /etc/proxychains.conf echo “alias p=’/usr/local/bin/proxychains4′” >> ~/.bashrc && . .bashrc p ssh xx@ip