Skip to content

Instantly share code, notes, and snippets.

@leafstorm
leafstorm / gist:3342583
Created August 13, 2012 17:20
The LUG @ NC State Brand Book

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.

Names

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
leafstorm / gist:4173435
Created November 30, 2012 02:37
Wolfline Route Naming and Numbering Proposal

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
leafstorm / gist:4238078
Created December 8, 2012 01:35
LUG @ NC State Constitution, Markdownified

% 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
leafstorm / gist:4975030
Created February 18, 2013 03:56
LeafStorm's Relay Chat - my idea for an IRC-like chat system. This does not constitute a spec.

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
leafstorm / gist:5558628
Created May 11, 2013 02:00
Synaptics settings for a Macbook Pro's touchpad.
synclient ClickFinger3=2
synclient MaxTapTime=0
synclient MaxDoubleTapTime=0
synclient TapButton1=0
synclient TapButton2=0
synclient TapButton3=0
synclient HorizTwoFingerScroll=1
@leafstorm
leafstorm / brickyard.md
Created August 30, 2013 15:51
Ideas for the Brickyard PC environment.

Brickyard

Brickyard is a design for a simple (simulated) personal computer environment, to be used for OS development. It presents a highly simplified and idealized set of hardware (display, input, storage) to the CPU, so that people interested in OS development can focus on writing critical OS features like scheduling, interrupt handling, and memory management, without having to wade through the complexities of modern (or classical) hardware.

The CPU

Brickyard will use a MIPS32 CPU. This means that it will have to be emulated on almost all target platforms. However, even if ARM or x86 were selected, emulation would still be necessary on the "other" platform, and even on the host platform, highly platform- and OS-specific code would be necessary to allow for the needed degree of virtualization. Given that emulation is almost a requirement, MIPS was selected because it is easier to write emulators for than ARM or x86, but it still has a full GNU toolchain available.

A 32-bit CPU is used so that emulat

@leafstorm
leafstorm / lessons-learned.md
Last active August 29, 2015 13:56
FOSS Fair 2014: Lessons Learned. Originally derived from a pair of paper towels at Ba-Da Wings.

FOSS Fair 2014: Lessons Learned

First off, FOSS Fair was a lot of fun, and I really look foward to the next one. But, I think we can run it better next time. So, here are my thoughts.

Early Coordination

We were disadvantaged this FOSS Fair by our late start date and our lack of connections. Fortunately, next year we can get started earlier, and we have a few key ideas:

  • Announce the Fair and call for volunteers as early as possible.
@leafstorm
leafstorm / mountree.py
Created March 23, 2014 23:16
A script that arranges all your mountpoints into a tree.
#!/usr/bin/env python3
"""
mountree
========
This prints all your filesystem mounts in a tree so you can see how they
are laid out.
It only works on Linux because it uses ``/proc``.
:copyright: © 2014 Matthew Frazier
@leafstorm
leafstorm / easter.md
Created April 20, 2014 20:57
Some thoughts on Easter, and why it's important.

"But now Christ has been raised from the dead, the firstfruits of those who have fallen asleep. For since death came through a man, the resurrection of the dead also comes through a man. For as in Adam all die, so also in Christ all will be made alive." -- 1 Corinthians 15:20-22

When I was at PyCon, I hung out with @jacobian, @brainwane, and some others while they were painting their nails. The subject turned to religion, and I quickly realized as a person who wasn't a secular humanist, I was a bit of an outlier.

When asked, I began talking about some of what's in the Bible. Jacob asked, "So, you believe the things in the Bible actually happened?" I said "yes." The conversation didn't last long afterwards...we were interrupted by something, I forget what. But given that it's Easter, I'd just like to expound a bit on how that idea is relevant to Christ's resurrection.

The attitude I see a lot of humanists have towards religion is, "Hey, believe whatever you want, so long as it makes you a better person." In

@leafstorm
leafstorm / FastGetter.java
Created July 31, 2014 18:18
An implementation of a Jython FastGetter that doesn't work for some reason.
package jesreflect;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import org.python.core.Py;
import org.python.core.PyObject;
/**
* An optimized getter that's designed to invoke a Java class's
* getSomething method, with no arguments, and wrap the return value.