Skip to content

Instantly share code, notes, and snippets.

cknave

Block or report user

Report or block cknave

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@cknave
cknave / notes.md
Created Sep 2, 2019
ZZT sound dumps
View notes.md

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,
@cknave
cknave / keybase.md
Created Oct 10, 2017
Keybase proof
View keybase.md

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 / fix_chars.py
Created Aug 4, 2017
Fix unescaped 8-bit characters in C code
View fix_chars.py
#!/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 / TIGER!.asm
Created Jul 29, 2016
ZZT tiger tick function
View TIGER!.asm
; ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦ 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 / LION!.asm
Created Jul 28, 2016
ZZT lion tick function
View LION!.asm
; ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦ 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 / caenons3.md
Created Mar 21, 2015
Camlistore Encryption on S3
View caenons3.md

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.

You can’t perform that action at this time.