This file contains hidden or 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
(apply str (map #(format "%02x" (bit-and % 0xff)) | |
(.digest (doto (MessageDigest/getInstance "MD5") | |
(.update (.getBytes input)))))) |
This file contains hidden or 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
[default@casyn_test_ks] describe; | |
Keyspace: casyn_test_ks: | |
Replication Strategy: org.apache.cassandra.locator.SimpleStrategy | |
Durable Writes: true | |
Options: [replication_factor:1] | |
Column Families: | |
ColumnFamily: composite_cf | |
Key Validation Class: org.apache.cassandra.db.marshal.LongType | |
Default column value validator: org.apache.cassandra.db.marshal.UTF8Type | |
Columns sorted by: org.apache.cassandra.db.marshal.CompositeType(org.apache.cassandra.db.marshal.LongType,org.apache.cassandra.db.marshal.LongType,org.apache.cassandra.db.marshal.LongType) |
This file contains hidden or 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
INFO [Thrift:2] 2012-10-09 21:20:46,411 MigrationManager.java (line 117) Create new Keyspace: casyn_test_ks, rep strategy:SimpleStrategy{org.apache.cassandra.config.CFMetaData@3e9c22ff[cfId=13b2e941-474e-35a2-854a-9610950a8743,ksName=casyn_test_ks,cfName=counter_cf,cfType=Standard,comparator=org.apache.cassandra.db.marshal.BytesType,subcolumncomparator=<null>,comment=,readRepairChance=0.1,dclocalReadRepairChance=0.0,replicateOnWrite=true,gcGraceSeconds=864000,defaultValidator=org.apache.cassandra.db.marshal.CounterColumnType,keyValidator=org.apache.cassandra.db.marshal.BytesType,minCompactionThreshold=4,maxCompactionThreshold=32,keyAliases=[],columnAliases=[],valueAlias=<null>,column_metadata={},compactionStrategyClass=class org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy,compactionStrategyOptions={},compressionOptions={sstable_compression=org.apache.cassandra.io.compress.SnappyCompressor},bloomFilterFpChance=<null>,caching=KEYS_ONLY,readConsistencyLevel=<null>,writeConsistencyLevel=<null>], |
This file contains hidden or 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
_JAVA_AWT_WM_NONREPARENTING=1; export _JAVA_AWT_WM_NONREPARENTING | |
wmname LG3D |
This file contains hidden or 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
// underscore does what you expect | |
_.map([1, 2, 3], function(i){ return [i, i+1]}) | |
>> [[1, 2], [2, 3], [3, 4]] | |
// jquery goes into crazy mode | |
$.map([1, 2, 3], function(i){ return [i, i+1]}) | |
>> [1, 2, 2, 3, 3, 4] |
This file contains hidden or 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
@media all | |
{ | |
body { | |
font-family: "Helvetica Neue", "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, sans-serif !important; | |
font-size: 14px; | |
line-height: 21px; | |
color: #333; | |
max-width: 95%; | |
margin: auto; |
This file contains hidden or 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
body { | |
margin: 1em; | |
border-right: 5px solid #bbb; | |
border-bottom: 5px solid #bbb; | |
padding: 0; | |
background: #ddd none repeat scroll 0 0; | |
border: 1px solid #000; | |
margin: 0; | |
padding: 2em; | |
color: #333; |
This file contains hidden or 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
2012-07-06 19:15:32 | |
Full thread dump Java HotSpot(TM) 64-Bit Server VM (20.1-b02 mixed mode): | |
"Attach Listener" daemon prio=10 tid=0x00000000412e3800 nid=0x40f7 waiting on condition [0x0000000000000000] | |
java.lang.Thread.State: RUNNABLE | |
Locked ownable synchronizers: | |
- None |
This file contains hidden or 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
;; ~/.lein/user.clj | |
(if (>= (.compareTo (clojure-version) "1.3.0") 0) | |
(do (use 'clojure.repl) | |
(use 'clojure.java.javadoc))) |
This file contains hidden or 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
mpenet@thinkbox:~$ cabal install happy | |
Resolving dependencies... | |
Downloading happy-1.18.9... | |
[1 of 1] Compiling Main ( /tmp/happy-1.18.94212/happy-1.18.9/Setup.lhs, /tmp/happy-1.18.94212/happy-1.18.9/dist/setup/Main.o ) | |
/tmp/happy-1.18.94212/happy-1.18.9/Setup.lhs:6:52: | |
Warning: In the use of `buildVerbose' | |
(imported from Distribution.Simple.Setup): | |
Deprecated: "Use buildVerbosity instead" |