Skip to content

Instantly share code, notes, and snippets.

@milnak
milnak / ChordPro-Directives.md
Created April 18, 2026 01:42
ChordPro Directives

ChordPro Directives

ChordPro files are text based files that contain directives for the program loading them. This allows the program to customize how the text is displayed such as making a title larger, or by placing chords above the lyrics instead of in line with them. This makes them much more powerful than standard text files. MobileSheets tries to support some of the same features with text files (such placing chords above lyrics), but many features are ChordPro specific. That is why ChordPro files are the preferred format in MobileSheets for combining lyrics with chords. The ChordPro specification. Specifically, see ChordPro directives.

Meta-data directives

Directive Description
{title: text} Defines the title of the song.
{sorttitle: text} Defines the sorting title of the song.
@milnak
milnak / pdf-add-csv-bookmarks.py
Created April 8, 2026 05:06
Adds bookmarks to a PDF file from a CSV list of titles and page numbers.
#!/usr/bin/env python3
"""Add bookmarks to a PDF from a CSV file.
CSV format: <title>,<filename>,<page>
Usage: python pdf-add-csv-bookmarks.py <csv_file> <pdf_file>
python -m venv venv
.\venv\Scripts\pip install pypdf # Windows
source venv/bin/activate && pip install pypdf # macOS/Linux
"""
@milnak
milnak / settings.json
Last active February 15, 2026 18:31
micro editor settings.json
{
"$comment": "https://github.com/micro-editor/micro",
"$schema": "https://raw.githubusercontent.com/micro-editor/micro/refs/heads/master/data/micro.json",
"*.js": {
"tabsize": 2
},
"*.py": {
"tabsize": 4
},
"*.ts": {
@milnak
milnak / Create-TableDatFile.ps1
Last active January 2, 2026 15:19
Create a ClrMAME .dat file for Visual Pinball VPX tables using data from puplookup.csv.
<#
.DESCRIPTION
Create a ClrMAME .dat file for Visual Pinball VPX tables using data from puplookup.csv.
.NOTES
Table folder structure MUST be in format:
Tables
├───Whoa Nellie! Big Juicy Melons (Stern 2015)
│ Whoa Nellie! Big Juicy Melons (Stern 2015) UncleWilly 2.1.4 MOD VR.vpx
@milnak
milnak / gitdown.ps1
Created September 24, 2025 23:25
Recursive github repo downloader
# Create a new API token by going to
# https://github.com/settings/tokens/new (provide a description and check "repo" scope")
param (
# github repo path to download, e.g.
# 'https://github.com/microsoft/CsWinRT/tree/master/src/Samples/NetProjectionSample'
[Uri]$RepoPath = 'https://github.com/microsoft/CsWinRT/tree/master/src/Samples/NetProjectionSample',
# Folder to download to.
[Parameter(Mandatory)][string]$Path,
@milnak
milnak / reddit-personal-finance-flowchart-us.md
Created September 22, 2025 00:52
Reddit Personal Finance Flowchart

Reddit /r/personalfinance Flow Chart (US Version)

Originally found here. Last updated by u/antoniosrevenge Feb 22, 2024.

One of the most frequent questions in /r/personalfinance goes something like:

  • "I have $X, what should I do with it?" or
  • "How should I handle my debt/finances/money?"

This incorporates general guidance found in the PF Wiki and that is given often by /r/personalfinance regulars. If you have suggestions about this article, please message the moderators.

@milnak
milnak / Photopea Keyboard Shortcuts.md
Last active September 4, 2025 22:13
Photopea Keyboard Shortcuts

Photopea Keyboard Shortcuts

File
Open Ctrl + O
Save Ctrl + S
Save as PSD Shift+Ctrl + S
Export as Alt+Shift+Ctrl + S

|Edit||

@milnak
milnak / Exact Audio Copy (EAC) Configuration.md
Last active January 14, 2026 02:08
Exact Audio Copy (EAC) Configuration #windows

Exact Audio Copy configuration

These instructions provide a way to accurately rip CDs using Exact Audio Copy (EAC).

Remove Previous Configuration

To backup any previous configuration (optional):

mkdir 'EAC-backup'; cd 'EAC-backup'
@milnak
milnak / mame-windows-build.md
Last active November 30, 2025 03:35
Compiling MAME for Windows #windows
@milnak
milnak / text-to-c.html
Last active November 30, 2025 03:55
Convert Text to C literals
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta name="keywords" content="C++ escaping, C++ special characters, C++ text escaping">
<meta name="author" content="Tomasz Ostrowski">
<meta name="description" content="Text -> C/C++ string converter (special characters escaping).">
<title>Text -> C/C++ string converter</title>
<style>
body {