Skip to content

Instantly share code, notes, and snippets.

View bigeasy's full-sized avatar

Alan Gutierrez bigeasy

  • New Orleans, LA
View GitHub Profile
@bigeasy
bigeasy / server.coffee
Created March 29, 2011 17:55
Connect Stack Trace (Short, Useless)
node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: ECONNREFUSED, Connection refused
at Socket._onConnect (net.js:599:18)
at IOWatcher.onWritable [as callback] (net.js:186:12)
@bigeasy
bigeasy / libxml2.rb
Created April 10, 2011 15:59
the libxml2 Homebrew brew with "--with-mem-debug" added
require 'formula'
class Libxml2 < Formula
url 'ftp://xmlsoft.org/libxml2/libxml2-2.7.7.tar.gz'
homepage 'http://xmlsoft.org'
md5 '9abc9959823ca9ff904f1fbcf21df066'
keg_only :provided_by_osx
fails_with_llvm "Undefined symbols when linking", :build => "2326"
@bigeasy
bigeasy / async.html.eco
Created April 16, 2011 15:26
Async Eco Template
<html>
<head>
<title>This is a title.</title>
</head>
<body>
<%!= @load "projects", (data) => %>
<h2>Projects</h2>
<% for project in data.projects: %>
<%!= @load "assignments", (data) => %>
<p>I should print out that assignment here.</p>
@bigeasy
bigeasy / output.txt
Created June 28, 2011 15:01
Connect to jsDAV from OS X
using dir: /home/alan/var/dossier/locks
jsDAV server running on http://192.168.56.12:8048
REQUEST START: / 1
INFO: invoking method 'OPTIONS'
INFO: sending header: 200 { Allow: 'OPTIONS,GET,HEAD,DELETE,PROPFIND,PUT,PROPPATCH,COPY,MOVE,REPORT,LOCK,UNLOCK',
'MS-Author-Via': 'DAV',
'Accept-Ranges': 'bytes',
'X-jsDAV-Version': undefined,
'Content-Length': 0,
DAV: '1,3,extended-mkcol,2' }
@bigeasy
bigeasy / web.py.patch
Created July 17, 2011 07:26
Pygments CoffeeScript Lexer Patch - Lone @ / Division / Multi-line Regex
diff -r 4550b08c3a85 pygments/lexers/web.py
--- a/pygments/lexers/web.py Sun Jul 17 00:00:59 2011 +0200
+++ b/pygments/lexers/web.py Sun Jul 17 07:25:43 2011 +0000
@@ -1718,16 +1718,18 @@
(r'\s+', Text),
(r'#.*?\n', Comment.Single),
],
+ 'multilineregex': [
+ include('commentsandwhitespace'),
+ (r'///', String.Regex, '#pop'),
@bigeasy
bigeasy / unbound.log
Created August 8, 2011 11:44
Unbound Verbose Logging Output
Aug 8 11:19:37 celje unbound: [6707:0] debug: caught signal SIGTERM
Aug 8 11:19:37 celje unbound: [6707:0] info: service stopped (unbound 1.4.8).
Aug 8 11:19:37 celje unbound: [6707:0] debug: stop threads
Aug 8 11:19:37 celje unbound: [6707:0] debug: cleanup.
Aug 8 11:19:37 celje unbound: [6707:0] info: server stats for thread 0: 0 queries, 0 answers from cache, 0 recursions, 0 prefetch
Aug 8 11:19:37 celje unbound: [6707:0] info: server stats for thread 0: requestlist max 0 avg 0 exceeded 0
Aug 8 11:19:37 celje unbound: [6707:0] info: mesh has 0 recursion states (0 with reply, 0 detached), 0 waiting replies, 0 recursion replies sent, 0 replies dropped, 0 states jostled out
Aug 8 11:19:37 celje unbound: [6707:0] debug: cache memory msg=33040 rrset=33040 infra=1316 val=41428
Aug 8 11:19:37 celje unbound: [6707:0] debug: Exit cleanup.
Aug 8 11:19:37 celje unbound: [6707:0] debug: switching log to stderr
@bigeasy
bigeasy / html.stencil
Created August 24, 2011 01:12
Example Stencil
<!DOCTYPE html>
<html>
<head>
<title>={@title}</title>
</head>
<body>
<h1>People</h1>
%{@people { job: "programmer" }, (people) =>}%
<p>There are ={people.length} programmers among the people.</p>
<ul>
@bigeasy
bigeasy / LICENSE
Created March 6, 2012 12:54
Swipe me: CoffeeScript command line parser boilerplate.
The MIT License
Copyright (c) 2012 Alan Gutierrez
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@bigeasy
bigeasy / OSXScreen.md
Created April 7, 2012 10:12
How to install GNU Screen on OS X using Homebrew.

Installing GNU Screen on OS X in Homebrew

I want to edit in one tab, run what I edit in the other. Typical multi-view stuff. I've used Terminal.app for the last few years. Lately, however, after not long enough, Terminal gets laggy when I switch between tabs.

The stutter between edit and run is annoying, an unnacceptable. One of the major reason I've chosen to work with character based UI is because it is snappy. There shouldn't be a lag while a screen of UTF-8 is rendered in a monospace font.

The lag gets progressively longer, chipping at my productivity with irritation. The only solution is to kill all my Terminals, which essentially kills my flow. Terminal.app won't remember where I was for me. I have to initialize ever tab.

GNU Screen

@bigeasy
bigeasy / GetConsoleOutput.txt
Created April 9, 2012 19:00
AWS GetConsoleOutput for California hosted Fedora 16 AMI ami-25e0bc60
Xen Minimal OS!
start_info: 0xb10000(VA)
nr_pages: 0x6a400
shared_inf: 0xd5d6d000(MA)
pt_base: 0xb13000(VA)
nr_pt_frames: 0x9
mfn_list: 0x967000(VA)
mod_start: 0x0(VA)
mod_len: 0
flags: 0x0