View repl-binding.clj
1 2 3 4
(def ^:dynamic *dynamic*)
(push-repl-bindings {(var *dynamic*) 1}) ; push-repl-bindings isn't a function
*dynamic*
; => 1
View error.txt
1 2 3 4 5 6 7 8 9 10
Exception in thread "main" java.lang.RuntimeException: Method code too large!
at jdk.internal.org.objectweb.asm.MethodWriter.getSize(MethodWriter.java:2065)
at jdk.internal.org.objectweb.asm.ClassWriter.toByteArray(ClassWriter.java:856)
at jdk.nashorn.internal.codegen.ClassEmitter.toByteArray(ClassEmitter.java:577)
at jdk.nashorn.internal.codegen.CompilationPhase$8.transform(CompilationPhase.java:396)
at jdk.nashorn.internal.codegen.CompilationPhase.apply(CompilationPhase.java:513)
at jdk.nashorn.internal.codegen.Compiler.compile(Compiler.java:361)
at jdk.nashorn.internal.runtime.Context.compile(Context.java:1071)
at jdk.nashorn.internal.runtime.Context.compileScript(Context.java:1019)
at jdk.nashorn.internal.runtime.Context.compileScript(Context.java:490)
View gregor.py
1 2 3 4 5 6 7 8 9 10
# written in anger at 4AM. it's a bad idea to use this.
 
import struct
import sys
import glob
import os
 
source = sys.argv[1]
dest = sys.argv[2]
topic = sys.argv[3]
View gist:9101028
1
net.opentsdb.core.IllegalDataException: Found out of order or duplicate data: cell=Cell([-127, -5], [68, -122, -111, 96]), delta=2079000, prev cell=Cell([-127, -5], [66, -9, -50, -39]), last_delta=2079000, in row=[KeyValue(key=[0, 16, 41, 83, 3, -97, -96, 0, 0, 25, 0, -128, 65], family="t", qualifier=[0, 11, 0, 27, 0, 43, 0, 59, 0, 75, 0, 91, 0, 107, 0, 123, 0, -117, 0, -101, 0, -85, 0, -69, 0, -53, 0, -37, 0, -21, 0, -5, 1, 11, 1, 27, 1, 43, 1, 59, 1, 75, 1, 91, 1, 107, 1, 123, 1, -117, 1, -101, 1, -85, 1, -69, 1, -53, 1, -37, 1, -21, 1, -5, 2, 11, 2, 27, 2, 43, 2, 59, 2, 75, 2, 91, 2, 107, 2, 123, 2, -117, 2, -101, 2, -85, 2, -69, 2, -53, 2, -37, 2, -21, 2, -5, 3, 11, 3, 27, 3, 43, 3, 59, 3, 75, 3, 91, 3, 107, 3, 123, 3, -117, 3, -101, 3, -85, 3, -69, 3, -53, 3, -37, 3, -21, 3, -5, 4, 11, 4, 27, 4, 43, 4, 59, 4, 75, 4, 91, 4, 107, 4, 123, 4, -117, 4, -101, 4, -85, 4, -69, 4, -53, 4, -37, 4, -21, 4, -5, 5, 11, 5, 27, 5, 43, 5, 59, 5, 75, 5, 91, 5, 107, 5, 123, 5, -117, 5, -101, 5, -85, 5, -69, 5, -53, 5, -37
View gist:8758130
1 2
Import["http://lead.ryanberdeen.com/render?target=randomWalkFunction(%\
27hello%2C+world%27)", "JSON"]
View gist:8062298
1 2
sudo docker run -d -name zookeeper -p 2181 also/kafka:test-3 sh /opt/kafka/bin/zookeeper-server-start.sh /opt/kafka/config/zookeeper.properties
sudo docker run -link zookeeper:zk -e BROKER_ID=10 also/kafka:test-3 /opt/kafka/bin/docker-kafka.sh
View vmware.txt
1 2 3 4 5 6 7 8 9 10
air:vmware ryan$ vagrant init precise64
A `Vagrantfile` has been placed in this directory. You are now
ready to `vagrant up` your first virtual environment! Please read
the comments in the Vagrantfile as well as documentation on
`vagrantup.com` for more information on using Vagrant.
air:vmware ryan$ vagrant up --provider vmware_fusion
Bringing machine 'default' up with 'vmware_fusion' provider...
[default] Cloning VMware VM: 'precise64'. This can take some time...
[default] Verifying vmnet devices are healthy...
[default] Preparing network adapters...
View install-docker.sh
1 2 3 4
wget -qO- https://get.docker.io/gpg | apt-key add -
echo deb http://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list
apt-get update
apt-get install -y lxc-docker
View gist:7729708
1 2 3 4 5 6 7 8 9 10
# /usr/libexec/java_home -X
$ sudo opensnoop -n java_home
UID PID COMM FD PATH
501 79809 java_home 3 /System/Library/PrivateFrameworks/JavaLaunching.framework/Versions/A/JavaLaunching
501 79809 java_home 3 /dev/dtracehelper
501 79809 java_home 4 /System/Library/CoreServices/SystemVersion.bundle//English.lproj
501 79809 java_home -1 /System/Library/CoreServices/SystemVersion.bundle//Base.lproj
501 79809 java_home 4 /System/Library/CoreServices/SystemVersion.bundle/English.lproj/SystemVersion.strings
501 79809 java_home -1 /System/Library/CoreServices/SystemVersion.bundle/English.lproj/SystemVersion.stringsdict
501 79809 java_home 3 /usr/share/icu/icudt51l.dat
Something went wrong with that request. Please try again.