Skip to content

Instantly share code, notes, and snippets.

@acharyab15
Last active October 9, 2020 18:00
Show Gist options
  • Save acharyab15/1542c07581e2fd37b01443d286be47cd to your computer and use it in GitHub Desktop.
Save acharyab15/1542c07581e2fd37b01443d286be47cd to your computer and use it in GitHub Desktop.
Gist of all the miscellaneous things

Docker remove dangling images: docker rmi -f $(docker images --filter='dangling=true' -q).

Find and replace: find . -type f -name '*.txt' -exec sed -i '' s/this/that/ {} +.

Find pid of something running on : lsof -i :port.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment