Skip to content

Instantly share code, notes, and snippets.

@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 {
@milnak
milnak / bash-git-prompt.sh
Created April 17, 2025 16:36
Bash Git Prompt
#!/bin/bash
PROMPT_DIRTRIM=2
# RED="\[\033[0;31m\]"
YELLOW="\[\033[1;33m\]"
GREEN="\[\033[0;32m\]"
# BLUE="\[\033[0;34m\]"
# LIGHT_BLUE="\[\033[1;34m\]"
LIGHT_RED="\[\033[1;31m\]"
LIGHT_GREEN="\[\033[1;32m\]"
@milnak
milnak / dump-scoop-aliases.ps1
Last active March 27, 2026 00:41
Scoop Aliases #scoop
Get-ChildItem -LiteralPath "${env:HOMEDRIVE}${env:HOMEPATH}/scoop/shims" -File -Recurse -Filter 'scoop-*.ps1' `
| Select-Object `
@{ Name = 'Name'; Expression = { $_.BaseName.SubString(6) } },
@{ Name = 'Command'; Expression = { (Get-Content $_.FullName | Select-String -Pattern '^# Summary: (.*)' -NotMatch) -replace '''','''''' } },
@{ Name = 'Summary'; Expression = { (Get-Content $_.FullName | Select-String -Pattern '^# Summary: (.*)').Matches[0].Groups[1] }} `
| ForEach-Object {
"scoop alias add '$($_.Name)' '$($_.Command)' '$($_.Summary)'"
}