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 / partial.js
Created July 16, 2012 19:08
Load and Specialize
var tz = require('timezone');
var loaded = tz(require('timezone/fr_FR'), require('timezone/America/Detroit'));
var fr = loaded('America/Detroit', 'fr_FR');
console.log(fr('*', '%c'));
@bigeasy
bigeasy / README.md
Created July 9, 2012 22:11
Open Source Contribution Policy
We couldn’t find that file to show.
@bigeasy
bigeasy / .bash_profile
Created June 27, 2012 17:44
hidegrep
# Add to your `.bash_profile`. If you do something that is incredibly
# destructive, like `git push --force origin HEAD`, you can then
# delete it, how ever many times you've run it, from your history
# using `hidegrep --force`.
function hidegrep()
{
while true; do
hist=$(history | grep -e "$1" | head -n 1)
if [ -z "$hist" ]; then break; fi
@bigeasy
bigeasy / foo.sh
Created June 12, 2012 02:20
performance of http_simple.js
PORT=6000 /tmp/node-v0.6 benchmark/http_simple.js &
pid=$!
sleep 1
for i in {0..2}; do
ab -t 30 -c 100 http://127.0.0.1:6000/bytes/123 2>/dev/null | grep Req
done
kill $pid
sleep 60
@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
@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 / 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 / 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 / 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 / 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'),