Skip to content

Instantly share code, notes, and snippets.

@NSkelsey
NSkelsey / gist:9965140
Last active August 29, 2015 13:58
keybase.md
### Keybase proof
I hereby claim:
* I am nskelsey on github.
* I am nskelsey (https://keybase.io/nskelsey) on keybase.
* I have a public key whose fingerprint is EBA3 D149 1189 B4C9 3778 FD51 8F64 4936 969A 262C
To claim this, I am signing this object:
@NSkelsey
NSkelsey / whatisdom.html
Last active August 29, 2015 14:07
annas
<!DOCTYPE html>
<html>
<head>
<title> Anna's Explanation of the Document Object Model </title>
</head>
<body style=
"background-color:#6699ff;
text-align:center;
font-family:MyriadPro-Regular;
font-size:40px;
@NSkelsey
NSkelsey / template_miner.go
Last active August 29, 2015 14:15
Reference block template miner
package main
import (
"io/ioutil"
"log"
"strconv"
"github.com/PointCoin/btcjson"
"github.com/PointCoin/btcnet"
"github.com/PointCoin/btcrpcclient"
@NSkelsey
NSkelsey / support.go
Created February 9, 2015 08:17
Supporting functions for a simple block template miner
// These functions have been shamelessly taken from https://github.com/btcsuite/btcd/blob/master/mining.go
package support
import (
"math/rand"
"github.com/PointCoin/btcnet"
"github.com/PointCoin/btcutil"
"github.com/PointCoin/btcwire"
@NSkelsey
NSkelsey / gist:db6544058d3579bc40f0
Last active August 29, 2015 14:16
plot-pointcoin.conf
; saba
addpeer=52.11.86.96
; peter
addpeer=52.10.98.211
; Laurence
addpeer=54.164.199.124
; Anat
@NSkelsey
NSkelsey / server-infra.md
Last active November 18, 2015 16:34
Ombuds Server Infrastructure

The physical infrastructure for Ombuds

4k up to 5k to spend.

We want 3 isolated computing environments to provide 3 different services.

  1. A build server for android and binary releases
  2. A web-host for soapbox and ombuds static sites
  3. An ombfullnode behind a TOR hidden service
@NSkelsey
NSkelsey / config.inc.php
Created September 17, 2013 05:37
sample config.inc.php
<?php
/**
* The configuration file that drives The State Decoded.
*
* PHP version 5
*
* @author Waldo Jaquith <waldo at jaquith.org>
* @copyright 2010-2013 Waldo Jaquith
* @license http://www.gnu.org/licenses/gpl.html GPL 3
Vagrant.configure("2") do |config|
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
config.vm.network :private_network, ip: "192.168.56.101"
config.ssh.forward_agent = true
config.vm.provider :virtualbox do |v|
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
v.customize ["modifyvm", :id, "--memory", 1024]
@NSkelsey
NSkelsey / bcnBrandInjection.js
Last active July 15, 2016 06:53
Bustia Etica Changes
var bcnBrandInjection = bcnBrandInjection || {};
(function (bcnBrandInjection, context) {
/*!
* @preserve Qwery - A selector engine
* https://github.com/ded/qwery
* (c) Dustin Diaz 2014 | License MIT
*/
(function(e,t,n){typeof module!="undefined"&&module.exports?module.exports=n():typeof define=="function"&&define.amd?define(n):t[e]=n()})("qwery",this,function(){function o(e){return[].slice.call(e,0)}function u(e){var t;return e&&typeof e=="object"&&(t=e.nodeType)&&(t==1||t==9)}function a(e){return typeof e=="object"&&isFinite(e.length)}function f(e){for(var t=[],n=0,r=e.length;n<r;++n)a(e[n])?t=t.concat(e[n]):t[t.length]=e[n];return t}function l(e){var t=[],n,r;e:for(n=0;n<e.length;n++){for(r=0;r<t.length;r++)if(t[r]==e[n])continue e;t[t.length]=e[n]}return t}function c(e){return e?typeof e=="string"?h(e)[0]:!e[i]&&a(e)?e[0]:e:t}function h(r,i){var l,h=c(i);return!h||!r?[]:r===n||u(r)?!i||r!==n&&u(h)&&s(r,h)?[r]:[]:r&&a(r)?f(r):t.getElementsByClassName&&r=="string"&&(l=r.match(e))?o(h.getEl
@NSkelsey
NSkelsey / sidechannel.py
Created January 10, 2017 12:07
Demonstrates lack of resolution in timing side channels
#!/usr/bin/env python
import string
import random
import timeit
#from globaleaks.handlers import authentication
from globaleaks.security import check_password, hash_password
guesses = 1000000