a bin full of cool programs
''
10 files changed, +37 -2
+4-0bin/cheatsheets
| @@ -0,0 +1,4 @@ | ||
| 1 | +#!/bin/bash | |
| 2 | +echo -e "\e[38;5;195mLinks to useful cheatsheets\n\e[38;5;120m" | |
| 3 | +echo "Bash: https://devhints.io/bash" | |
| 4 | +echo -e "\e[0m"; |
+2-0bin/codebash
| @@ -0,0 +1,2 @@ | ||
| 1 | +#!/bin/bash | |
| 2 | +code ~/.bashrc |
+1-1bin/codebin
| @@ -1,2 +1,2 @@ | ||
| 1 | 1 | #!/bin/bash |
| 2 | -code ~/.hygobin/bin | |
| 2 | +code ~/.hygobin |
+3-0bin/dcd
| @@ -0,0 +1,3 @@ | ||
| 1 | +#!/bin/bash | |
| 2 | +echo -e "\e[38;5;196mKilling all docker compose services\e[0m" | |
| 3 | +docker compose down --remove-orphans |
+3-0bin/dcl
| @@ -0,0 +1,3 @@ | ||
| 1 | +#!/bin/bash | |
| 2 | +echo -e "\e[38;5;218mWatching logs $1\e[0m" | |
| 3 | +docker compose logs -f "$1" |
+6-0bin/dcu
| @@ -0,0 +1,6 @@ | ||
| 1 | +#!/bin/bash | |
| 2 | +echo -e "\e[38;5;105mRestarting docker compose and watching logs "$1"\e[0m" | |
| 3 | +docker compose build | |
| 4 | +docker compose down --remove-orphans | |
| 5 | +docker compose up -d | |
| 6 | +docker compose logs -f "$1" |
+10-0bin/gcom
| @@ -0,0 +1,10 @@ | ||
| 1 | +#!/bin/bash | |
| 2 | +echo -e "\e[38;5;118mAdding and committing all changes\e[0m" | |
| 3 | +git add --all | |
| 4 | +message = "$@" | |
| 5 | +echo "wtf" | |
| 6 | +if [[ "$1" =~ "'" ]]; then | |
| 7 | + git commit -m "$message" | |
| 8 | +else | |
| 9 | + git commit -m "'$message'" | |
| 10 | +fi |
+4-0bin/hygobin
| @@ -0,0 +1,4 @@ | ||
| 1 | +#!/bin/bash | |
| 2 | +echo -e "\e[38;5;202mThe following are all the hygobin scripts" | |
| 3 | +ls ~/.hygobin/bin | |
| 4 | +echo -e "\e[0m" |
+3-0bin/sb
| @@ -0,0 +1,3 @@ | ||
| 1 | +#!/bin/bash | |
| 2 | +echo -e "\e[38;5;202mSourcing bashrc...\e[0m" | |
| 3 | +bash |
+1-1bin/showascii
| @@ -1,4 +1,4 @@ | ||
| 1 | 1 | #!/bin/bash |
| 2 | 2 | for i in {0..255}; do printf "\e[38;5;${i}m%4d " $i; ((i%16==15)) && echo ""; done; echo -e "\e[0m" |
| 3 | 3 | |
| 4 | -echo "Use these colors with \\e[38;5;NUMmMESSAGE\\e[0m" | |
| 4 | +echo "Use these colors with \\e[38;5;<number>m<message>\\e[0m" |