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
# Stolen and compiled into one shell script | |
# from https://docs.docker.com/engine/install/debian/ | |
# Uninstall old versions | |
for pkg in docker.io docker-doc docker-compose podman-docker containerd runc; do sudo apt-get remove $pkg; done | |
# Set up the repository | |
## Update the apt package index and install packages to allow apt to use a repository over HTTPS: | |
sudo apt-get update |
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
rg 'new RqHeaders.Smart\((?!req)' --pcre2 |
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
# Just names | |
pip list | awk '/^flake8/{print $1}' | |
# With version | |
pip list | awk '/^flake8/{print $1 "==" $2}' |
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
# Shamelessly stolen from https://www.theserverside.com/blog/Coffee-Talk-Java-News-Stories-and-Opinions/delete-all-branches-except-master-main-local-remote | |
# using ripgrep instead of grep, so it is two symbols shorter :) | |
git branch | rg -v 'main' | xargs git branch -D |