I hereby claim:
- I am aptitudepi on github.
- I am dvkb (https://keybase.io/dvkb) on keybase.
- I have a public key whose fingerprint is 7301 FA8F 5D53 3EF7 9406 95FC DFC7 2721 BE0B DDE2
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| # pip3 install git-filter-repo | |
| gh repo list --json name -q '.[].name' --limit 1000 | while read -r repo; do ─╯ | |
| gh repo clone "$repo" | |
| cd "$repo" | |
| git-filter-repo --email-callback 'return email.replace(b"old@email.com", b"new@email.com")' | |
| git push | |
| cd .. | |
| done |
| find . -type f -exec cat {} \; | nl | grep "From" | grep -o '[[:alnum:]+\.\_\-]*@[[:alnum:]+\.\_\-]*' | sort -fu | awk '{printf "%s | ",$0} END {print ""}' | rev | cut -c 4- | rev |
| . | |
| .. | |
| ........ | |
| @ | |
| * | |
| *.* | |
| *.*.* | |
| 🎠|
| . | |
| .. | |
| ........ | |
| @ | |
| * | |
| *.* | |
| *.*.* | |
| 🎠|
apt-get update && apt-get upgrade && apt-get dist-upgrade
apt-get install ufw && ufw enable
Turn off root in sshd_config (Covered)
if grep -qF 'PermitRootLogin' /etc/ssh/sshd_config; then sed -i 's/^.*PermitRootLogin.*$/PermitRootLogin no/' /etc/ssh/sshd_config; else echo 'PermitRootLogin no' >> /etc/ssh/sshd_config; fi
PermitRootLogin no
| #!/usr/bin/ruby | |
| first_line = true | |
| while line = STDIN.gets | |
| line.chomp! | |
| if line =~ /^>/ | |
| puts unless first_line | |
| print line[1..-1] |