Skip to content

Instantly share code, notes, and snippets.

View gingerbeardman's full-sized avatar

Matt Sephton gingerbeardman

View GitHub Profile
@gingerbeardman
gingerbeardman / wii-games-with-no-widescreen-support.txt
Last active November 7, 2023 09:58
All 553+VC Wii games that are 4:3-only, with no 16:9 support (generated from Dolphin data, which comes from vWii data)
# Cxxxxx All Virtual Console Commodore 64 games
# DJU - (unknown title - INI file autogenerated from vWii system menu list of titles without 16:9 support)
# DQAJK2 - Aquarius Baseball
# Exxxxx - All "Virtual Console Arcade" and NeoGeo Virtual Console games
# Fxxxxx - All NES Virtual Console games
# Jxxxxx - All SNES Virtual Console games
# Lxxxxx - All Sega Master System Virtual Console games
# Mxxxxx - All Sega Mega Drive (Genesis) Virtual Console games
# Nxxxxx - All Nintendo 64 Virtual Console games
# Pxxxxx - All TurboGrafx 16 Virtual Console games
@gingerbeardman
gingerbeardman / change-git-commit-date.txt
Last active August 21, 2020 09:29
Change date of last git commit, useful for making historically accurate repo from Time Machine backup files
d=$(date -v20y -v8m -v20d -v00H -v45M -v39S);GIT_COMMITTER_DATE="$d" git commit --amend --no-edit --date "$d"
@gingerbeardman
gingerbeardman / time-machine-extract.sh
Last active August 21, 2020 09:42
Extract all versions of a file/folder from Time Machine backup
# adapted from https://apple.stackexchange.com/questions/230154/getting-all-versions-of-a-file-from-a-time-machine-backup/230392#230392
TARGET="/Volumes/External/Users/matt/Projects/TMextract/all_my_versions"
# create new folder
mkdir $TARGET
# change directory to your backups
cd /Volumes/Tardis/Backups.backupdb/matt
pwd
@gingerbeardman
gingerbeardman / epoch.sh
Created December 26, 2020 22:08
ia upload script for EPOCH toy instruction manuals
echo "identifier,file,description,subject,title,creator,mediatype,language" > epoch.csv
for file in *.pdf
do
# echo "Processing: $file"
id=`echo $file | awk '{print substr($0,1,5);exit}'`
en=`cat en.txt | grep $id`
trimmed_en=`echo "${en:8}"`
@gingerbeardman
gingerbeardman / History-of-DenebaCAD.md
Last active April 9, 2021 09:17
History of DenebaCAD

I just read a series of Facebook posts about the origins of DenebaCAD: https://www.facebook.com/page/226466162072375/search/?q=archidot

Created by INDI C.A. (Calle Madrid, Qta. El Pilar, Las Mercedes, Caracas, Venezuela):

  • 1988: MasterCAD (retail, Atari ST)
  • 1989: User'sCAD (beta, Macintosh)
  • 1991: ArchiDOT 2.0 (retail, Macintosh)
  • 1992: ArchiDOT 3.0 (retail, Macintosh)
  • 1995: ArchiDOT sent to various publishers
  • 1997: DenebaCAD (retail, Macintosh)
@gingerbeardman
gingerbeardman / to-anim.sh
Last active July 14, 2021 21:35
Convert an image table to an Animated GIF
#!/usr/bin/env bash
display_usage() {
echo "This script must be passed an image table PNG."
echo
echo "Usage: $0 image-table-32-32.png"
}
# if less than two arguments supplied, display usage
if [ $# -lt 1 ]
then
@gingerbeardman
gingerbeardman / to-table.sh
Last active July 14, 2021 21:42
Convert an Animated GIF to an image table
#!/usr/bin/env bash
display_usage() {
echo "This script must be passed an Animated GIF."
echo
echo "Usage: $0 image-table-32-32.gif [width-in-cells]"
}
# if less than two arguments supplied, display usage
if [ $# -lt 1 ]
then
@gingerbeardman
gingerbeardman / info-mac.txt
Last active September 5, 2021 13:18
directory listing of contents of gz at https://archive.org/details/info-mac-archive
total 216
drwxr-xr-x 49 matt staff 1568 Sep 5 14:16 .
drwxr-xr-x 40 matt staff 1280 Sep 5 14:16 ..
-rw-r--r--@ 1 matt staff 8196 Sep 5 14:16 .DS_Store
-rw-r--r-- 1 matt staff 22 Sep 16 2018 00readme.txt
-rw-r--r-- 1 matt staff 3 Sep 16 2018 _Anti-Virus
-rw-r--r-- 1 matt staff 3 Sep 16 2018 _Application
-rw-r--r-- 1 matt staff 3 Sep 16 2018 _Art_&_Info
-rw-r--r-- 1 matt staff 4 Sep 16 2018 _Communication
-rw-r--r-- 1 matt staff 3 Sep 16 2018 _Compress_&_Translate
@gingerbeardman
gingerbeardman / list.sh
Last active September 14, 2021 21:42
List command line switches and arguments
#!/bin/bash
POSITIONAL=()
while [[ $# -gt 0 ]]; do
key="$1"
value="$2"
shift # past argument
shift # past value
echo "$key $value"
done
@gingerbeardman
gingerbeardman / Motive.c
Last active December 12, 2021 16:28
The Soul of The Sims, by Will Wright. Macintosh HD:XmotiveHarness:src/Motive.c https://www.donhopkins.com/home/images/Sims/
// Motive.c -WRW 1/23/97
#include "SRand.h"
#include "utilities.h"
void SimMotives(int count);
void ChangeMotive(int motive, float value);
void SimJob(int type);
void AdjustMotives(int x, int y);