Skip to content

Instantly share code, notes, and snippets.

View compleatang's full-sized avatar

Casey Kuhlman compleatang

View GitHub Profile
@compleatang
compleatang / lazy-pirate-client.cpp
Created April 13, 2014 12:52
ZMQ Lazy Pirate Pattern in C++
//
// Lazy Pirate client
// Use zmq_poll to do a safe request-reply
// To run, start piserver and then randomly kill/restart it
//
#include "zhelpers.hpp"
#include <sstream>
#define REQUEST_TIMEOUT 2500 // msecs, (> 1000!)
@compleatang
compleatang / extractannotations.py
Created January 28, 2014 12:08
Extract Annotations from a PDF File.
#!/usr/bin/env python
import poppler
import sys
import urllib
import os
def main():
input_filename = sys.argv[1]
# http://blog.hartwork.org/?p=612
@compleatang
compleatang / gs.sh
Last active September 18, 2019 17:00
Decrypt PDFs with Ghostscript
ghostscript -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=unencrypted.pdf -c .setpdfwrite -f i-485.pdf
Contributor Agreement
Individual Contributor exclusive License Agreement
(including the TRADITIONAL PATENT LICENSE OPTION)
Thank you for your interest in contributing to Monax Industries Limited's Blackstone ("We" or "Us").
The purpose of this contributor agreement ("Agreement") is to clarify and document the rights granted by contributors to Us. To make this document effective, please follow the instructions at https://github.com/agreements-network/blackstone.
How to use this Contributor Agreement
If You are an employee and have created the Contribution as part of your employment, You need to have Your employer approve this Agreement or sign the Entity version of this document. If You do not own the Copyright in the entire work of authorship, any other author of the Contribution should also sign this – in any event, please contact Us at main@lists.agreements.network
0x38cdE3FfFEd71D926DF5CB7711d358B580b6D189

Keybase proof

I hereby claim:

  • I am compleatang on github.
  • I am compleatang (https://keybase.io/compleatang) on keybase.
  • I have a public key ASCzDI662-11xFc4TvYUXID4SC8YYZP2Tpkw8qh49vewLwo

To claim this, I am signing this object:

@compleatang
compleatang / Readings.md
Last active January 20, 2016 21:11
Readings on Law & Society via Computable Contracts

Some Background

Smart contracts, as the blockchain community defines them, are a subset of computable contracts. The idea of computable contarcts contracts has existed within scholarship since ish the 90's. However, the scholarship and theorizing around the ideas behind computable contracts has been accelerated since blockchain based "smart contracts" have become a technical reality.

How Can Computable Contracts Be Used?

Theory:

@compleatang
compleatang / installd-osx
Created November 4, 2013 19:12
OSX Install Script
#!/bin/bash
#^jist /Users/coda/Dropbox/Dot-Files/installd-osx -pu 7307689
cur_user=`who am i | awk '{print $1}'`
echo -e "\033[32m"
echo "first we'll got to the home directory"
echo -e "\033[0m"
cd ~
echo -e "\033[32m"
@compleatang
compleatang / f-u-nsa.sh
Created September 3, 2013 12:05
Confuse that Shizz -- especially useful after blocks of time in another country. Clear your browser history and change your MAC -- Ubuntu only.
#!/usr/bin/bash
sudo ifconfig eth0 down
sudo macchanger -r eth0
sudo ifconfig eth0 up
sudo ifconfig wlan0 down
sudo macchanger -r wlan0
sudo ifconfig wlan0 up
google-chrome "file:///home/coda/Dropbox/Chrome-Extensions/Source%20Codes/funsa.html"
sudo service network-manager restart
@compleatang
compleatang / install_scansnap.sh
Last active December 21, 2015 05:28
Installing a Fujitsu ScanSnap S300 on Ubuntu
#!bash
sudo service saned stop
sudo mkdir -p /usr/share/sane/epjitsu/
sudo sed -i 's/RUN=no/RUN=yes/g' /etc/default/saned
sudo wget -O /usr/share/sane/epjitsu/300_0C00.nal http://dl.dropbox.com/u/1019527/300_0C00.nal
sudo service saned start