Skip to content

Instantly share code, notes, and snippets.

View orweinberger's full-sized avatar

Or Weinberger orweinberger

View GitHub Profile
#!/bin/sh
echo "\n --- delete index"
curl -X DELETE 'http://localhost:9200/'
echo "\n --- create index and put mapping into place"
curl -X POST 'http://localhost:9200/myindex/' -d '{
"mappings" : {
"person" : {
"properties" : {
@tregoning
tregoning / facebookExpand.js
Created October 15, 2012 22:03
Expand all comments on a Facebook page
(function(){
'use strict';
var digCounter = 0,
numberOfDigTries = 3,
bodyHeight = window.getComputedStyle(document.body).height;
var scroll = function(){
window.scrollBy(0, 10000);

Armory on the RPi

Building the Armory Bitcoin client for the Raspberry Pi

About Armory

Armory by etotheipi is capible of running as an air-gapped offline wallet for bitcoin.

About Raspberry Pi

Raspberry Pi is a 35 USD / 1 BTC computer that is meant for children to experement on and learn computing. It also happens to be the perfect computer to dedicate to a bitcoin offline wallet. You can buy a pi for less than a bitcoin here. The instructions that follow will get you a binary of Armory that will run from a raspberry pi that has never touched the internet.

@itayw
itayw / hook.js
Last active December 27, 2015 09:19
hook object functions and measure times
//Simple prototype modifier to add console.time measure
// whenever a function is called.
//The hook will ignore any function starting with _ as treat
// as private.
Object.prototype.hookEvents = function (modifier) {
var obj = this;
var name, fn;
for (name in obj) {