Skip to content

Instantly share code, notes, and snippets.

CXX libledger_util_la-error.lo
CXX libledger_util_la-utils.lo
CXX libledger_util_la-accum.lo
CXX libledger_util_la-sha1.lo
LD libledger_util.la
CXX ledger-main.o
CXX ledger-global.o
LD ledger
Undefined symbols:
"ledger::argv0", referenced from:
A---B---C---D---E---F---G
A---B---C---D master
\
E---F---G topic
@drewr
drewr / post-receive
Created June 8, 2009 16:16
git post-receive hook
#!/bin/sh
cd ..
env -i git reset --hard
2009-09-15 10:35:07,147 INFO org.apache.hadoop.hbase.master.HMaster: vmName=Java HotSpot(TM) 64-Bit Server VM, vmVendor=Sun Microsystems Inc., vmVersion=11.2-b01
2009-09-15 10:35:07,147 INFO org.apache.hadoop.hbase.master.HMaster: vmInputArguments=[-Xmx256m, -XX:+HeapDumpOnOutOfMemoryError, -XX:+UseConcMarkSweepGC, -XX:+CMSIncrementalMode, -Dhbase.log.dir=/usr/local/hbase/bin/../logs, -Dhbase.log.file=hbase-aar-master-x1.log, -Dhbase.home.dir=/usr/local/hbase/bin/.., -Dhbase.id.str=aar, -Dhbase.root.logger=INFO,DRFA, -Djava.library.path=/usr/local/hbase/bin/../lib/native/Linux-amd64-64]
2009-09-15 10:35:07,241 INFO org.apache.hadoop.hbase.master.HMaster: My address is x1.local.draines.com:60000
2009-09-15 10:35:07,879 FATAL org.apache.hadoop.hbase.master.HMaster: Not starting HMaster because:
java.io.EOFException
at java.io.DataInputStream.readUnsignedShort(DataInputStream.java:323)
at java.io.DataInputStream.readUTF(DataInputStream.java:572)
at org.apache.hadoop.hbase.util.FSUtils.getVersion(FSUtils.java:
(ns com.draines.test)
(def *opts* [{:one 1 :two 2 :three 3}
{:four 4 :five 5 :six 6}])
(defmacro foo [args]
`(do ~@(map #(list 'keys %) args)))
(macroexpand-1
'(foo [{:one 1 :two 2 :three 3}
2009-09-22 14:58:51,930 INFO org.apache.hadoop.hbase.master.HMaster: My address is lambda:60000
2009-09-22 14:58:52,386 INFO org.apache.hadoop.hdfs.DFSClient: Exception in createBlockOutputStream java.io.IOException: Bad connect ack with firstBadLink 10.1.1.23:50010
2009-09-22 14:58:52,386 INFO org.apache.hadoop.hdfs.DFSClient: Abandoning block blk_3521406778096663867_1003
2009-09-22 14:58:58,393 INFO org.apache.hadoop.hdfs.DFSClient: Exception in createBlockOutputStream java.io.IOException: Bad connect ack with firstBadLink 10.1.1.23:50010
2009-09-22 14:58:58,393 INFO org.apache.hadoop.hdfs.DFSClient: Abandoning block blk_-1164640423349579186_1003
2009-09-22 14:59:04,398 INFO org.apache.hadoop.hdfs.DFSClient: Exception in createBlockOutputStream java.io.IOException: Bad connect ack with firstBadLink 10.1.1.23:50010
2009-09-22 14:59:04,398 INFO org.apache.hadoop.hdfs.DFSClient: Abandoning block blk_-1652239087754577422_1003
2009-09-22 14:59:10,403 INFO org.apache.hadoop.hdfs.DFSClient: Exception in createBloc
aar@omega/1173/0:~()% ledger bal --display "depth <= 2" -p this --effective expenses:food expenses:home
$ 246.52 Expenses
$ 161.90 Food
$ 84.62 Home
--------------------
$ 246.52
aar@omega/1174/0:~()% ledger bal --display "depth <= 2" --flat -p this --effective expenses:food expenses:home
aar@omega/1175/0:~()%
(defn ymd [#^Date date]
(when date
(.format (SimpleDateFormat. "yyyy-MM-dd") date)))
#!/bin/sh
openssl genrsa -out server.key 1024
openssl req -new -key server.key -out server.csr
openssl x509 -req -days 1095 -in server.csr -signkey server.key -out server.crt # self-sign
(defn gzip-file
([path]
(gzip-file path ".gz"))
([path suffix]
(let [bufsize 8192
buf (make-array Byte/TYPE bufsize)]
(with-open [rdr (FileInputStream. (File. path))
wtr (GZIPOutputStream.
(FileOutputStream.
(format "%s%s" path suffix)))]