Skip to content

Instantly share code, notes, and snippets.

View ghthor's full-sized avatar
🦆
Ducking

Will Owens ghthor

🦆
Ducking
View GitHub Profile
@ghthor
ghthor / k_priest.ahk
Created January 18, 2011 10:52
keybindings/macros for darkages
; Boiler Plate
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
;SetMouseDelay 0
; Staff Switch
; \ is the key that it is bound to
; Just flips to inventory and I keep my staff in slot 2
; And then flips back to spell pane
@ghthor
ghthor / cocos2d-iphone.patch
Created April 1, 2011 22:32
Patch for the xcode Project file
Updated the project to compile with Xcode 4.0
From: Will Walthall <ghthor@wmbp.local>
---
cocos2d-ios.xcodeproj/project.pbxproj | Bin
1 files changed, 0 insertions(+), 0 deletions(-)
diff --git a/cocos2d-ios.xcodeproj/project.pbxproj b/cocos2d-ios.xcodeproj/project.pbxproj
@ghthor
ghthor / maintest.css
Created August 18, 2011 22:19 — forked from anonymous/maintest.css
css Testing
body {
margin: 0;
}
body.index {
background-color: #000;
background-image: url(images/background9.jpg);
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
@ghthor
ghthor / vimrc
Created October 20, 2011 12:18
Vimrc File
set nocompatible
set noedcompatible
set hidden
" Pathogen bundle manager
runtime bundle/vim-pathogen/autoload/pathogen.vim
call pathogen#infect()
" Indention and Syntax
@ghthor
ghthor / gist:1322445
Created October 28, 2011 14:47
Bash Prompt Upgrades
# -------------------------------------------------------
# Prompt / Xterm
# -------------------------------------------------------
# Prompt colors
_txt_col="\e[00m" # Std text (white)
_bld_col="\e[01;37m" # Bold text (white)
_wrn_col="\e[01;31m" # Warning
_sep_col=$_txt_col # Separators
_usr_col="\e[01;32m" # Username
@ghthor
ghthor / patch.diff
Created May 13, 2012 23:28
Patch to fix building libinfinity with automake-1.12
diff --git a/autogen.sh b/autogen.sh
index b78711e..e8c3681 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -316,13 +316,14 @@ AUTOHEADER=`echo $AUTOCONF | sed s/autoconf/autoheader/`
case $REQUIRED_AUTOMAKE_VERSION in
1.4*) automake_progs="automake-1.4" ;;
- 1.5*) automake_progs="automake-1.11 automake-1.10 automake-1.9 automake-1.8 automake-1.7 automake-1.6 automake-1.5" ;;
- 1.6*) automake_progs="automake-1.11 automake-1.10 automake-1.9 automake-1.8 automake-1.7 automake-1.6" ;;
@ghthor
ghthor / update-system
Created May 20, 2012 19:43
Simple update arch system script
#!/bin/sh
# Update System
pacman -Syu
# Display any updated config files
find /etc -name "*.pac*"
@ghthor
ghthor / deadlock.error
Created May 23, 2012 13:00
Go Routine bug
throw: all goroutines are asleep - deadlock!
goroutine 1 [chan receive]:
main.main()
/home/ghthor/proj/go/ddnsd/main.go:121 +0x5e
goroutine 2 [syscall]:
created by runtime.main
/build/src/go/src/pkg/runtime/proc.c:221
@ghthor
ghthor / jshintrc
Created August 19, 2012 15:28
jshintrc
{
"passfail" : false,
"maxerr" : 100,
"browser" : true,
"node" : false,
"rhino" : false,
"couch" : false,
"wsh" : false,
@ghthor
ghthor / salt_test.go
Created October 1, 2012 06:24
Messing with crypto/rand generating uint64's
package main
import (
"bytes"
"crypto/rand"
"encoding/binary"
"fmt"
. "github.com/ghthor/gospec/src/gospec"
"github.com/ghthor/gospec/src/gospec"
"log"