Last active
April 14, 2021 16:12
-
-
Save shawnkendrick/0ea374d74c1fad4181e21b04d9477119 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* 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