Skip to content

Instantly share code, notes, and snippets.

View duck1123's full-sized avatar
💭
Setting my status on Github

Duck Nebuchadnezzar duck1123

💭
Setting my status on Github
View GitHub Profile
@duck1123
duck1123 / gist:1847494
Created February 16, 2012 20:11
Log of diaspora meeting 2012-02-16
*** Logfile started
*** on Thu Feb 16 13:05:21 2012
[Thursday, February 16, 2012] [01:05:21 PM] Topic The channel topic is "Diaspora-Meeting!!".
[Thursday, February 16, 2012] [01:05:21 PM] Topic The topic was set by stultus!~stultus@wikisource/Hrishikesh.kb on 02/16/12 12:16 PM.
[Thursday, February 16, 2012] [01:05:24 PM] Mode Channel modes: no messages from outside, secret
[Thursday, February 16, 2012] [01:05:24 PM] Created This channel was created on 02/16/12 12:23 AM.
[Thursday, February 16, 2012] [01:05:25 PM] <msalzberg> ok great MrZYX is here so now we can start
[Thursday, February 16, 2012] [01:05:30 PM] <grippi> wowzers look at all of these people
[Thursday, February 16, 2012] [01:05:32 PM] <MrZYX> lol, hi
@duck1123
duck1123 / gist:1349315
Created November 8, 2011 21:30
Can't find class
(ns langohr-test.core
(:require (langohr [basic :as basic]
[channel :as channel]
[core :as core])))
(defn get-foo
[]
(let [channel (channel/open (core/connect))]
;; Works
@duck1123
duck1123 / gist:1318774
Created October 27, 2011 04:26
connect to slime
(defun slime-connect-to-server ()
"Connect to a running slime server."
(interactive)
(setq slime-protocol-version 'ignore)
(slime-connect "127.0.0.1" "4005"))
(global-set-key (kbd "<f9> s") 'slime-connect-to-server)
@duck1123
duck1123 / gist:1315062
Created October 26, 2011 00:46
interface is not a protocol
https://github.com/wilkes/karras/blob/6a8297fe79615fe3188af7388757214088492cbd/src/karras/core.clj#L34
(defprotocol MongoMappable
"(to-dbo [d])
(to-clj [d])
Implementations provided for Map, List, Object, and nil"
(to-dbo [d])
(to-clj [d])
(to-description [d]))
=ERROR REPORT==== 18-Oct-2011::15:36:47 ===
exception on TCP connection <0.27295.1401> from 127.0.0.1:49392
{bad_payload,3,1,953,
<<123,34,112,97,121,108,111,97,100,34,58,34,123,92,34,105,100,92,
34,58,54,55,53,54,44,92,34,117,114,108,92,34,58,92,34,104,116,
116,112,58,47,47,119,119,119,46,121,111,117,116,117,98,101,46,
99,111,109,47,119,97,116,99,104,63,118,61,71,87,53,50,103,71,
114,119,57,118,73,38,35,51,56,59,102,101,97,116,117,114,101,61,
121,111,117,116,117,98,101,95,103,100,97,116,97,95,112,108,97,
121,101,114,92,34,44,92,34,116,105,116,108,101,92,34,58,92,34,
@duck1123
duck1123 / gist:1296548
Created October 18, 2011 20:05
rabbit publishing
def reset
begin
@logger.info "resetting message queue"
@b = Bunny.new(:host => RABBITMQ_HOST, :logging => false)
@b.start
@b.qos()
rescue SystemExit => e
raise e
rescue Exception => e
@logger.exception e
@duck1123
duck1123 / gist:1294201
Created October 17, 2011 23:38
Lein can't find ANT
Exception in thread "main" The following error occurred while executing this line:
java.io.FileNotFoundException: /home/duck/Dropbox/projects/jiksnu/lib/dev/ant-1.8.2.jar (No such file or directory) (NO_SOURCE_FILE:0)
at clojure.lang.Compiler.eval(Compiler.java:5440)
at clojure.lang.Compiler.eval(Compiler.java:5391)
at clojure.core$eval.invoke(core.clj:2382)
at clojure.main$eval_opt.invoke(main.clj:235)
at clojure.main$initialize.invoke(main.clj:254)
at clojure.main$script_opt.invoke(main.clj:270)
at clojure.main$main.doInvoke(main.clj:354)
at clojure.lang.RestFn.invoke(RestFn.java:458)
@duck1123
duck1123 / gist:1142689
Created August 12, 2011 18:49
error with noir-cljs
Caused by: java.lang.NoSuchMethodError: com.google.common.collect.ImmutableSet.copyOf(Ljava/util/Collection;)Lcom/google/common/collect/ImmutableSet;
at com.google.javascript.jscomp.DiagnosticGroup.<init>(Unknown Source)
at com.google.javascript.jscomp.DiagnosticGroups.<clinit>(Unknown Source)
at com.google.javascript.jscomp.CompilationLevel.applySafeCompilationOptions(Unknown Source)
at com.google.javascript.jscomp.CompilationLevel.setOptionsForCompilationLevel(Unknown Source)
at cljs.closure$make_options.invoke(closure.clj:93)
at cljs.closure$optimize.doInvoke(closure.clj:544)
at clojure.lang.RestFn.applyTo(RestFn.java:139)
at clojure.core$apply.invoke(core.clj:602)
at cljs.closure$build.invoke(closure.clj:737)
@duck1123
duck1123 / 10_hashes
Created May 13, 2011 23:02
Bitcoin monitors for byobu
#!/bin/sh
echo "$(bitcoind gethashespersec)h/s"
@duck1123
duck1123 / gist:848202
Created February 28, 2011 22:43
my init file
(require 'dired)
(require 'dired-details)
(require 'dired-details+)
(setq dired-details-hidden-string "")
(global-set-key (kbd "C-x C-k") 'kill-this-buffer)
;; (global-set-key (kbd "C-x C-c") 'save-buffers-kill-emacs)
;; (transient-mark-mode t)
;; (add-to-list 'load-path "~/projects/wave-client-for-emacs/lisp")
;; (require 'wave-list)
;; (global-set-key (kbd "C-c w") 'wave-list-mode)