Skip to content

Instantly share code, notes, and snippets.

View insanity54's full-sized avatar

Chris Grimmett insanity54

View GitHub Profile
@insanity54
insanity54 / .bashrc
Created April 30, 2015 11:10
Cloud9IDE bashrc exports for Go April 2015
export GOROOT=/opt/go
export GOPATH=~/workspace/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
@insanity54
insanity54 / gist:8025f0c82268e8390c88
Last active October 10, 2015 20:20
-- and ++ on lists

Example (lines 9 & 10) are from http://learnyousomeerlang.com/starting-out-for-real#lists

Both ++ and -- are right-associative. This means the elements of many -- or ++ operations will be done from right to left, as in the following examples:

9> [1,2,3] -- [1,2] -- [3].
[3]
10> [1,2,3] -- [1,2] -- [2].
[2,3]
@insanity54
insanity54 / shinken-notes.md
Created November 5, 2015 17:47
Shinken notes

Shinken

Installation

these steps are for debian.

prereqs

$ sudo apt-get install python-pip python-pycurl python-crypto
@insanity54
insanity54 / bitcoin.js
Last active January 20, 2016 21:39
bitcore payment protocol ??? BIP70 test using Bitcore
var PaymentProtocol = require('bitcore-payment-protocol');
var BitcoreLib = require('bitcore-lib');
var express = require('express');
var app = express();
var Address = BitcoreLib.Address;
var Script = BitcoreLib.Script;
// get paths to x509 certs from environment
Verifying that +insanity54 is my blockchain ID. https://onename.com/insanity54
Date Open High Low Close Volume
9-Jun-14 62.40 63.34 61.79 62.88 37617413
6-Jun-14 63.37 63.48 62.15 62.50 42442096
5-Jun-14 63.66 64.36 62.82 63.19 47352368
4-Jun-14 62.45 63.59 62.07 63.34 36513991
3-Jun-14 62.62 63.42 62.32 62.87 32216707
2-Jun-14 63.23 63.59 62.05 63.08 35995537
30-May-14 63.95 64.17 62.56 63.30 45283577
29-May-14 63.84 64.30 63.51 63.83 42699670
28-May-14 63.39 64.14 62.62 63.51 47795088
Verifying that +saveabit is my blockchain ID. https://onename.com/saveabit
@insanity54
insanity54 / openbazaar.conf
Last active April 21, 2016 23:58
OpenBazaar upstart script
# Startup script for OpenBazaar Server that will auto-restart if crashed
# Copy this script to /etc/init folder
# "chmod 644 openbazaar.conf"
# Change "chdir", "setuid" and "setgid" according to your system
# Usage: "sudo service openbazaar start"
description "OpenBazaar Server"
start on runlevel [2345]
stop on starting rc RUNLEVEL=[016]
@insanity54
insanity54 / part_1.md
Last active June 10, 2016 11:25
Installing OpenBazaar on Ubuntu 14.04 VPS
@insanity54
insanity54 / install.sh
Last active May 8, 2016 00:03
OpenBazaar on Ubuntu 14.04
#!/bin/bash
locale="en_US.UTF-8"
sudo locale-gen "$locale"
sudo dpkg-reconfigure locales
sudo apt-get update && sudo apt-get -y upgrade
audo apt-get -y install software-properties-common
sudo apt-get -y install git
sudo apt-get -y install build-essential libssl-dev libffi-dev python-dev openssl python-pip libzmq3-dev