Skip to content

Instantly share code, notes, and snippets.

View damieng's full-sized avatar
🏠
Working from home

Damien Guard damieng

🏠
Working from home
View GitHub Profile
@damieng
damieng / EGA_64.pal
Created February 18, 2021 17:41
EGA 64-color palette in JASC format for Pixatool
JASC-PAL
0100
256
0 0 0
0 0 85
85 0 0
85 0 85
0 85 0
0 85 85
85 85 0
@damieng
damieng / streport-metadata.cs
Created February 2, 2021 20:12
Throwaway script that created all the necessary metadata for uploading ST Report to archive.org
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
namespace ConsoleApp8
{
class Program
@damieng
damieng / princeton.txt
Created January 27, 2021 10:09
Princeton Ultra 16 Notes
Princeton proprietary 25 pin connector pinout
1 - GROUND TTL 2 - RED 2 OR GND TTL
RED ANALOG GRN ANALOG
3 - RED TTL 4 - GRN TTL
BLUE ANALOG COMP-HORIZ-SYNC
5 - BLUE TTL 6 - GRN 2 OR INTENSITY TTL
PCG MODE ANALOG GND ANALOG
7 - BLUE 2 TTL 8 - HORIZ-SYNC TTL
GND ANALOG GND ANALOG
@damieng
damieng / RomboZX.txt
Last active January 20, 2021 20:47
Rombo ZX Manual
VIDI
ROMBO PRODUCTIONS
VIDI-ZX
VIDEO DIGITISER FOR ZX-SPECTRUM
@damieng
damieng / Thirds.json
Created November 6, 2020 09:00
Ultrawide 6 division monitor config for WinDock
{
"name":"Ultrawide 6 section",
"rules":[
{
"dock":{
"monitor":0,
"values":[
0,
0,
33,
@damieng
damieng / image-grid.html
Created March 24, 2020 07:45
Redraw a glyph/image sheet with dividing lines between elements
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<canvas id="myCanvas"></canvas>
<br>
@damieng
damieng / reset-wifi-on-wake.xml
Last active December 17, 2019 23:27
Reset WiFi adapter on wake
<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.4" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
<RegistrationInfo>
<Date>2019-12-17T10:49:39.5675591</Date>
<URI>\Wake on WiFi</URI>
</RegistrationInfo>
<Triggers>
<EventTrigger>
<Enabled>true</Enabled>
<Subscription>&lt;QueryList&gt;&lt;Query Id="0" Path="System"&gt;&lt;Select Path="System"&gt;*[System[Provider[@Name='Microsoft-Windows-Power-Troubleshooter' or @Name='power'] and (EventID=1)]]&lt;/Select&gt;&lt;/Query&gt;&lt;/QueryList&gt;</Subscription>
@damieng
damieng / zx-font-publish.sh
Last active October 19, 2023 14:02
ZX Spectrum font publishing
#!/bin/bash
for i in "$@"
do
echo
echo Publishing ${i}
name="${i%.*}"
zip="${name}.zip"
rm -rf "${zip}"
# Folder cleanup
@damieng
damieng / zx-font-convert.sh
Last active October 19, 2023 14:00
ZX Spectrum font conversion script
#!/bin/bash
fl5reg="HKCU\Software\FontLab\Studio 5\Directories"
for i in "$@"
do
name="${i%.*}"
echo Processing $name
mkdir -p PC
psf="PC/${name}.psf"
vfb="PC/${name}.vfb"
@damieng
damieng / zx-to-ttf.sh
Last active April 21, 2019 05:09
ZX to TTF font conversion shell script (required psftools modified, PixelWorld and FontLab Studio + scripts)
#!/bin/bash
fl5reg="HKCU\Software\FontLab\Studio 5\Directories"
for i in "$@"
do
name="${i%.*}"
echo Processing $name
pw preview "$i" . >> /dev/null
psf="${name}.psf"
vfb="${name}.vfb"
zx2psf "$i" "${psf}" --mode=move1 --graphics=none