Skip to content

Instantly share code, notes, and snippets.

View ianlewis's full-sized avatar
👷‍♂️
Building stuff

Ian Lewis ianlewis

👷‍♂️
Building stuff
View GitHub Profile
@ianlewis
ianlewis / rm.sh
Created March 31, 2014 01:31
A drop-in replacement for rm that copies files to the Gnome trash rather than deleting them.
#!/bin/bash
# A drop-in replacement for rm that copies files to the Gnome trash rather than
# deleting them.
# Doesn't quite support all of the rm options yet.
readonly progname="$(basename $0)"
function printHelpAndExit {
exitCode=$1
@ianlewis
ianlewis / recommend_reviewer.sh
Last active August 29, 2015 13:57
A script for recommending a reviewer for a diff.
#!/bin/bash
# A script for recommending a reviewer for a particular diff.
# Currently only supports mercurial repositories.
if [ "$1" = "" ]; then
echo "Usage: recommend_reviewer REV1 REV2"
exit 0
fi