Skip to content

Instantly share code, notes, and snippets.

{
"author": "Joshua Holbrook",
"name": "hoarders",
"description": "node.js's most complete \"utility grab-bag\". Dedicated to substack.",
"version": "0.0.0",
"dependencies": {
"27bslash6-module": "*",
"2co": "*",
"2csv": "*",
"2kenizer": "*",
#!/bin/bash
ip=`/usr/bin/curl -s ipv4.icanhazip.com`
echo -n $ip | /usr/bin/pbcopy
echo $ip
mbp:~ luke$ stenographer I
/Users/luke/Repos/nvm/v0.8.4/lib/node_modules/stenographer/index.js:49
console.log(JSON.parse(resp).hypotheses[0].utterance)
^
TypeError: Cannot read property 'utterance' of undefined
at ConcatStream.cb (/Users/luke/Repos/nvm/v0.8.4/lib/node_modules/stenographer/index.js:49:49)
at ConcatStream.end (/Users/luke/Repos/nvm/v0.8.4/lib/node_modules/stenographer/node_modules/concat-stream/index.js:43:21)
at Request.onend (stream.js:66:10)
at Request.EventEmitter.emit (events.js:115:20)
mbp:~ luke$ stenographer I
/Users/luke/Repos/nvm/v0.8.4/lib/node_modules/stenographer/index.js:49
console.log(JSON.parse(resp).hypotheses[0].utterance)
^
TypeError: Cannot read property 'utterance' of undefined
at ConcatStream.cb (/Users/luke/Repos/nvm/v0.8.4/lib/node_modules/stenographer/index.js:49:49)
at ConcatStream.end (/Users/luke/Repos/nvm/v0.8.4/lib/node_modules/stenographer/node_modules/concat-stream/index.js:43:21)
at Request.onend (stream.js:66:10)
at Request.EventEmitter.emit (events.js:115:20)
@luk-
luk- / gist:3691442
Created September 10, 2012 15:17
best spam email ever
Greetings to you,
This is to officially notify you on the unclaimed fund left by Engineer George, who was burnt to death with his entire
family on 18th August 2008, in when their car collided with a trailer while they are coming back from a holiday in a
resort off the town.
As the personal lawyer of the deceased and the trustee of his estate, all I needed is your honest cooperation in
standing as the only living relation and put claim over the release of this fund to you for our sharing. so if you
response I will present you for the claim of US$3.2 million he left in a bank here in our country. I will inform
you more once I receive positive response from you.
@luk-
luk- / gist:3703764
Created September 12, 2012 02:11
sensible minimal vim defaults
syntax on
"set cindent
set smartindent
set hlsearch
set ruler
set showcmd
set title
set history=1000
set sw=2
set pastetoggle=<C-l>
@luk-
luk- / gist:3744633
Created September 18, 2012 17:52 — forked from mstyne/gist:3744554
couchdb init, from debian
#!/bin/sh -e
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
info: Welcome to Nodejitsu st_luke
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing your application dependencies in index.js
info: Checking app availability npm-updates
info: Creating app npm-updates
error: Error creating npm-updates
error: Nodejitsu Error (500): Internal Server Error
error: Error running command deploy
error: Nodejitsu Error (500): Internal Server Error
@luk-
luk- / _gradients.sass
Created September 20, 2012 23:47 — forked from mihar/_gradients.sass
SASS mixing for CSS3 gradients
=gradient($from, $to)
/* fallback/image non-cover color */
background-color: $from
/* Firefox 3.6+ */
background-image: -moz-linear-gradient($from, $to)
/* Safari 4+, Chrome 1+ */
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from($from), to($to))
@import "mixins";
// colors
$main_bg: rgb(239, 239, 239);
$nav_selected: rgb(86, 95, 107);
@mixin header_bar_bg {
@include background_gradient (rgb(66, 74, 87), rgb(20, 30, 46));
}