Skip to content

Instantly share code, notes, and snippets.

View terinjokes's full-sized avatar

Terin Stock terinjokes

View GitHub Profile
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
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,
console.log(Q);
/*
>> function Q(value) {
>> return resolve(value);
>> }
*/
var promise = _.extend({
"ref": function() {}
}, Q);
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',
require.config({
baseUrl: './source/javascript',
paths: {
underscore: '../../tmp/lodash',
backbone: './vendor/backbone',
handlebars: './vendor/handlebars.runtime',
jquery: './vendor/jquery',
templates: '../tmp/templates'
},
removeCombined: true,
// 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);
});
@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;
{
"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",
{
"name": "www-frontend",
"version": "0.1.0",
"devDependencies": {
"underscore.string": "~2.3.1",
"jquery": "2.0.2",
"backbone": "~1.0.0",
"backbone.marionette": "~1.0.3",
"backbone.babysitter": "~0.0.6",
"backbone.wreqr": "~0.2.0",
root@7f5ad9fc8238:/# couchdb
Apache CouchDB 1.3.0 (LogLevel=info) is starting.
{"init terminating in do_boot",{{badmatch,{error,{bad_return,{{couch_app,start,[normal,["/etc/couchdb/default.ini","/etc/couchdb/local.ini"]]},{'EXIT',{{badmatch,{error,shutdown}},[{couch_server_sup,start_server,1,[]},{application_master,start_it_old,4,[{file,"application_master.erl"},{line,274}]}]}}}}}},[{couch,start,0,[]},{init,start_it,1,[]},{init,start_em,1,[]}]}}