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
version: '2'
services:
arangodb:
environment:
ARANGO_NO_AUTH: "1"
image: "arangodb/arangodb:3.1.3"
ports:
- "8529:8529/tcp"
volumes:
@duck1123
duck1123 / docker-compose.yml
Created June 12, 2016 16:02
Minecraft Compose
Minecraft:
environment:
DIFFICULTY: normal
EULA: 'TRUE'
MODE: survival
MOTD: KRONK Ltd.
OPS: duck112358
PVP: 'false'
SEED: ''
VERSION: 1.7.10
# BREAD PUDDING
# By Evan & Amita Prodromou
let oven = OvenProvider.getOven()
oven.preheat(350)
let bread = [bread, cake, cupcake, cinnamon rolls, bagel]
For each bread,
bread = bread / 2
if bread <= 1 cm
@duck1123
duck1123 / request.xpl
Created September 30, 2015 18:37
openid request processor in XPL
<?xml version="1.0" encoding="UTF-8"?>
<p:config xmlns:mycp="http://mycyclopedia.net/ns/processors" xmlns:oid="http://mycyclopedia.net/ns/openid" xmlns:oidreq="http://mycyclopedia.net/ns/openid/request" xmlns:oxf="http://www.orbeon.com/oxf/processors" xmlns:p="http://www.orbeon.com/oxf/pipeline" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- openid instance -->
<p:param name="instance" type="input" />
<!-- read mycyclopedia config -->
<p:processor name="oxf:identity">
<!-- mycyclopedia config -->
<p:input href="oxf:/model/config/mycyclopedia.xml" name="data" />
@duck1123
duck1123 / ddate.js
Created September 25, 2015 03:51
DDate in JS
// title: Discordian Date Converter
// filename: ddate.js
// author: Lord Anas Mystosis Nebuchadnezzar XXXVII
// URL: http://kronkltd.net/
// Format Key:
// d - Day of the month, 2 digits with leading zeros (01 - 73)
// D - A textual representation of a day, three letters (Swt, Bmt, Pun, Pri, Set)
// F - A full textual representation of a month (Chaos, Discord, Confusion, Bureaucracy, Aftermath)
// j - Day of the month without leading zeros (1 - 73)
@duck1123
duck1123 / readme
Created January 9, 2015 04:47
aleph takes long time to serve resource from jar
aleph takes long time to serve resource from jar
request
{:remote-addr "192.168.1.42",
:scheme :http,
:request-method :get,
:query-string nil,
:content-type nil,
:keep-alive? false,
:uri "/webjars/jquery/2.1.1/jquery.min.map",
cljs.core.PersistentQueue.EMPTY = new cljs.core.PersistentQueue(null, 0, null, cljs.core.with_meta(cljs.core.PersistentVector.EMPTY, new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null, "file", "file", 1017047278), "/home/duck/projects/jiksnu/resources/public/assets/cljs/cljs/core.cljs"], null)), 0);
root@dev:/opt/graphite# ./bin/run-graphite-devel-server.py . --port=8086
Running Graphite from . under django development server
/usr/local/bin/django-admin.py runserver --pythonpath=./webapp --settings=graphite.settings 0.0.0.0:8086
Validating models...
0 errors found
Django version 1.4.2, using settings 'graphite.settings'
Development server is running at http://0.0.0.0:8086/
Quit the server with CONTROL-C.
@duck1123
duck1123 / gist:3133277
Created July 18, 2012 00:46
Cljs repl error
ClojureScript:cljs.user> (require '[jayq.core :as j])
"Error evaluating:" (require (quote [jayq.core :as j])) :as "cljs.user.require.call(null,cljs.core.vec([\"\\uFDD1'jayq.core\",\"\\uFDD0'as\",\"\\uFDD1'j\"]));\n"
#<TypeError: Cannot call method 'call' of undefined>
TypeError: Cannot call method 'call' of undefined
at eval at <anonymous> (http://renfer.name/cljs/bootstrap.js:28707:147)
at eval at <anonymous> (http://renfer.name/cljs/bootstrap.js:28707:147)
at http://renfer.name/cljs/bootstrap.js:28707:142
at evaluate_javascript (http://renfer.name/cljs/bootstrap.js:28720:4)
at Object.callback (http://renfer.name/cljs/bootstrap.js:28785:139)
at [object Object].deliver (http://renfer.name/cljs/bootstrap.js:26894:13)