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
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 |
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
# /var/lib/docker/containers/<container-id>/<container-id>-json.log | |
# todo: shell scripts |
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
open -R ~/Library/Safari | |
find ~/Library/Safari ! -name Bookmarks.plist -exec rm -fr {} \; # Terminal disk full access required | |
killall Safari |
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
sudo apt update | |
sudo apt install wireguard | |
sudo apt install ufw | |
sudo ufw allow 51820/udp | |
sudo ufw enable | |
# /etc/wireguard/wg0.conf | |
# echo "net.ipv4.ip_forward=1" | sudo tee -a /etc/sysctl.conf | |
sudo sysctl -p |
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
curl --unix-socket /var/run/docker.sock http://localhost/containers/json | jq | |
curl --unix-socket /var/run/docker.sock http://localhost/containers/{CONTAINER_ID}/json | jq |
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
defaults write com.apple.iCal "Display Birthdays calendar" -bool false | |
defaults write com.apple.iCal NotificationCenterNotificationSound -string "" |
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
find /opt/homebrew/var -type f -name "*.pid" | |
find /opt/homebrew/var -type f -name "*.pid" -exec rm {} \; |
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
osascript -e 'quit app "Docker"' # stop | |
open -a Docker # start | |
docker info |
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
tccutil reset Camera | |
tccutil reset Microphone | |
tccutil reset Location | |
tccutil reset AddressBook | |
tccutil reset Calendar | |
tccutil reset Photos | |
tccutil reset Reminders | |
tccutil reset BluetoothAlways | |
tccutil reset SystemPolicyDocumentsFolder |
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
# /opt/homebrew/etc/squid.conf | |
debug_options ALL,1 33,2 | |
dns_nameservers 8.8.8.8 8.8.4.4 | |
visible_hostname localhost | |
acl my_allowed_ip src 127.0.0.1 | |
http_access allow my_allowed_ip |
NewerOlder