Skip to content

Instantly share code, notes, and snippets.

"run-main-0" #39 prio=5 os_prio=31 tid=0x00007f9563430000 nid=0x5c03 in Object.wait() [0x000070000ab64000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(java.base@9.0.1/Native Method)
- waiting on <0x00000007b8be5510> (a java.util.concurrent.atomic.AtomicReference)
at java.lang.Object.wait(java.base@9.0.1/Object.java:516)
at scalaz.ioeffect.RTS.tryUnsafePerformIO(RTS.scala:68)
- waiting to re-lock in wait() <0x00000007b8be5510> (a java.util.concurrent.atomic.AtomicReference)
at scalaz.ioeffect.RTS.tryUnsafePerformIO$(RTS.scala:48)
at scalaz.ioeffect.catz$.tryUnsafePerformIO(catz.scala:9)
at scalaz.ioeffect.RTS.unsafePerformIO(RTS.scala:26)
(ns user)
; The empty room
(def room {:id "room1" :people []})
; People to add to the room
(def p1 {:id 1 :name "john"})
(def p2 {:id 2 :name "sam"})
; Adding people to the room
@ericdwhite
ericdwhite / Makefile
Last active April 17, 2016 04:11
Example using CURL to access https://www.newsblur.com/api
#
# To use this Makefile:
# 1. Change USER, PASSWORD
#
# 2. Login
# $ make login
# This creates a session file holding an API cookie (tmp/session.newsblur)
#
# 3. Downloads your feeds
# $ make feeds
@ericdwhite
ericdwhite / MasOX.diff
Created September 1, 2012 13:05
libjxs MacOSX Patch
diff --git a/build.xml b/build.xml
index ace1c13..ae15832 100644
--- a/build.xml
+++ b/build.xml
@@ -35,8 +35,8 @@
<property name="class.jni5" value="io.crossroads.jni.XsErrors"/>
<property name="dir.xs" location="../libxs"/>
<property name="dir.xs.inc" location="${dir.xs}/include"/>
- <property name="dir.xs.lib" location="${dir.xs}/lib/Win32"/>
- <property name="dir.xs.libname" value="libxs_d"/>
@ericdwhite
ericdwhite / gist:1152678
Created August 17, 2011 21:24
Writing the grub MBR from within the VM
THIS IS A WORK AROUND
Installing Grub manually from within the Image:
Steps:
0) Comment out the grub --device-map=/dev/null (Until the end of EOF)
This is the part that is executed from host.
diff --git a/06-install-grub.bash b/06-install-grub.bash
index f052c01..4f76aee 100755
@ericdwhite
ericdwhite / default.rb
Created August 13, 2011 21:51
cookbooks/mongodb/recipes/default.rb
execute 'apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10' do
user 'root'
not_if 'apt-key list | grep 7F0CEB10'
end
execute "add-apt-repository 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen'" do
user 'root'
not_if 'grep mongodb /etc/apt/sources.list'
end
# If --format is not added to the autotest profile
# as defined cucumber.yml then no out appears.
#
autotest: --color --format pretty
autotest-all: --color --format progress