Skip to content

Instantly share code, notes, and snippets.

View itsthatguy's full-sized avatar
✌️
Love.

Kevin Altman itsthatguy

✌️
Love.
View GitHub Profile
packetId = 7 # uint8
payloadLength = 24 # sVLQ
assetDigest = "d41d8cd98f00b204e9800998ecf8427e" # uint8[] this is a sha1 of the mods folder, containing only the "mods_go_here" file
claim = 1 # variant
uuidFlag = 0 # uint8[]
playerName = "zombie" # string
species = "glitch" # string
account = "bambam" # string
@itsthatguy
itsthatguy / foo-test.coffee
Last active August 29, 2015 13:56
A few functions to help you test your bitwise operations
Foo = require("./foo.coffee")
describe 'Foo', ->
testOpts =
initialNumber: 255
initialArray: [255,255,255]
expectedBinary: 10010010101110101000
it 'should return a correct binary string', ->
foo = new Foo()
# Description:
# Aww, Yiss
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
@itsthatguy
itsthatguy / 0_reuse_code.js
Created March 26, 2014 21:10
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
# Description:
# john is the most important thing in your life
#
# Dependencies:
# None
#
# Configuration:
# None
#

Setting up the rubies on Mavericks

Overview

This will take about 30 minutes.

Install Homebrew

First, we need to install Homebrew. Homebrew allows us to install and compile software packages easily from source.

@itsthatguy
itsthatguy / wd.zsh
Created July 1, 2014 20:32
Switch to your git dir with tab completion
# ZSH: Git Directory switch with tab completion
# $ wd [tab]
GIT_DIR=$HOME/git
wd() { cd $GIT_DIR/$1 }
compctl -W $GIT_DIR/ -/ wd
{
"binary_file_patterns":
[
"*.scssc",
"*.jpg",
"*.jpeg",
"*.png",
"*.gif",
"*.ttf",
"*.tga",
#!/usr/bin/env bash
pattern=$1
PORTS=""
if [ -z "$pattern" ]; then
PORTS=$(lsof -iTCP -sTCP:LISTEN)
else
PORTS=$(lsof -iTCP -sTCP:LISTEN | grep -i "$pattern")
fi
- name: VikingActionBarFrame
version:
keep: true
- name: VikingActionBarShortcut
version:
keep: true
- name: VikingBuddies