Site Tools


Hotfix release available: 2025-05-14b "Librarian". upgrade now! [56.2] (what's this?)
Hotfix release available: 2025-05-14a "Librarian". upgrade now! [56.1] (what's this?)
New release available: 2025-05-14 "Librarian". upgrade now! [56] (what's this?)
snippets
#Linux Sleep command
sudo systemctl suspend
# Full Dig
dig +noall +answer +multiline [DOMAIN] any
#strace to see output of a process
strace -p<procid> -s9999 -e write
#Calculate a fingerprint
ssh-keygen -l -f $1
#Deputtify a key
ssh-keygen -i -f $1 > $1.openssh.pub
#Fix the missing icons issue
pkill nemo-desktop; nemo-desktop &
#Check the weather
/usr/bin/curl https://wttr.in
#The netstat flags you can never remember
netstat -plnt
#Youtube-dl video
youtube-dl -f mp4 "[YT-LINK]" -o "[TITLE].mp4"
 
#Youtube-dl audio only
youtube-dl -x --audio-format mp3 [YT-LINK]
# Find a repeated word via egrep
egrep "(\b[a-zA-Z]+) \1\b" file.txt
# If a game gets hosed
1. Navigate to your steamapps directory. Mine is /media/gadhra/Games/Steam/steamapps/common/
2. cd into the Proton version you're running (i.e. cd 5.13)
3. rm -r -f the "dist" directory
4. rerun the game, it'll unpack the distribution from the tar in the directory.

AWS Usernames

  • Amazon Linux 2: ec2-user
  • CentOS: centos
  • Debian: admin or root
  • Fedora: ec2-user or fedora
  • SUSE: ec2-user or root
  • Ubuntu: ubuntu
snippets.txt · Last modified: 2024/10/06 10:27 by 127.0.0.1