This file contains hidden or 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
find . -name 'Makefile' -exec sed -i '' -E 's/^ /\t/' {} + |
This file contains hidden or 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
brew services stop squid | |
rm /opt/homebrew/var/run/squid.pid | |
brew services start squid | |
# test | |
brew services list | grep squid | |
curl -x http://127.0.0.1:3128 -v https://example.com | |
cat /opt/homebrew/var/logs/access.log |
This file contains hidden or 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
git push --all "$(git remote -v | awk '{print $1}' | uniq)" | |
git push -f --all "$(git remote -v | awk '{print $1}' | uniq)" |
This file contains hidden or 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
# pipreqs (pip install pipreqs) | |
pipreqs --no-follow-links --force --print . | |
pipreqs --no-follow-links --force --print . | awk -F= '{print $1}' | grep -v ^configurations | grep -v ^$ > requirements.txt | |
sort --ignore-case -u -o requirements.txt{,} | |
# requirements.txt requirements.txt | |
python3 -m pip install -r requirements.txt | |
python3 -m pip install --break-system-packages -r requirements.txt | |
python3 -m pip --isolated install -r requirements.txt |
This file contains hidden or 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
find . -type d -name "*.egg-info" -exec rm -fr {} \; | |
pip install -e . |
This file contains hidden or 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
python3 -m pip uninstall -y "$(python3 setup.py --name)" |
This file contains hidden or 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
python3 -m pip install -r requirements.txt | |
python3 -m pip install --break-system-packages -r requirements.txt | |
python3 -m pip --isolated install -r requirements.txt |
This file contains hidden or 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
git ls-files '*.py' | xargs pylint |
This file contains hidden or 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
webpack --config config.js --mode=none |
This file contains hidden or 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
docker run --env-file /root/docker-compose/gistmanager.com-django-server/.env -v /var/log/gistmanager.com:/var/log/gistmanager.com -v /root/logging.conf:/code/logging.conf -it --entrypoint sh localhost:5000/gistmanager.com-django-server |
NewerOlder