Skip to content

Instantly share code, notes, and snippets.

View ingydotnet's full-sized avatar

Ingy döt Net ingydotnet

View GitHub Profile
@ingydotnet
ingydotnet / test.bash
Last active August 29, 2015 14:02 — forked from AndrewSmart/gist:1796bc4fffc4e46e8150
Refactored to this script
#!/usr/bin/env bash
set -ex
rm -fr p1 p2 lib lib.git
(
mkdir lib p1 p2
git init --bare lib
git init p1
git init p2
reviewed:
- dan:
review_title:
review_description:
review_count:
reviewer_name:
reviewr_city:
- mark:
review_title:
review_description:
my_list:
- foo
- bar
- >
my very long
list item
all on one line
- "my very long
list item
all on one line"
@ingydotnet
ingydotnet / nopaste
Last active August 29, 2015 13:57 — forked from dagolden/nopaste
# hack is a function
hack () {
local dir
if [ -d "$1" ]; then
dir="$1"
else
dir="$(perl -MPIR -wE 'my $iter=PIR->new->skip_vcs->directory->iname(shift)->iter("$ENV{HOME}/git"); say $iter->()' $1)"
fi
if [ -n "$dir" -a -d "$dir" ]; then
tmux new-window -c "$dir" -n "$(basename "$dir")"