Skip to content

Instantly share code, notes, and snippets.

View agundy's full-sized avatar

Aaron Gunderson agundy

View GitHub Profile

Keybase proof

I hereby claim:

  • I am agundy on github.
  • I am agundy (https://keybase.io/agundy) on keybase.
  • I have a public key whose fingerprint is 491C 8E98 2056 2521 D24E A344 26F5 9B8D 6D20 6F11

To claim this, I am signing this object:

@agundy
agundy / mathsay.sh
Created February 6, 2015 22:02
Cowsay Math
=() {
calc="${@//p/+}"
calc="${calc//x/*}"
bc -l <<<"scale=10;$calc" | cowsay
}
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '
export PATH=$HOME/local/bin:$PATH
@agundy
agundy / cows.sh
Created May 17, 2014 07:57
Cowsay Cows
FILES=/usr/share/cowsay/cows/*
for f in $FILES
do
cowsay -f $f "Hello World"
echo $f
done
@agundy
agundy / wallpaper.sh
Created May 17, 2014 07:54
Wallpaper Changer
#!/bin/sh
while true; do
find ~/Pictures/Wallpapers -type f \( -name '*.jpg' -o -name '*.png' \) -print0 |
shuf -n1 -z | xargs -0 feh --bg-scale
sleep 1m
done
@agundy
agundy / roc.sh
Last active August 29, 2015 13:57 — forked from seveibar/roc.bash
while [ 1 ]; do
clear\
&& echo "[Running \"$@\" on files changes in $(pwd) at $(date +'%r')]"\
&& echo ""\
&& sleep .1\
&& $@ \
&& sleep .3;
inotifywait -r -q -e modify,move,create .;
done
@agundy
agundy / gist:9262161
Created February 27, 2014 23:44
Homework comparing line
diff -y my_medium.txt results_medium.txt | less
@agundy
agundy / biggest_folders.sh
Created December 12, 2013 20:43
List the Five biggest folders in a directory.
echo "Five Biggest folders:"
du ../../test_data/shell_scripts/* -d 1 | sort -rn | head -n 5