Skip to content

Instantly share code, notes, and snippets.

@shawnkendrick
Last active April 14, 2021 16:12
Show Gist options
  • Save shawnkendrick/0ea374d74c1fad4181e21b04d9477119 to your computer and use it in GitHub Desktop.
Save shawnkendrick/0ea374d74c1fad4181e21b04d9477119 to your computer and use it in GitHub Desktop.
* recursive grep, exclude a directory
grep -R -l --exclude-dir=examples 'meh' .
* recursive grep, exclude mutliple directorie & files
grep -r --color --exclude-dir={custom,lib,scripts} --exclude={*.xml,error_log} "beta" .
* find
find . -name *.jpg
* port activity
sudo lsof -i :8080
kill -9 $(lsof -t -i :443)
* Flask run
export FLASK_APP=app.py; export FLASK_ENV=development; flask run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment