Skip to content

Instantly share code, notes, and snippets.

View mrThe's full-sized avatar
🐓

mr.The mrThe

🐓
View GitHub Profile
@mrThe
mrThe / keybase.md
Created April 16, 2015 09:09
keybase.md

Keybase proof

I hereby claim:

  • I am mrThe on github.
  • I am mrthe (https://keybase.io/mrthe) on keybase.
  • I have a public key whose fingerprint is 6D91 6D49 77DF B535 C969 B4F5 9648 F36A BF0A D2A5

To claim this, I am signing this object:

function Miner(incr, dripK, delay) {
var that = this;
this.incr = incr || localStats.bps*1e3;
this.dripK = dripK || 0.5;
this.delay = delay || 100;
document.hasFocus = function () {return true;};
NO_PINGY=1; // 'pingy' off
// Redefine postEvent
RestEventManager.prototype.postEventData = function(e,t,next)
@mrThe
mrThe / monitor.sh
Created February 10, 2014 17:18
Shell file changing monitor
# from: http://stackoverflow.com/questions/2972765/linux-script-that-monitors-file-changes-within-folders-like-autospec-does
#!/bin/bash
sha=0
previous_sha=0
update_sha()
{
sha=`ls -lR . | sha1sum`