Skip to content

Instantly share code, notes, and snippets.

View witoff's full-sized avatar
💭
fully protected

Rob Witoff witoff

💭
fully protected
View GitHub Profile

CELO_VALIDATOR_GROUP_ADDRESS=c53f5d047ea8a7725a4fd76002739d76548196f4 CELO_VALIDATOR_ADDRESS=b57bc132a8bd43cdb57f8d46f7f4c7ae18620e46

### Keybase proof
I hereby claim:
* I am witoff on github.
* I am witoff (https://keybase.io/witoff) on keybase.
* I have a public key whose fingerprint is C15F 2EFC 0F28 C9EA C3A8 3859 1D7C 21DE 317C E050
To claim this, I am signing this object:
@witoff
witoff / secaudit.json
Last active August 29, 2015 14:07
AWS Secaudit IAM permission
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Description" : "From the AWS SecAudit Base Policy Here: https://s3.amazonaws.com/reinvent2013-sec402/secaudit.json",
"Resources" : {
"SecAuditGroup" : {
"Type" : "AWS::IAM::Group"
},

Keybase proof

I hereby claim:

  • I am witoff on github.
  • I am witoff (https://keybase.io/witoff) on keybase.
  • I have a public key whose fingerprint is 4224 CB46 7CD5 1C78 FA9E A290 7FD8 8AD4 1081 A977

To claim this, I am signing this object:

@witoff
witoff / local_git_store.md
Last active August 29, 2015 14:05
Store Old Repos Locally

First, initialize a source repo

cd ~/Google\ Drive/git
git init --bare project.git

Next, set as a remote and push

cd project/
@witoff
witoff / find_files.pl
Last active December 21, 2015 06:29
Matt's Pies
use File::Find;
$search_dir = '.';
find sub {
return if -d;
push @remote_file_names, $File::Find::name;
}, $search_dir;
foreach(@remote_file_names)
@witoff
witoff / Poll_Coinbase.js
Last active December 15, 2015 08:39
Poll Coinbase for Coin Availability
/* COMPILED:
* Add this snippet as a bookmark and click while on this url:
* https://coinbase.com/buys to check for coin availability every 60 seconds.
* Will sound an audible alarm when coins are available, if using a compliant browser (use chrome).
* Note: Don't DDOS our friends at coinbase!
*/
javascript:var%20s%3Ddocument.createElement%28%27script%27%29%3Bs.setAttribute%28%27type%27%2C%20%27text/javascript%27%29%3Bs.innerHTML%3D%22var%20beep%3D%28function%28%29%7Bvar%20ctx%3Dnew%28window.audioContext%7C%7Cwindow.webkitAudioContext%29%3Breturn%20function%28duration%2Ctype%2CfinishedCallback%29%7Bduration%3D%2Bduration%3Btype%3D%28type%255%29%7C%7C0%3Bif%28typeof%20finishedCallback%21%3D%27function%27%29%7BfinishedCallback%3Dfunction%28%29%7B%7D%7Dvar%20osc%3Dctx.createOscillator%28%29%3Bosc.type%3Dtype%3Bosc.connect%28ctx.destination%29%3Bosc.noteOn%280%29%3BsetTimeout%28function%28%29%7Bosc.noteOff%280%29%3BfinishedCallback%28%29%7D%2Cduration%29%7D%7D%29%28%29%3B%24%28%27%23transfer_btc%27%29.fo
@witoff
witoff / litecoin_miner.sh
Created March 17, 2013 03:35
Add a litecoin pool miner as a low priority task to your *nix server
wget https://github.com/downloads/pooler/cpuminer/pooler-cpuminer-2.2.3-linux-x86_64.tar.gz
tar -xvzf pooler-cpuminer-2.2.3-linux-x86_64.tar.gz
# Replace USER, ID & PASS with your creds setup on http://litecoinpool.org/account
echo "nohup nice -n 20 ./minerd --url http://litecoinpool.org:9332/ --userpass USER.ID:PASS" > litecoin.sh
chmod a+x litecoin.sh
./litecoin.sh &
# Find thir process
# ps axl | grep lite
@witoff
witoff / file_renamer.py
Last active December 14, 2015 12:39
Recursively rename files to work nicely on NTFS.
import os
from os import path, listdir
bad = {'*':'_', '\\':'__'}
def getDirs(path):
return [ name for name in listdir(path) if path.isdir(path.join(thedir, name)) ]
def printAll(uri):
elements = listdir(uri)