Skip to content

Instantly share code, notes, and snippets.

View nickgal's full-sized avatar

Nick Gal nickgal

View GitHub Profile
@nickgal
nickgal / decodeTyrian.py
Created December 19, 2025 21:32 — forked from JensRestemeier/decodeTyrian.py
Script to decode Tyrian shape and map data
# decode sprite sheets and maps from the game Tyrian
# Game data: https://camanis.net/tyrian/tyrian21.zip
# Source code: https://github.com/opentyrian/opentyrian
import struct
import glob
import math
import os.path
from PIL import Image
import xml.etree.ElementTree as ET
@nickgal
nickgal / QuarmDbMap.user.js
Last active November 3, 2023 14:51
QuarmDb Map UserScript
// ==UserScript==
// @name QuarmDbMap
// @namespace http://tampermonkey.net/
// @version 0.1
// @downloadURL https://gist.githubusercontent.com/nickgal/00ee10fbf9be92a324ff1514396d029f/raw/QuarmDbMap.user.js
// @updateURL https://gist.githubusercontent.com/nickgal/00ee10fbf9be92a324ff1514396d029f/raw/QuarmDbMap.user.js
// @description Adds external map links to QuarmDB.com
// @author nickgal
// @match https://quarmdb.com/*
// @match https://www.quarmdb.com/*
meta:
id: spdat
title: EverQuest 728 SPDat.eff
file-extension: eff
endian: le
seq:
- id: spells
size: 560
type: spell(_index)
repeat: eos
@nickgal
nickgal / searchkick_repro.rb
Last active May 19, 2020 18:36 — forked from ankane/searchkick_repro.rb
Merge mapping key type
require "bundler/inline"
gemfile do
source "https://rubygems.org"
gem "activerecord", require: "active_record"
gem "activejob", require: "active_job"
gem "sqlite3"
gem "searchkick", git: "https://github.com/ankane/searchkick.git"
end
javascript:void%20function(){src=jQuery(%22.fp-item-image-large%20img%22).attr(%22src%22),url=new%20URL(src),urlParams=new%20URLSearchParams(url.search),imageUrl=urlParams.get(%22url%22),originalUrl=imageUrl.replace(%22_large.%22,%22_original.%22),$(%22%3Cdiv%20class=\%22modal%20fp-store-confirm-modal%20fade\%22%20tabindex=\%22-1\%22%3E%20%3Cdiv%20class=\%22modal-dialog\%22%3E%20%3Cdiv%20class=\%22modal-content\%22%3E%20%3Cdiv%20class=\%22modal-header%20fp-heading\%22%3E%20%3Cbutton%20type=\%22button\%22%20class=\%22close\%22%20data-dismiss=\%22modal\%22%3E%3Cspan%20aria-hidden=\%22true\%22%3E%26times;%3C/span%3E%3C/button%3E%20%3Ca%20href=\%22%23\%22%20class=\%22pull-right\%22%20style=\%22margin-right:%2010px;color:%20%23000;opacity:%200.2;\%22%3E%3Ci%20class=\%22glyphicon%20glyphicon-resize-full\%22%3E%3C/i%3E%3C/a%3E%20%3Ch3%20style=\%22margin:%200%2050px%200%200;white-space:%20nowrap;text-overflow:%20ellipsis;overflow:%20hidden;\%22%3E%3Cspan%3E%22+document.title+%22%3C/span%3E%3C/h3%3E%20%3C/div%3E%20%3C
// ==UserScript==
// @name TAKP Inventory Search
// @namespace http://nickgal.com/
// @version 0.2
// @description Search for TAKP character inventories.
// @author You
// @match https://www.takproject.net/forums/account.php
// @grant none
// ==/UserScript==
# An example of elasticsearch & Tire setup for ActiveRecord associations.
#
# A `Book has_many :chapters` scenario, with mapping and JSON serialization
# for indexing associated models.
#
# Demonstrates three important caveats as of now:
#
# 1. You you have to use `touch: true` in the `belongs_to` declaration,
# to automatically notify the parent model about the update.
#
@nickgal
nickgal / iphone-screenshot
Created March 15, 2012 06:46 — forked from vilcsak/iphone-screenshot
Automate capturing screenshots of the iPhone simulator
#!/bin/sh
# A) Run ./iphone-screenshot
# B) Type in the screenshot filename
# C) Click on the iPhone simulator
OUTPUTDIR=~/Desktop
TEMPFILE=iphone_screenshot_temp.png
echo "output filename:\c"