Skip to content

Instantly share code, notes, and snippets.

View cknave's full-sized avatar

Kevin Vance cknave

View GitHub Profile
@cknave
cknave / caenons3.md
Created March 21, 2015 18:01
Camlistore Encryption on S3

Camlistore Encryption on S3

Here's what I found out while setting up Camlistore to sync encrypted blobs to Amazon S3. This works for me, but I'm new to Camlistore so this might not be the best way to do it.

Amazon S3 Config

The encryption handler requires two buckets, one for metadata and one for blobs. In this example, I've created two buckets called my-camlistore-meta and my-camlistore-blob.

@cknave
cknave / LION!.asm
Created July 28, 2016 02:24
ZZT lion tick function
; ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦ S U B R O U T I N E ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦
; Attributes: bp-based frame
TickLion proc far ; CODE XREF: seg001:0348p
; DATA XREF: InitTileTypes+263o
ParamPtr = dword ptr -8
StepY = word ptr -4
StepX = word ptr -2
@cknave
cknave / TIGER!.asm
Created July 29, 2016 01:29
ZZT tiger tick function
; ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦ S U B R O U T I N E ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦
; Attributes: bp-based frame
TickTiger proc far ; DATA XREF: InitTileTypes+2E1o
ParamPtr = dword ptr -6
ShootType = byte ptr -2
HasShot = byte ptr -1
ParamIdx = word ptr 6
@cknave
cknave / fix_chars.py
Created August 4, 2017 01:06
Fix unescaped 8-bit characters in C code
#!/usr/bin/env python3
"""Fix unescaped 8-bit characters in C code."""
import os
import re
import sys
import tempfile
PRINTABLE = b'0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!"#$'\
b'%&\'()*+,-./:;<=>?@[\\]^_`{|}~ '
@cknave
cknave / keybase.md
Created October 10, 2017 00:22
Keybase proof

Keybase proof

I hereby claim:

  • I am cknave on github.
  • I am kvance (https://keybase.io/kvance) on keybase.
  • I have a public key ASDfRNARGA6TJWBNBELSnHWA6fZg9l2KmuTX87_Mg27Lmgo

To claim this, I am signing this object:

@cknave
cknave / notes.md
Created September 2, 2019 20:45
ZZT sound dumps

Frequency tables

  • table generation starts at 1, so the first row (C1) is empty
  • rows are 16 items, but only have 12 notes, so the last 4 are empty
[unused] 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
[    C2] 64, 67, 71, 76, 80, 85, 90, 95, 101, 107, 114, 120, 0, 0, 0, 0,
[    C3] 128, 135, 143, 152, 161, 170, 181, 191, 203, 215, 228, 241, 0, 0, 0, 0,
[    C4] 256, 271, 287, 304, 322, 341, 362, 383, 406, 430, 456, 483, 0, 0, 0, 0,