Skip to content

Instantly share code, notes, and snippets.

View aheadley's full-sized avatar

Alex Headley aheadley

View GitHub Profile
diff -rwu hw1-data-orig/aiplayer.script hw1-data-classic/aiplayer.script
--- hw1-data-orig/aiplayer.script 2015-03-12 16:40:30.657901429 -0400
+++ hw1-data-classic/aiplayer.script 2015-03-12 16:28:22.997599069 -0400
@@ -23,7 +23,6 @@
AIF_RESEARCH_DELAY[AI_INT] 1
AIF_RESEARCH_DELAY[AI_ADV] 0
-
;=============================================================================
; Attackman tweaks:
@aheadley
aheadley / rb1.md
Last active October 1, 2024 21:39
Hyperdimension Neptunia Rebirth: Item Locations

Rebirth 1 (no DLC)

Name HP Drops XP Credits
Virtua Forest --- --- --- ---
Dogoo 666 [Dogoo Jelly] 2 1
Tulip 700 [Yellow Petal] 3 4
Dogoo-Man 850 [Dogoo-Man Jelly] 5 5
Boxer-X 1216 [Boxer-X Soul] 8 12
Monster Cave --- --- --- ---
@aheadley
aheadley / extra.txt
Last active March 21, 2016 16:09
rebirth2 save data dump
## save 01
credits: 86053
nepgear:
disk: se card (crit +4, magi def +2)
exp: -801 / 443781
uni:
disk: gold disc (plant def +2, exp +2)
exp: -12651 / 293911
@aheadley
aheadley / file-split.py
Created December 10, 2015 20:06
Script to split a youtube video audio file into separate tracks
#!/bin/env python3
import sys
import re
import subprocess
TRACK_LINE_RE = re.compile(r'^(?P<time>(?:\d+:)?\d+:\d+) Track (?P<idx>\d+)-(?P<title>.*)$')
def time_to_seconds(time):
time_spec = [1, 1 * 60, 1 * 60 * 60]
@aheadley
aheadley / agdq-gcal-export.py
Last active January 7, 2016 20:07
Tiny webapp to convert AGDQ 2016 schedule page to CSV for importing into Google calendar
#!/bin/env python2
# -*- encoding: utf-8 -*-
import csv
import datetime
import pytz
import flask
import bs4
import requests
def ical_event_generator(src_list):
prev_ical_event = None
for src_event in src_list:
if prev_ical_event is None:
prev_ical_event = mk_ical_event(src_event)
continue
else:
if src_event.ending_day == (prev_ical_event.ending_day + 1):
prev_ical_event.ending_day += 1
else:
@aheadley
aheadley / photo-import.py
Last active August 24, 2019 01:19
Python photo importer
#!/usr/bin/env python3
import datetime
import errno
import hashlib
import io
import os
import os.path
import shutil
import struct
_pc ()
{
local LOAD=$(cut -f1 -d' ' < /proc/loadavg);
local iLOAD=${LOAD%%.*};
if [ $iLOAD -lt $(($PROCS * 2)) ]; then
local TWIDTH=$(tput cols);
local PADDING='=';
local TIMESTAMP="$(date '+%Y-%m-%dT%H:%M:%S%z')";
local MEAT="[${TIMESTAMP}|${USER}@${HOSTNAME}(${PROCS}@${LOAD})";
if [ $TWIDTH -ge 80 ]; then
@aheadley
aheadley / duplicate-header-nocheck.patch
Created December 6, 2016 20:51
Patch for mod_fastcgi 2.4.6 to not barf on duplicate response headers.
--- mod_fastcgi.c.orig 2012-05-18 17:37:08.831652311 -0400
+++ mod_fastcgi.c 2012-05-18 17:42:49.333693792 -0400
@@ -718,9 +718,6 @@
if (strcasecmp(name, "Status") == 0) {
int statusValue = strtol(value, NULL, 10);
- if (hasStatus) {
- goto DuplicateNotAllowed;
- }
if (statusValue < 0) {
@aheadley
aheadley / ideas.md
Last active December 13, 2016 23:51
#overviewer VR gam jam ideas

King of the Mountain

For 2-4 players

One player is the "king" and gets a god-like view floating above the map with a mountain (or castle?) in the center and the other players play in first person view and try to scale the mountain to get the treasure or save the princess or whatever. The king can set traps or spawn monsters, maybe has vision of the world or maybe just players obscured by fog of war. Players have multiple characters to select that each have special powers? Somewhat similar to Panoptic, but with less direct interference from the king. The King should have a separate goal from just stopping the other players, maybe needs to retrieve some things from the map and bring