I hereby claim:
- I am t3chn0m4g3 on github.
- I am t3chn0m4g3 (https://keybase.io/t3chn0m4g3) on keybase.
- I have a public key ASBRvVNEDcKT5Ha2BFDYnCPxSiB5dDUpMs5SdMQR7MK_Owo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| ## Get my external IP | |
| timeout=2 # seconds to wait for a reply before trying next server | |
| verbose=1 # prints which server was used to STDERR | |
| dnslist=( | |
| "dig +short myip.opendns.com @resolver1.opendns.com" | |
| "dig +short myip.opendns.com @resolver2.opendns.com" |
| #docker stats with names instead of container IDs | |
| docker stats $(docker ps --format {{.Names}}) |
| #!/bin/bash | |
| myROOTPROMPT='PS1="\[\033[38;5;8m\][\[$(tput sgr0)\]\[\033[38;5;1m\]\u\[$(tput sgr0)\]\[\033[38;5;6m\]@\[$(tput sgr0)\]\[\033[38;5;4m\]\h\[$(tput sgr0)\]\[\033[38;5;6m\]:\[$(tput sgr0)\]\[\033[38;5;5m\]\w\[$(tput sgr0)\]\[\033[38;5;8m\]]\[$(tput sgr0)\]\[\033[38;5;1m\]\\$\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]"' | |
| myUSERPROMPT='PS1="\[\033[38;5;8m\][\[$(tput sgr0)\]\[\033[38;5;2m\]\u\[$(tput sgr0)\]\[\033[38;5;6m\]@\[$(tput sgr0)\]\[\033[38;5;4m\]\h\[$(tput sgr0)\]\[\033[38;5;6m\]:\[$(tput sgr0)\]\[\033[38;5;5m\]\w\[$(tput sgr0)\]\[\033[38;5;8m\]]\[$(tput sgr0)\]\[\033[38;5;2m\]\\$\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]"' | |
| tee -a /root/.bashrc << EOF | |
| $myROOTPROMPT | |
| EOF | |
| tee -a /home/$1/.bashrc << EOF | |
| $myUSERPROMPT | |
| EOF |
| #!/bin/bash | |
| fuRANDOMWORD () { | |
| local myWORDFILE=/usr/share/dict/words | |
| local myLINES=$(cat $myWORDFILE | wc -l) | |
| local myRANDOM=$((RANDOM % $myLINES)) | |
| local myNUM=$((myRANDOM * myRANDOM % $myLINES + 1)) | |
| echo -n $(sed -n "$myNUM p" $myWORDFILE | tr -d \' | tr A-Z a-z) | |
| } | |
| myHOST=$(curl -s www.nsanamegenerator.com | html2text | tr A-Z a-z | awk '{print $1}') |