To run this, you can try:
curl -ksO https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh
chmod +x ./uninstall-node.sh
./uninstall-node.sh
rm uninstall-node.sh
#!/bin/sh | |
# curl -ks https://raw.github.com/gist/2316006/mkgithub.sh | sh -s repository-name | |
[ "${1}" ] || { | |
echo "usage: ${0} repository-name" >&2 | |
exit ${LINENO} | |
} | |
name="${1// /-}" | |
login="$(sed -n -e '/user/,/name/p' ~/.gitconfig | grep name | awk -F'[ =]+' '{print $2}')" |
#!/bin/sh | |
# curl -ks https://raw.github.com/gist/2316218/nicetempl.sh | sh -s artifact-id group-id | |
artifactId=${1} | |
[ "${artifactId}" ] || { | |
echo "usage: ${0} artifact-id [group-id]" >&2 | |
exit ${LINENO} | |
} | |
groupId=${2:-org.nicerobot} |
#!/bin/sh | |
jarfind() { | |
find ${2:-.} -name '*.jar' | while read j; do | |
f=$(jar ft ${j} | grep ${1}) && echo ${j} ${f} | |
done | |
} |
sys.props.toSeq.sortBy(_._1).foreach {p => println(p._1+"="+p._2);} |
#!/bin/sh | |
# eg. dir=$(canonical $0) | |
canonical() { | |
local d="$(\dirname ${1})" | |
local f="$(\basename ${1})" | |
( | |
\cd ${d} >/dev/null 2>&1 | |
while [ -h "${f}" ] ; do | |
\cd $(\dirname $(\readlink ${f})) >/dev/null 2>&1 |
To run this, you can try:
curl -ksO https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh
chmod +x ./uninstall-node.sh
./uninstall-node.sh
rm uninstall-node.sh
1. Insert CD/DVD source | |
2. Fire up a Terminal, you can then determine the device that is you CD/DVD drive using the following command: | |
$ drutil status | |
Vendor Product Rev | |
MATSHITA DVD-R UJ-835E GAND | |
Type: DVD-ROM Name: /dev/disk1 | |
Cur Write: 8x DVD Sessions: 1 |
Agile Keychain Entry | |
{ | |
"title" : "dave @ AWS login", | |
"locationKey" : "perfora.net", | |
"encrypted" : "...", | |
"typeName" : "webforms.WebForm", | |
"securityLevel" : "SL5", | |
"openContents" : { | |
"createdAt" : 1216012929, | |
"passwordStrength" : 100, |
http://stackoverflow.com/questions/2348694/how-do-you-debug-a-regex/2348725#2348725 | |
$ perl -Mre=debugcolor -e 'm/.../' | |
Compiling REx "..." | |
Final program: | |
1: REG_ANY (2) | |
2: REG_ANY (3) | |
3: REG_ANY (4) | |
4: END (0) | |
minlen 3 |