openpgp4fpr:B4998D92B999C9F4F1AAC841CDE37C3E9CCB64EB
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
#!/bin/bash | |
# trap signal | |
stopwatch() { | |
now=$(date +%s)sec | |
while : | |
do | |
printf "\r%s" $(TZ=UTC date --date now-$now +%H:%M:%S.%N) | |
done |
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
#!/bin/bash | |
green='\E[32m' | |
bold='\033[1m' | |
normal='\033[0m' | |
#Create a directory and cd into it | |
echo -e "\n$bold$green"Creating a temp directory to work in..."$normal\n" | |
TEMPDIR=$(mktemp -d) | |
pushd $TEMPDIR | |
echo -e "\n$bold$green"Working in $TEMPDIR"$normal\n" |