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 install ncdu | |
| sudo ncdu / |
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 network create NAME # docker network rm NAME | |
| docker network ls | |
| docker network inspect NAME | |
| docker network inspect bridge --format='{{range .IPAM.Config}}{{.Gateway}}{{end}}' |
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 network create buildnet # docker network rm buildnet | |
| # buildkitd - BuildKit daemon | |
| docker rm -f buildkitd 2> /dev/null | |
| docker run -d --name buildkitd --network buildnet \ | |
| moby/buildkit:latest \ | |
| sh -c 'printf "[registry.\"registry:5000\"]\nhttp = true\ninsecure = true\n" > buildkitd.toml && buildkitd --config buildkitd.toml --allow-insecure-entitlement security.insecure' | |
| # network test: | |
| # docker exec -it buildkitd ping registry |
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
| # restart buildx builder (required after docker daemon.json edit and restart/etc) | |
| docker buildx rm mybuilder | |
| docker buildx create --name mybuilder --driver docker-container --use | |
| docker buildx ls # mybuilder* default builder |
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 install --cask --appdir=~/Applications --verbose docker | |
| brew install docker-buildx | |
| brew install docker-compose | |
| brew install docker-compose-cli | |
| brew install docker-completion | |
| brew install docker-compose-completion | |
| brew install docker-machine-completion |
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 . |
NewerOlder