Skip to content

Instantly share code, notes, and snippets.

iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 5984
@luk-
luk- / gist:4270276
Created December 12, 2012 18:26
What if it was written in ruby?
13:22 luke_: what if it was written in ruby
13:22 mstyne: oh jesus
13:23 mstyne: $ rake freeballin/dolphin_pants.rb --test --noop --trace --gemsgemsgems
13:23 luke_: ruby -ivrq rake::run_test_env guacamole:-:machine:fulfill --env=production_test_mock --debug-level-low=2 --debug=semi-true
@luk-
luk- / sh.css
Last active December 10, 2015 02:58
.sh_sourceCode {
font-weight: normal;
font-style: normal;
}
.sh_sourceCode .sh_symbol,
.sh_sourceCode .sh_cbracket {
color: #333;
}
@luk-
luk- / docs.diff
Last active December 10, 2015 03:08
diff out/doc/api/all.html /Users/luke/Repos/node/out/doc/api/all.html
1004,1007d1003
< <p>The notices look like this:
<
< </p>
< <pre><code>Stability: 1 Experimental</code></pre>
1011c1007
< <ul>
---
> <pre class="api_stability_0">Stability: 0 - Deprecated</pre><ul>
@luk-
luk- / doc.md
Created December 26, 2012 18:29
Stability: 0 - Deprecated
This feature is known to be problematic, and changes are
planned.  Do not rely on it.  Use of the feature may cause warnings.  Backwards
compatibility should not be expected.


Stability: 1 - Experimental
This feature was introduced recently, and may change
or be removed in future versions.  Please try it out and provide feedback.

If it addresses a use-case that is important to you, tell the node core team.

$ curl -uauth:stuff -sSNT test.js testling.com/?browsers=iexplore/7.0,iexplore/8.0,chrome/13.0
iexplore/7.0:
error: Cannot find module '../'
at require() in /test.js : line: 1, column: 16
> var dumpling = require('../')
@luk-
luk- / .jshintrc
Created January 4, 2013 02:38 — forked from rvagg/.jshintrc
{
"predef": [ "assert", "refute", "define" ]
, "boss": true
, "bitwise": true
, "shadow": true
, "trailing": true
, "immed": true
, "latedef": true
, "forin": false
, "curly": false
@luk-
luk- / gist:4490803
Last active December 10, 2015 20:48
nput install v0.8.14 -h example.com -u root -p
max: 120688
for (var i = 0; i < 120688; i++) {
db.put(i, i, function (err) {
if (err) {
throw new Error('problem')
}
})
}