Skip to content

Instantly share code, notes, and snippets.

info: HTTP GET /favicon.ico httpVersion=1.1, host=localhost:3000, connection=kee
p-alive, accept=*/*, user-agent=Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWeb
Kit/534.3 (KHTML, like Gecko) Chrome/6.0.472.63 Safari/534.3, accept-encoding=gz
ip,deflate,sdch, accept-language=en-US,en;q=0.8, accept-charset=ISO-8859-1,utf-8
;q=0.7,*;q=0.3, cookie=connect.sid=s%3AfFmx5xTQd%2F1%2Ba1Gcpp%2FB1YrW.UKvZYwo6Dd
y7q28fQi3RLXHRP2IxvAf%2FmhYvBGEL6l8, url=/favicon.ico, method=GET, originalUrl=/
favicon.ico,
Error: Cannot find module 'undefined'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
@ag4ve
ag4ve / gist:3748799
Created September 19, 2012 10:00
static file error
Error: ELOOP, stat '/home/swilson/node/fr/public/css/slick.grid.css'
Error: ELOOP, stat '/home/swilson/node/fr/public/js/slick.grid.js'
Error: ELOOP, stat '/home/swilson/node/fr/public/js/slick.core.js'
info: HTTP GET /js/jquery.event.drag-2.0.min.js httpVersion=1.1, host=localhost:
3000, connection=keep-alive, referer=http://localhost:3000/index.html, accept=*/
*, user-agent=Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.3 (KHTML,
like Gecko) Chrome/6.0.472.63 Safari/534.3, accept-encoding=gzip,deflate,sdch, a
ccept-language=en-US,en;q=0.8, accept-charset=ISO-8859-1,utf-8;q=0.7,*;q=0.3, co
okie=connect.sid=s%3AnB1AHCD1YPZchKXoA9VapeLl.4kMAiplqr56trM6gMtpnju3VeqI%2B2nrZ
sDnqrPs5YXo, url=/js/jquery.event.drag-2.0.min.js, method=GET, originalUrl=/js/j
@ag4ve
ag4ve / gist:3742798
Created September 18, 2012 12:14
trace and code snip
**** fr.js *****
log: function () { [native code] }
info: function () { [native code] }
warn: function () { [native code] }
error: function () { [native code] }
dir: function () { [native code] }
time: function () { [native code] }
timeEnd: function () { [native code] }
trace: function () { [native code] }
assert: function () { [native code] }
@ag4ve
ag4ve / app.js
Created September 11, 2012 12:15
flatiron app
var path = require('path'),
flatiron = require('flatiron'),
director = require('director'),
ecstatic = require('ecstatic'),
connect = require('connect'),
app = flatiron.app,
plugins = flatiron.plugins;
var routes = require('./lib/routes.js'),
models = require('./lib/models.js');
@ag4ve
ag4ve / app.js
Created September 9, 2012 00:48
flatiron.js
var path = require('path'),
flatiron = require('flatiron'),
director = require('director'),
ecstatic = require('ecstatic'),
app = flatiron.app,
plugins = flatiron.plugins;
var routes = require('./lib/routes.js');
app.config.file({ file: path.join(__dirname, 'config', 'config.json') });
@ag4ve
ag4ve / Controller-Search.pm
Created September 5, 2012 19:45 — forked from anonymous/Controller-Search.pm
KinoSearch Example
package MyApp::Web::Controller::Search;
use 5.010;
use Moose;
use namespace::autoclean;
BEGIN { extends 'Catalyst::Controller'; }
sub index : Path : Args(0) {
my ( $self, $c ) = @_;
@ag4ve
ag4ve / build-noxzm.sh
Created August 25, 2012 21:32
byzantium build
#!/bin/sh
# SEARCH AG4VE for notes for you
# Byzantium Linux top level build script.
# by: Sitwon
# This shell script, when executed inside of a Porteus build machine, will
# result in the generation of the file 000-byzantium.xzm.
# Bail on errors
@ag4ve
ag4ve / PKGBUILDs
Created August 24, 2012 17:40
raspberry pi /proc/config.gz et al
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm 3.1.10-13 Kernel Configuration
#
CONFIG_ARM=y
CONFIG_SYS_SUPPORTS_APM_EMULATION=y
CONFIG_HAVE_SCHED_CLOCK=y
CONFIG_GENERIC_GPIO=y
# CONFIG_ARCH_USES_GETTIMEOFFSET is not set
CONFIG_GENERIC_CLOCKEVENTS=y
@ag4ve
ag4ve / xl-cmp.pl
Created July 23, 2012 20:19
erroring: (in cleanup) Can't call method "get_xf_index" on unblessed reference at /usr/local/share/perl/5.10.1/Excel/Writer/XLSX/Worksheet.pm line 5599.
#!/usr/bin/perl
use strict;
use warnings;
use Data::Dumper;
use Getopt::Long;
use Pod::Usage;
@ag4ve
ag4ve / test.pl
Created June 6, 2012 20:57 — forked from chansen/test.pl
US § 6103. HOLIDAYS (Federal)
#!/usr/bin/perl
use strict;
use warnings;
do 'us_federal_holidays.pl';
# Test cases extracted from <http://www.opm.gov/Operating_Status_Schedules/fedhol/Index.asp>
my @tests = (
[ 1997, '1997-01-01', '1997-01-20', '1997-02-17', '1997-05-26', '1997-07-04',
'1997-09-01', '1997-10-13', '1997-11-11', '1997-11-27', '1997-12-25' ],