Assorted code snippets Categories: Bash Git Miscellaneous Vim Bash List files by number of lines Recursive find and replace Find files in date/time range Docker Remove stopped containers: docker rm $(docker ps -a -q) Remove untagged images: docker rmi $(docker images | grep "^<none>" | awk '{print $3}') Remove unused images: docker rmi $(docker images -q) Git Automatically remove pyc file on branch change Update submodules on branch change Miscellaneous Check if directory exists in Makefile Vim Open files listed from command Sort selected lines Wrapping text with gq