alias dkrcm="docker compose"
alias dkr=docker
# Apply docker autocompletion on `dkr` alias
source /usr/share/bash-completion/completions/docker
complete -F _docker docker docker.exe dockerd dockerd.exe dkr
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
# Does it have a setup.py file? | |
This _may be_ sufficient. | |
1. Clone repo | |
2. Create a virtual environment; Activate virtual environment | |
3. pip install -e . |
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
[alias] | |
co = checkout | |
nb = checkout -b | |
b = branch | |
mg = merge | |
mgnf = merge --no-ff | |
amend = commit --amend | |
c = commit |
git log --graph --oneline --decorate $( git fsck --no-reflog | awk '/dangling commit/ {print $3}' )
This will show you all the commits at the tips of your commit graph which are no longer referenced from any branch or tag – every lost commit, including every stash commit you’ve ever created, will be somewhere in that graph.
Context: Python app needs a database and our database is setup through Docker.
In VS Code docs,
- Add debugpy to your requirements.txt file:
See Aliases for actual commands
git co -b my_feat_or_bugfix upstream/main
To automatically
- remove unused imports
- order our imports alphabetically (isort)
- detect basic security guidelines using Bandit
- autoformat our code (line length, etc.)