Skip to content

Instantly share code, notes, and snippets.

Matthew Frazier leafstorm

Block or report user

Report or block leafstorm

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
leafstorm / gist:5558628
Created May 11, 2013
Synaptics settings for a Macbook Pro's touchpad.
View gist:5558628
synclient ClickFinger3=2
synclient MaxTapTime=0
synclient MaxDoubleTapTime=0
synclient TapButton1=0
synclient TapButton2=0
synclient TapButton3=0
synclient HorizTwoFingerScroll=1
leafstorm / gist:4975030
Created Feb 18, 2013
LeafStorm's Relay Chat - my idea for an IRC-like chat system. This does not constitute a spec.
View gist:4975030

LeafStorm's Relay Chat

LRC is a chat protocol based on edn - Clojure's extension of S-expressions. The idea is to have a format that is easily typable and telnettable, but also clearly and consistently structured.

High-Level Overview

leafstorm / gist:4238078
Created Dec 8, 2012
LUG @ NC State Constitution, Markdownified
View gist:4238078

% Constitution of the Linux Users Group at North Carolina State University % % November 21, 2000

Name and Purpose

This organization shall be known as the Linux Users Group (LUG) at North Carolina State University.

The purpose of this organization is to promote the use and usability of

leafstorm / gist:4173435
Created Nov 30, 2012
Wolfline Route Naming and Numbering Proposal
View gist:4173435

Wolfline Route Naming and Numbering Proposal

Matthew Frazier, Department of Computer Science

With the new route restructuring proposed by HDR Engineering for the NC State Wolfline service, the Wolfline has an opportunity to rearrange its route names and numbering into a more cleanly organized system.

Demonstration Network

The original draft of this plan used the 10-year Wolfline service plan as proposed by HDR Engineering. However, at the publication of the Wolfline Fall 2012 system map, it became apparent that NC State Transportation did not plan to follow the plan exactly. (Not that I mind.)

leafstorm / gist:3342583
Created Aug 13, 2012
The LUG @ NC State Brand Book
View gist:3342583

LUG @ NC State Brand Book

This is our totally strict set of guidelines about how to refer to the Linux Users' Group at NC State University, and produce print media about the LUG.


The official, formal name of the LUG is "the Linux Users' Group at North Carolina State University." Never use this except when drafting legal documents.

In situations where a "full" name (but not a legal name) is necessary, use "Linux Users' Group at NC State University." For a shorter name, use "LUG @ NC State."

leafstorm / gist:2907123
Created Jun 10, 2012
ItemBox, A serialization format I never got around to implementing
View gist:2907123

ItemBox 1.0 draft 1

ItemBox is a binary format for serializing data in a language-independent way, similar to JSON, YAML, BSON, MessagePack, and other formats. ItemBox is specifically designed for encoding and decoding speed, space efficiency, and ease of implementation.

Types Representable

leafstorm / gist:2323188
Created Apr 6, 2012
PEG.js parser for DCPU-16 assembly language
View gist:2323188
* Parser for DCPU-16 assembly language.
* This parser should accurately parse all of Notch's example code, and most
* of the community's code.
* It converts instructions to objects with fields {op, params, label}.
* op is the lowercased opcode, params is the parameters passed to it (as
* values), and label is the label prefixing the statement (null if the
* statement is unlabelled).
* Values have a type field and one or two others depending on the type.
leafstorm / benchmarks-aof-everysec.txt
Created Feb 11, 2012
Some Redis benchmarks on
View benchmarks-aof-everysec.txt
# Benchmarks run with the Append Only File on everysec
# redis-server run with default settings, except for appendonly yes
# src/redis-benchmark -d 16 -n 1000000
# at the end of the benchmark, appendonly.aof was 48 MB
====== PING (inline) ======
1000000 requests completed in 6.54 seconds
50 parallel clients
16 bytes payload
leafstorm /
Created Oct 18, 2011
Script that installs Distribute, pip, and virtualenv in your home directory.
echo "== This script will install Distribute, pip, and virtualenv"
echo " in your home directory for Python $version."
DISTRIBUTE_TEMP=$(mktemp -p "${TMPDIR:-.}" -d distribute-XXX) || {
echo "Could not create temporary working directory"
exit 1
leafstorm / index_template.html
Created Sep 8, 2011
UnWRAP, a WRAP authentication relay for NCSU. Actual UnWRAP script, Python library, and example Flask app with template. Released under the MIT license.
View index_template.html
<!doctype html>
<title>UnWRAP Test</title>
<style type="text/css">
p.flash {
font-style: italic;
text-align: center;
p.message {
You can’t perform that action at this time.