Skip to main content


  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

(Optional) Create a bash alias like the following to make it even easier

alias whatismypublicip='curl'
  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/
# find the correct connection-name / wifi SSID
cat <connection-name> | grep psk