Skip to content

Instantly share code, notes, and snippets.

Avatar

Matt Sephton gingerbeardman

View GitHub Profile
View Chip Shot - Super Pro Golf (1987) (Intv Corp).man
CHIP SHOT: SUPER PRO GOLF
(c)1987 INTV CORP.
DR: 240-300 YARDS
3W: 220-260
1I: 210-220
2I: 200-210
3I: 190-200
4I: 180-190
5I: 170-180
@gingerbeardman
gingerbeardman / Motive.c
Last active Sep 27, 2021
The Soul of The Sims, by Will Wright. Macintosh HD:XmotiveHarness:src/Motive.c https://www.donhopkins.com/home/images/Sims/
View Motive.c
// 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);
@gingerbeardman
gingerbeardman / list.sh
Last active Sep 14, 2021
List command line switches and arguments
View list.sh
#!/bin/bash
POSITIONAL=()
while [[ $# -gt 0 ]]; do
key="$1"
value="$2"
shift # past argument
shift # past value
echo "$key $value"
done
View info-mac.txt
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 / to-table.sh
Last active Jul 14, 2021
Convert an Animated GIF to an image table
View to-table.sh
#!/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 / to-anim.sh
Last active Jul 14, 2021
Convert an image table to an Animated GIF
View to-anim.sh
#!/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
View History-of-DenebaCAD.md

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 / epoch.sh
Created Dec 26, 2020
ia upload script for EPOCH toy instruction manuals
View epoch.sh
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 / time-machine-extract.sh
Last active Aug 21, 2020
Extract all versions of a file/folder from Time Machine backup
View time-machine-extract.sh
# 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 / change-git-commit-date.txt
Last active Aug 21, 2020
Change date of last git commit, useful for making historically accurate repo from Time Machine backup files
View change-git-commit-date.txt
d=$(date -v20y -v8m -v20d -v00H -v45M -v39S);GIT_COMMITTER_DATE="$d" git commit --amend --no-edit --date "$d"