Skip to content

Instantly share code, notes, and snippets.

View StartAutomating's full-sized avatar

James Brundage StartAutomating

View GitHub Profile
@StartAutomating
StartAutomating / Midi.ps1
Created September 14, 2026 04:45
Gist get midi
<#
.SYNOPSIS
Get Midi
.DESCRIPTION
Reads MIDI files
.NOTES
Adapted with care from JavaScript.
.LINK
https://github.com/carter-thaxton/midi-file/blob/master/lib/midi-parser.js
#>
@StartAutomating
StartAutomating / MidiToFrequency.ps1
Created September 14, 2026 03:46
Gist convert from midi note to frequency
<#
.SYNOPSIS
Converts Midi to a Frequency
.DESCRIPTION
Converts a Midi note value to an audio frequency
.LINK
https://en.wikipedia.org/wiki/MIDI_tuning_standard
#>
param(
# The midi note number
@StartAutomating
StartAutomating / wav.ps1
Created September 11, 2026 03:09
Gist make me a .wav
<#
.SYNOPSIS
`.wav` stream
.DESCRIPTION
Creates a `.wav` stream.
.LINK
https://en.wikipedia.org/wiki/WAV#WAV_file_header
#>
param(
# The number of channels
@StartAutomating
StartAutomating / SortClipboard.ps1
Created September 6, 2026 21:32
Gist sort the clipboard
@(@(Get-Clipboard) -split '(?>\r\n|\n)' | Sort-Object) -join [Environment]::NewLine | Set-Clipboard
@StartAutomating
StartAutomating / NoteFrequency.ps1
Created July 11, 2026 20:42
Gist tell me the musical note frequency
<#
.SYNOPSIS
The Note Frequencys
.DESCRIPTION
The frequencies for musical notes.
.NOTES
Adapted from the [Web Audio API Keyboard Synth](https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API/Simple_synth)
.LINK
https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API/Simple_synth
#>
@StartAutomating
StartAutomating / all-form-input-types.html.ps1
Created May 26, 2026 23:50
Gist a PowerShell html form with all of the input types
<#
.SYNOPSIS
A form with all input types
.DESCRIPTION
A example of a `<form>` with all html `<input>` types at time of writing
.NOTES
This is mainly for copying, pasting, and testing.
Please customize your form.
.EXAMPLE
@StartAutomating
StartAutomating / Convert-Word.ps1
Last active April 28, 2026 21:34
Gist Convert Word Documents to Different Formats
function Convert-Word {
<#
.SYNOPSIS
Converts Word Documents
.DESCRIPTION
Converts Word Documents to a few formats:
* `docx`
* `doct`
* `html`
@StartAutomating
StartAutomating / GetCPUSpeed
Created January 25, 2026 22:15
Gist Get Me the CPU Speed
<#
.SYNOPSIS
Get the CPU Speed
.DESCRIPTION
Get the CPU Speed on Linux, MacOS, or Windows
.EXAMPLE
./GetCPUSpeed.ps1
#>
if ($executionContext.SessionState.PSVariable.Get('IsLinux').Value) {
Get-Content /proc/cpuinfo -Raw -ErrorAction SilentlyContinue |
@StartAutomating
StartAutomating / GitHubBlueSky.ps1
Created November 28, 2025 22:30
Gist get me a GitHub User's BlueSky profile
<#
.SYNOPSIS
Get a GitHub user's BlueSky
.DESCRIPTION
Gets an At Protocol Handle / BlueSky profile link for a GitHub user
.EXAMPLE
./GitHubBlueSky StartAutomating
#>
param([string]$UserName)
@StartAutomating
StartAutomating / HowOldIsPowerShell.ps1
Created November 14, 2025 21:08
Gist How Old Is PowerShell?
<#
.Synopsis
How Old Is PowerShell?
.Description
How Old Is PowerShell?
.Example
./HowOldIsPowerShell
#>
[Math]::Round(
([DateTime]::Now - [DateTime]"11/14/2006").TotalDays / 365, 2