Skip to content

Instantly share code, notes, and snippets.

View terinjokes's full-sized avatar

Terin Stock terinjokes

View GitHub Profile
{
"name": "www-frontend",
"version": "0.1.0",
"devDependencies": {
"underscore.string": "~2.3.1",
"jquery": "2.0.2",
"backbone-amd": "~1.0.0",
"backbone.marionette": "~1.0.3",
"backbone.babysitter": "~0.0.6",
"backbone.wreqr": "~0.2.0",
@terinjokes
terinjokes / 404_content.conf
Created June 12, 2013 18:24
nginx configuration to return 404 for all pages with content.
server {
listen 80 default_server;
server_name _;
location / {
return 404
}
location /404.html {
root /var/www/default/htdocs;
// later require
var start=window.performance.now();
CloudFlare.define("stuff",
['cloudflare/console'],
function(console) {
var url='https://piwik-ssl.ns1.net/piwik.js';
CloudFlare.require([url], function(url) {
window.console.log("require later time differential =");
window.console.log(window.performance.now() - start);
});
require.config({
baseUrl: './source/javascript',
paths: {
underscore: '../../tmp/lodash',
backbone: './vendor/backbone',
handlebars: './vendor/handlebars.runtime',
jquery: './vendor/jquery',
templates: '../tmp/templates'
},
removeCombined: true,
var http = require('http');
http.createServer(function(request, response) {
console.log('Request from: '+ request.url);
response.end();
}).listen(1337);
http.request({
host: '127.0.0.1',
console.log(Q);
/*
>> function Q(value) {
>> return resolve(value);
>> }
*/
var promise = _.extend({
"ref": function() {}
}, Q);
function globalEval(text) {
/**
* Modified version of runScriptText() from FuseJS
* Copyright (c) 2008-2010 John-David Dalton, https://github.com/jdalton/fusejs
*
* FuseJS is distributed under an MIT license. <https://github.com/jdalton/fusejs>
*/
var suid = _.uniqueId('fused_'),
script,
result,
Mon Jan 28 22:59:53 2013
panic(cpu 1 caller 0xffffff800e443d8e): "a freed zone element has been modified in zone: kalloc.64"@/SourceCache/xnu/xnu-2050.18.24/osfmk/kern/zalloc.c:219
Backtrace (CPU 1), Frame : Return Address
0xffffff813d70ba00 : 0xffffff800e41d626
0xffffff813d70ba70 : 0xffffff800e443d8e
0xffffff813d70bab0 : 0xffffff800e4435d2
0xffffff813d70bb90 : 0xffffff800e4245ed
0xffffff813d70bbc0 : 0xffffff800e7ee1bd
0xffffff813d70bbf0 : 0xffffff800e80015b
0xffffff813d70bc20 : 0xffffff7f8f37a675
@terinjokes
terinjokes / gist:3854368
Created October 8, 2012 19:20
error compiling texinfo
make: Entering directory `/mnt/clfs/sources/texinfo-4.13/tools'make all-recursivemake[1]: Entering directory `/mnt/clfs/sources/texinfo-4.13/tools'
Making all in lib
make[2]: Entering directory `/mnt/clfs/sources/texinfo-4.13/tools/lib'make[2]: Nothing to be done for `all'.make[2]: Leaving directory `/mnt/clfs/sources/texinfo-4.13/tools/lib'
Making all in info
make[2]: Entering directory `/mnt/clfs/sources/texinfo-4.13/tools/info'
make all-am
make[3]: Entering directory `/mnt/clfs/sources/texinfo-4.13/tools/info'
gcc -g -O2 -o ginfo dir.o display.o dribble.o echo-area.o filesys.o footnotes.o gc.o indices.o info-utils.o info.o infodoc.o infomap.o m-x.o man.o nodemenu.o nodes.o search.o session.o signals.o terminal.o tilde.o variables.o window.o doc.o ../lib/libtxi.a ../gnulib/lib/libgnu.a
terminal.o: In function `terminal_end_using_terminal':
/mnt/clfs/sources/texinfo-4.13/info/terminal.c:166: undefined reference to `tputs'
@terinjokes
terinjokes / gist:2791991
Created May 26, 2012 03:28
brew --config
TheMacBookPro:~ terin$ brew --config
HOMEBREW_VERSION: 0.9
HEAD: 3f070ef24522adf624d2ecb11c5596dcc648e9a4
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit arrandale
OS X: 10.7.4
Kernel Architecture: x86_64
Xcode: 4.3.2
GCC-4.0: N/A