Skip to content

Instantly share code, notes, and snippets.

@mrreband
mrreband / restore_ableton_crashes.py
Created September 3, 2022 15:03
Restore Ableton Live Crashes
import os
import shutil
from typing import List, Dict
def prepare_crash(file_date: str,
source_cfg_file: str,
source_undo_folder: str,
source_basefiles_folder: str,
target_path: str,
overwrite: bool=True):
@mrreband
mrreband / apod.ps1
Last active October 11, 2023 17:43
Scripts to get the NASA Image Of the Day (iotd) and NASA Astronomy Picture of the Day (apod)
# Download and open the NASA Astronomy picture of the day (apod)
# Download to target folder $TargetFolder (relative to this script's location)
# https://apod.nasa.gov/apod/archivepix.html
param
(
[string]$TargetFolder = "images"
)
$ErrorActionPreference = "Stop"
##################################################################
# standard directory functions
function mcd ($path) {
mkdir $path
chdir $path
}
function rmrf ($path) {
rm -r -force $path
@mrreband
mrreband / AutoHotkey.ahk
Last active December 10, 2022 01:13
AutoHotKey config
#SingleInstance force
SetTitleMatchMode, 2
; FYI:
; # = Win
; + = Shift
; ! = Alt
; ^ = Ctrl
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;