Skip to main content

Notes

  1. Reverting back git history from a commit:
git revert --no-commit 0766c053..HEAD
git commit

source: stackoverflow

  1. getting the IP Address quickly in most linux systems including termux:
ip a | grep inet
  1. Downloading protected PDFs from google drive and having them be searchable:
  1. 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'
  1. Removing sensitive data after having it be committed to github Use git filter branch

  2. 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