Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am temas on github.
  • I am temas (https://keybase.io/temas) on keybase.
  • I have a public key ASCL7ZznfzgbBLsOdnDScBTjJSWFhghBaUmLnNmaIfRIKAo

To claim this, I am signing this object:

➤ cat ~/.config/fish/functions/fish_prompt.fish
function fish_prompt --description 'Write out the prompt'
set -l last_status $status
# User
set_color $fish_color_user
echo -n (whoami)
set_color normal
echo -n '@'
@temas
temas / gist:14a46993837e16c185c3
Created March 7, 2015 02:37
Telehash cloak tester in python
"""
chacha.py
An implementation of ChaCha in about 130 operative lines
of 100% pure Python code.
Copyright (c) 2009-2011 by Larry Bugbee, Kent, WA
ALL RIGHTS RESERVED.
http://t.co/J5PQPAlT................................. http://t.co/33fUPbWJ
http://t.co/5D4M9c03.MUCH!!!!!!!!!!!!!!!!!!!!!!!!!
@temas
temas / gist:4001663
Created November 2, 2012 14:23
Weird stop in hallway
[^[[90m11/02/2012 10:57:22^[[39m][^[[90mworker-i-1742976b.singly.com^[[39m][^[[36mpipeline^[[39m] - ^[[32mInjecting 200 entries^[[39m
[2012-11-02T14:11:31.982Z] (upstart) Stopping hallway-worker (production)
[2012-11-02T14:11:31.995Z] (exit-wrapper) Got an INT or TERM, sending an INT to hallway-worker at 9291 and waiting
[2012-11-02T14:11:32.011Z] (exit-wrapper) Waiting...
[2012-11-02T14:11:47.086Z] (exit-wrapper) Waiting...
[2012-11-02T14:12:02.106Z] (exit-wrapper) Waiting...
[2012-11-02T14:12:17.129Z] (exit-wrapper) Waiting...
[2012-11-02T14:12:32.208Z] (exit-wrapper) Waiting...
[2012-11-02T14:12:47.228Z] (exit-wrapper) Waiting...
[2012-11-02T14:13:02.303Z] (exit-wrapper) Waiting...
/// An async forEachSeries
/**
* The async implementation can explode the stack, this version will not.
*/
exports.forEachSeries = function(items, cbEach, cbDone) {
function runOne(idx) {
idx = idx || 0;
if (idx >= items.length) return cbDone();
cbEach(items[idx], function(err) {
if (err) return cbDone(err)
IJOD -- No batching
7 Mar 14:53:57 - error: Starting response processing for twitter-self
{"rss":33001472,"heapTotal":28944064,"heapUsed":15328672}
7 Mar 14:53:57 - error: Response processing done for twitter-self in 10
{"rss":34082816,"heapTotal":28944064,"heapUsed":15543712}
7 Mar 14:53:57 - error: Starting response processing for twitter-friends
{"rss":36003840,"heapTotal":28944064,"heapUsed":17142360}
7 Mar 14:53:58 - error: Response processing done for twitter-friends in 164
{"rss":46899200,"heapTotal":29607744,"heapUsed":14917112}
@temas
temas / gist:1944169
Created February 29, 2012 20:30
process.memoryUsage() during VM synclets
{ rss: 42520576, heapTotal: 29351808, heapUsed: 18795816 } -- pre
{ rss: 48185344, heapTotal: 30015488, heapUsed: 13485352 } -- done
{ rss: 49192960, heapTotal: 31023360, heapUsed: 19453952 } -- 1s interval on
{ rss: 49192960, heapTotal: 31023360, heapUsed: 19469288 }
{ rss: 49192960, heapTotal: 31023360, heapUsed: 19485984 }
{ rss: 49192960, heapTotal: 31023360, heapUsed: 19500440 }
{ rss: 49197056, heapTotal: 31023360, heapUsed: 19518720 }
{ rss: 49197056, heapTotal: 31023360, heapUsed: 19533208 }
{ rss: 49197056, heapTotal: 31023360, heapUsed: 19547664 }
{ rss: 49197056, heapTotal: 31023360, heapUsed: 19562120 }
@temas
temas / statsd.js
Created February 27, 2012 20:29
Rough code for node statsd
var dgram = require("dgram");
var statsd_host = "graphic.test.singly.com";
var statsd_port = 8125;
exports["setServer"] = function(host, port) {
statsd_host = host;
statsd_port = port;
}
diff --git a/Apps/dashboardv3/static/common b/Apps/dashboardv3/static/common
index 95377a0..26ebed7 160000
--- a/Apps/dashboardv3/static/common
+++ b/Apps/dashboardv3/static/common
@@ -1 +1 @@
-Subproject commit 95377a0d47fb092b7591ea4b998e7b6426ca807f
+Subproject commit 26ebed7bbd67d239ac6c03a7db0642267bc05a4a
diff --git a/Collections/Contacts/contacts.js b/Collections/Contacts/contacts.js
index 7cda7c6..b36aa07 100644
--- a/Collections/Contacts/contacts.js