Skip to content

Instantly share code, notes, and snippets.

View acmacalister's full-sized avatar

Austin Cherry acmacalister

View GitHub Profile
@acmacalister
acmacalister / keybase.md
Created January 3, 2022 21:57
keybase.md

Keybase proof

I hereby claim:

  • I am acmacalister on github.
  • I am acmacalister (https://keybase.io/acmacalister) on keybase.
  • I have a public key whose fingerprint is 0850 A6B5 8436 14C9 CE14 B7BB 255B B111 C761 8B1E

To claim this, I am signing this object:

@acmacalister
acmacalister / README.md
Last active January 1, 2023 02:41
WebSocket through Cloudflare Access

Overview

These are instructions on setting up Access in front of a origin serving WebSockets. This example contains client code for a client that authenticates through Access using mTLS.

Access

In the Cloudflare Dashboard, configure an Access policy that contains a service token. The developer docs has steps on how to do this:

https://developers.cloudflare.com/access/service-auth/mtls-testing/

@acmacalister
acmacalister / alac.go
Created November 20, 2014 17:55
(Start of) Alac Decoder in Pure Go
///////////////////////////////////////////////////////////////////////////////
// ALAC (Apple Lossless Audio Codec) decoder.
// Ported from David Hammerton C version 2005.
// http://crazney.net/programs/itunes/alac.html
// Also see Apple's OSS version at http://alac.macosforge.org
// Austin Cherry, 2014.
///////////////////////////////////////////////////////////////////////////////
package alac
@acmacalister
acmacalister / comparison
Created September 11, 2014 03:15
Go vs Sinatra vs Rack
============================
Go
============================
Server Software:
Server Hostname: 127.0.0.1
Server Port: 8080
Document Path: /hi
Document Length: 12 bytes
#include <stdio.h>
/* our animal structure! */
typedef struct {
void (*run)(void);
} Animal;
/* dogs like to run */
void dog_run(void)
{
@acmacalister
acmacalister / schema.rb
Created March 31, 2014 17:17
ElasticSearch Article
ActiveRecord::Schema.define(version: 20140330054512) do
create_table "followers", force: true do |t|
t.integer "user_id"
t.integer "follower"
t.datetime "created_at"
t.datetime "updated_at"
t.boolean "pending"
t.datetime "renew_at"
end
@acmacalister
acmacalister / PacketCapture.m
Created March 17, 2014 16:03
libpcap article
///////////////////////////////////////////////////////////////////////////////////////
//
// PacketCapture.m
// Orca
//
// Created by Austin Cherry on 3/2/14.
// Copyright (c) 2014 Vluxe. All rights reserved.
//
///////////////////////////////////////////////////////////////////////////////////////
@acmacalister
acmacalister / .gitignore
Last active July 25, 2017 17:45
Travis configuration for building an open source Objective-C project.
# Xcode
.DS_Store
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
//
// ALAssetsLibraryUtil
//
// Created by Marin Todorov on 10/26/11.
// Modified by sapzildj@gmail.com
//
// Copyright (c) 2011 Marin Todorov. All rights reserved.
// original source from http://www.touch-code-magazine.com/ios5-saving-photos-in-custom-photo-album-category-for-download/
//
@acmacalister
acmacalister / objc-typedef.m
Created December 6, 2013 18:36
Objective-C typedefs. Always forgetting these things.
#if __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_6_0
//something
#else
//old version
#endif