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 grep <pattern> $(git rev-list --all) > report_slam.txt -- Find content matching the given pattern |
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
| * { background-color: rgba(255,0,0,.2); } | |
| * * { background-color: rgba(0,255,0,.2); } | |
| * * * { background-color: rgba(0,0,255,.2); } | |
| * * * * { background-color: rgba(255,0,255,.2); } | |
| * * * * * { background-color: rgba(0,255,255,.2); } | |
| * * * * * * { background-color: rgba(255,255,0,.2); } | |
| * * * * * * * { background-color: rgba(255,0,0,.2); } | |
| * * * * * * * * { background-color: rgba(0,255,0,.2); } | |
| * * * * * * * * * { background-color: rgba(0,0,255,.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
| #.SILENT: uncomment to silent all the targets | |
| .PHONY: help | |
| help: ## Displays available targets | |
| @fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//' | |
| .PHONY: clean | |
| clean: ## Clean project | |
| @echo "Cleaning it up!" |
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
| ~r/^\S+@\S+\.\S+$/ --- basic and permissive email validation |
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
| "Test Case": { | |
| "prefix": "test", | |
| "body": [ | |
| "func Test$1(t *testing.T) {", | |
| "\ttests:= []struct{", | |
| "\t\tname string", | |
| "\t\tinput string", | |
| "\t\toutput string", | |
| "\t}{", | |
| "\t\t{name:\"$2\", input:\"$3\",output:\"$4\"},", |
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
| #!/bin/bash | |
| # Delete all containers | |
| docker rm $(docker ps -a -q) | |
| # docker rm $(docker ps --filter=status=exited --filter=status=created -q) | |
| # Delete all images | |
| docker rmi $(docker images -q) | |
| # Delete untagged images | |
| # docker rmi $(docker images -f "dangling=true" -q) | |
| # Delete all volumes | |
| docker volume rm $(docker volume ls -f dangling=true -q) |
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
| #!/bin/bash | |
| # Delete all containers | |
| docker rm $(docker ps -a -q) | |
| # docker rm $(docker ps --filter=status=exited --filter=status=created -q) | |
| # Delete all images | |
| docker rmi $(docker images -q) | |
| # Delete untagged images | |
| # docker rmi $(docker images -f "dangling=true" -q) | |
| # Delete all volumes | |
| docker volume rm $(docker volume ls -f dangling=true -q) |
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
| [alias] | |
| ci = commit | |
| st = status | |
| co = checkout | |
| unstage = reset HEAD -- | |
| last = log -1 HEAD | |
| br = branch | |
| discard = checkout -- | |
| undo = reset --hard | |
| llog = log --date=local |