Skip to content

Instantly share code, notes, and snippets.

@jessfraz
jessfraz / proposal.md
Last active September 15, 2017 02:59

Self isolating binaries

This is a play proposal for a new wrapper around go build that would build your binary but wrap it in code that would prepare isolation around your binary on run.

A concept of this is in https://github.com/jfrazelle/binctr, in that it takes a docker image and embeds the contents into a final binary so you have a self-contained binary.

The binctr example is unnessesarily heavy for go binaries because all you need is a completely static binary.

@campaul
campaul / raw_develop.py
Last active May 1, 2018 10:48
Develop a RAW image by using ctypes to call libraw.
# This file was my first attempt at using libraw with ctypes. For a more
# complete project check out https://github.com/photoshell/rawkit
# Usage: python raw_develop.py some/raw/file.cr2 some/destination/file.ppm
from ctypes import *
import sys
libraw = cdll.LoadLibrary('libraw.so.10')
@campaul
campaul / otr-fingerprints
Last active December 19, 2015 12:19
OTR Fingerprints
456D7BC4 6B19C7A7 F2136C0C 24B43C27 85AB4C8D
EB67EE95 3DF5AEDA AB4D3C81 A784D0E7 98AF49A0
940AAD6D 130F674D 7C9C99B9 CA6C4CD7 35DC21DA
0B1FCE0E 61A29864 737DF8BD 47413821 94CFF83D
119A3473 7C31A5B9 E20A6024 5DA365D8 F360071A
@chris-martin
chris-martin / brew-patent.md
Last active December 15, 2015 08:49
A little story about the fake future history of Beer™.

If humanity's discovery of brewing had been delayed...

Beer was a food product manufactured during the early 21st century. PepsiCo's 2013 press release stated:

Beer, made with our patented Brewing Technology, comes in four exciting flavors.

The wild commercial success of Beer led the company to expand its lineup in 2018 with the addition of a new Blueberry Blast flavor. PepsiCo also briefly experimented with Cream Cheese Salad Beer, a low-calorie variety marketed to women.

United States-Mexico border relations tensed as officials, under pressure from PepsiCo, strengthened efforts to block importing of the increasing number of knockoff beverages brewed in violation of US patent law. PepsiCo v Gonzales (2017) established that most off-brand "Beers", although not corn-based like genuine Beer, still fell within the purview of the Brewing patent.

@davidhollis
davidhollis / delphi.md
Created August 2, 2012 00:12
Delphi: A Regex Game

Delphi: A Regex Game

Delphi is an asymmetric game between two players:

  • The Oracle (O) and
  • The Machine (M).

Setup

To begin, O and M agree on a regular expression standard to use, including: