Skip to content

Instantly share code, notes, and snippets.

@aarblaster
aarblaster / detach_templates.py
Created April 8, 2026 12:28
Detach MS Word Templates
#!/usr/bin/env python3
# detach_templates.py
# Version: 1.1
#
# Removes the attached template reference from .docx files so that
# macros from the template no longer load. Formatting already applied
# to the document is preserved.
#
# Usage:
# python3 detach_templates.py /path/to/folder
@aarblaster
aarblaster / vtt_process.py
Last active April 6, 2026 15:27
A python script to transform a vtt file into a useable piece of text.
#!/usr/bin/env python3
# vtt_process.py
# Version: 1.0
#
# Processes Zoom/Teams .vtt transcript files for research use:
# - Removes timecodes and block numbers
# - Merges consecutive same-speaker blocks into paragraphs
# - Replaces speaker names with interview labels (I / R)
# - Applies US → UK spelling substitutions
#
@aarblaster
aarblaster / vtt_process.zsh
Created April 6, 2026 13:15
A wrapper for a python script to transform a vtt file to a text file ready for editing.
# vtt_process
# Version: 1.0
#
# Process a Zoom/Teams .vtt transcript file for research use.
# Removes timecodes, merges same-speaker blocks, replaces speaker
# names with interview labels (I / R), and applies US → UK spelling.
# Output is written alongside the original as <name>_edited.txt.
#
# Dependency: relies on the file vtt_process.py.
#
@aarblaster
aarblaster / interview-noter.scpt
Last active November 13, 2025 09:35 — forked from jasonsnell/podcast-noter.scpt
Interview Noter AppleScript
# interview-noter.scpt
# Version: 1.0
#
# A script for taking timestamped notes from interviews.
#
# Originally by Jason Snell as [podcast-noter.scpt](https://gist.github.com/jasonsnell/9b95468474d6cc864d4feb6e2a5ca9cf).
#
# Updated by Anthony Arblaster on 04 November 2025.
# – Mastodon: https://mastodonapp.uk/@aarblaster
# – GitHub: https://github.com/aarblaster
@aarblaster
aarblaster / etc_reset.zsh
Last active November 9, 2025 14:50
A zsh script to reset troublesome ports on MacOS.
# etc_reset.zsh
# Version: 4.0
#
# A script for resetting all ports and protocols for ETC software.
# Designed particularly for use with ETC Concert.
#
# Created by Anthony Arblaster on 18 February 2025.
#
# Copyright Anthony Arblaster 2025.
# – Web: https://codebyanthony.com
@aarblaster
aarblaster / TextToNewSafariProfileWindow.scpt
Created October 22, 2023 20:56
Open URLs in a New Given Safari Profile
-- Anthony Arblaster 22/10/2023
-- web: https://codebyanthony.com
-- mastodon: https://mastodonapp.uk/@aarblaster
-- An AppleScript to open URLs input as text in a Safari Profile.
-- Requires [Keyboard Maestro](https://www.keyboardmaestro.com/main/)
-- Compiled from a whole bunch of different places in bits and pieces.
-- Particular thanks go to the [KM wiki](https://wiki.keyboardmaestro.com/AppleScript?s[]=applescript&s[]=variable)