Skip to content

Instantly share code, notes, and snippets.

View yash1610's full-sized avatar

Yash Bhardwaj yash1610

View GitHub Profile
@yash1610
yash1610 / aur_auto_update.sh
Last active March 11, 2016 06:24
Bash script to auto update installed aur packages
#!/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"
#!/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

openpgp4fpr:B4998D92B999C9F4F1AAC841CDE37C3E9CCB64EB