Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am d3z on github.
  • I am d3z (https://keybase.io/d3z) on keybase.
  • I have a public key whose fingerprint is 28CD 9C00 A7DF 75CF ED48 5E83 A3BF E6B3 0C13 CC12

To claim this, I am signing this object:

Verifying that +d3z is my Bitcoin username. You can send me #bitcoin here: https://onename.io/d3z

Keybase proof

I hereby claim:

  • I am d3z on github.
  • I am d3z (https://keybase.io/d3z) on keybase.
  • I have a public key whose fingerprint is 4A26 DBE3 C8B0 FCEB 8151 6753 D29E 4BF3 847A E5F5

To claim this, I am signing this object:

@d3z
d3z / vf
Created May 10, 2012 11:10
Vim a file in a subdirectory
#!/bin/bash
FILENAME=$1
if [ x"$FILENAME" == "x" ]; then
echo Find what??
exit
fi
FILEPATH=`find ./ -iname "*$FILENAME*" | file -f - | grep text | awk '{print $1}' | sed 's/://g'`
NUMFILES=`echo $FILEPATH| wc -w`
@d3z
d3z / pls.sh
Created May 10, 2012 11:02
Shell function to ls a Java package from a root directory
function pls() {
# usage: pls [pkgname] [rootdir]
# e.g. pls com.foo.bar ./
ls $2/`echo $1|sed 's/\./\//g'`
}
@d3z
d3z / mdtouch.sh
Created May 8, 2012 10:24
Simple function to create non-existing directories in a touch
function mdtouch() {
if [ ! -d `dirname $1` ]; then mkdir -p `dirname $1`; fi
touch $1
}