Skip to content

Instantly share code, notes, and snippets.

View alexbevi's full-sized avatar
🙀

Alex Bevilacqua alexbevi

🙀
View GitHub Profile
@alexbevi
alexbevi / pre-commit.sh
Created August 23, 2012 12:05
Git pre-commit hook that checks ruby source files for Pry breakpoints
# Git pre-commit hook to check all staged Ruby (*.rb/haml/coffee) files
# for Pry binding references
#
# Installation
#
# ln -s /path/to/pre-commit.sh /path/to/project/.git/hooks/pre-commit
#
# Based on
#
# http://codeinthehole.com/writing/tips-for-using-a-git-pre-commit-hook/
Rabite: None
Buzz Bee: Mana
Mushboom: Mana
Chobin Hood: None
Lullabud: Mana
Iffish: Water
Kid Goblin: Earth
Eye Spy: Water
Green Drop: None
Specter: Dark
--- Weapons ---
SPIKE KNUCKLE
Type: Gloves
Gfx: 00
Pal: 02
Effective: None
Critical: 0
Hit: 75
Attack: 2
Inflict: None
@alexbevi
alexbevi / goto-test.rb
Created November 9, 2011 14:03
Ruby GOTO
require 'goto'
def test
frame_start
label(:start) { goto :b }
label(:a) { print "world!\n"; goto :c }
label(:b) { print "hello "; goto :a }
@alexbevi
alexbevi / ffiv_lua_script.lua
Created October 19, 2011 09:35
Final Fantasy IV SNES9x Lua Script
-- --------------------------- --
-- Final Fantasy IV LUA script --
-- --
-- By: Pasky13 --
-- --------------------------- --
-- Globals
char_atbm = {0, 0, 0, 0, 0}
enemy_atbm = {0, 0, 0, 0, 0, 0, 0, 0}
@alexbevi
alexbevi / gist:1113777
Created July 29, 2011 13:10
git filter-branch to rewrite asylum history to prepend "ASYLUM: " to all entries that need it
git filter-branch -f --msg-filter '
i=0
while read line
do
if [ $i -eq 0 ];
then
if expr "$line" : ".*ASYLUM:.*" > /dev/null;
then
echo "$line"
else
Just so you know, running an md5 sum on the two files (with no alteration to the generated text file) should yield identical results ;)
alex@home:~$ md5sum RETEZCE.DFW RETEZCE.DFW.NEW
6127b1f6e0cfc23bb1a42959063034d8 RETEZCE.DFW
6127b1f6e0cfc23bb1a42959063034d8 RETEZCE.DFW.NEW