Notes
- Reverting back git history from a commit:
git revert --no-commit 0766c053..HEAD
git commit
- getting the IP Address quickly in most linux systems including termux:
ip a | grep inet
- Downloading protected PDFs from google drive and having them be searchable:
- Finding the public IP of a computer or server
curl ipinfo.io/ip
(Optional) Create a bash alias like the following to make it even easier
alias whatismypublicip='curl ipinfo.io/ip'
-
Removing sensitive data after having it be committed to github
Use git filter branch
-
Getting saved wifi passwords from a linux machine
cd /etc/NetworkManager/system-connections/
ls
# find the correct connection-name / wifi SSID
cat <connection-name> | grep psk