Skip to content

Instantly share code, notes, and snippets.

Matthew Meyer mattchainsaw

Block or report user

Report or block mattchainsaw

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am mattchainsaw on github.
  • I am mattchainsaw (https://keybase.io/mattchainsaw) on keybase.
  • I have a public key ASCo1XyYGed3gbZlrS6ZJhJJj_bL9b2ea3NFjHqJ8CguOwo

To claim this, I am signing this object:

@mattchainsaw
mattchainsaw / run.sh
Created May 11, 2016
Notification of job completion
View run.sh
#!/bin/bash
#
# This still works with piping and redirection of output.
# Ex)
# bash run.sh ./long_computation > long_computation.out
if [ ! $1 ]
then
echo "Usage: $0 <command>" >&2
fi
@mattchainsaw
mattchainsaw / where.sh
Last active May 11, 2016
Poetry for Plebs. Recursively search for instance of a string in all files and subfolders. Usage: ./where.sh <regex>
View where.sh
#!/bin/bash
find . -type f |
while read x
do
cat $x | egrep --color=always "$1" &&
echo -e "\e[36m$x\e[0m" &&
echo
done
You can’t perform that action at this time.