This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -euo pipefail | |
if [ $# -eq 0 ]; then | |
sleep 0.2 # xmonad holds keyboard; race condition fix | |
scrot -s -e "$0 \$f" | |
exit | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Daichi Shinozaki <dsdseg@gmail.com> | |
pkgname=mesos | |
pkgver=0.20.0 | |
pkgrel=1 | |
pkgdesc="A cluster manager that simplifies the complexity of running applications on a shared pool of servers" | |
arch=('x86_64') | |
url='http://mesos.apache.org/' | |
license=('Apache') | |
groups=('science') | |
depends=('python2' 'python2-boto' 'curl' 'libsasl' 'leveldb' 'java-environment' 'libunwind') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "### git ###" | |
for dir in `gfind . -maxdepth 2 -name '.git' -type d`; do | |
cd $dir | |
cd .. | |
grep -q svn-remote .git/config | |
if [ "$?" -ne "0" ]; then | |
git fetch | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from lxml import etree | |
import csv | |
import sys | |
if len(sys.argv) != 2: | |
print >> sys.stderr, "Usage: %s <1Password_text_export>" % sys.argv[0] | |
sys.exit(1) | |
reader = csv.reader(open(sys.argv[1]), dialect='excel-tab') | |
headers = reader.next() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# credit: http://news.ycombinator.com/item?id=1543915 | |
# in ipythonrc: | |
# execfile copy_and_paste.py | |
def copy(data): | |
from subprocess import Popen, PIPE | |
Popen(["xclip", "-selection", "clipboard"], stdin=PIPE).communicate(str(data)) | |
def paste(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Bind the up arrow to history search, instead of history step | |
"\e[A": history-search-backward | |
# And the reverse (down) | |
"\e[B": history-search-forward |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print "No." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
activerehashing yes | |
appendfsync everysec | |
appendonly no | |
bind 0.0.0.0 | |
daemonize yes | |
databases 1 | |
dbfilename dump_1.rdb | |
dir /var/redis/ | |
glueoutputbuf yes | |
hash-max-zipmap-entries 512 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ brew install guile --HEAD | |
==> Downloading ftp://ftp.gnu.org/pub/gnu/guile/guile-2.0.0.tar.gz | |
File already downloaded and cached to /Users/brett/Library/Caches/Homebrew | |
==> ./configure --disable-dependency-tracking --prefix=/usr/local/Cellar/guile/HEAD --with-libreadli | |
==> make install | |
make install-recursive | |
Making install in lib | |
GEN alloca.h | |
GEN arg-nonnull.h | |
GEN c++defs.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ make rel | |
./rebar get-deps | |
==> cluster_info (get-deps) | |
==> skerl (get-deps) | |
==> protobuffs (get-deps) | |
==> basho_stats (get-deps) | |
==> riak_sysmon (get-deps) | |
==> mochiweb (get-deps) | |
==> webmachine (get-deps) | |
==> riak_core (get-deps) |
OlderNewer