Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / bitcoin.conf
Created October 10, 2014 20:57
supervisor bitcoin configuration
[program:bitcoin]
command = /usr/local/bin/bitcoind --datadir=/home/ubuntu/.bitcoin
user = ubuntu
directory = /home/ubuntu/
startsecs=20
autostart=true
autorestart=true
startretries=1
redirect_stderr=true
logfile_maxbytes = 50MB
@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 / periodic_sender.go
Last active June 11, 2019 16:54
Periodic Pointcoin sender
package main
import (
"flag"
"fmt"
"io/ioutil"
"log"
"github.com/PointCoin/btcnet"
"github.com/PointCoin/btcrpcclient"
@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