Skip to content

Instantly share code, notes, and snippets.

@andrewpmiller
andrewpmiller / VSCode-Regexes.md
Last active June 8, 2022 15:04
VS Code Regexes

^([^\s]+)
Selects the first non-whitespace characters up to the first space

Examples:
Lorem ipsum dolor sit amet
Loremipsumdolor sitametconsetetur

@andrewpmiller
andrewpmiller / piupdate.sh
Last active March 9, 2022 13:38
Pi Update bash script
#!/bin/bash
# ------------------------------------------------------------------
# Title: piupdate.sh
# Author: Andrew Miller
# Version: 0.1.1
#
# Description:
# A really simple script that runs through all of the usual updates
# for a Raspbian Raspberry Pi.
#
@andrewpmiller
andrewpmiller / catalina-VSTs.md
Last active October 13, 2020 14:01
Get unsigned VSTs and AU plugins to work with MacOS Catalina

Unsigned VSTs etc get flagged by the MacOS Gatekeeper when Ableton scans the plugins. You can't do the right-click open trick to bypass an app from an unknown developer (since VSTs aren't applications), so do this instead:

sudo xattr -rd com.apple.quarantine /Library/Audio/Plug-Ins/VST/unsigned.vst

or

sudo xattr -rd com.apple.quarantine /Library/Audio/Plug-Ins/VST3/unsigned.vst

or

@andrewpmiller
andrewpmiller / remove_libreoffice.md
Created November 29, 2015 18:02
Remove libreoffice from a Raspberry Pi
sudo apt-get remove --purge libreoffice*
sudo apt-get clean
sudo apt-get autoremove
@andrewpmiller
andrewpmiller / omnigraffle-dates.md
Last active November 19, 2019 14:24
Omnigraffle Date Variables

1

<sup id="a1">[1](#f1)</sup>

1

<b id="f1">1</b>[↩](#a1)

@andrewpmiller
andrewpmiller / Lighttpd-Pi-Installation-Notes.md
Last active May 1, 2019 20:14
How to install Lighttp on a Rasberry Pi

Lighttpd - Installation and Setup for Raspberry Pi

Installation

sudo apt-get update && apt-get upgrade
sudo apt-get install lighttpd

Permissions

@andrewpmiller
andrewpmiller / osx-BTaudio-Fix.md
Last active March 14, 2019 19:09
A simple terminal command to improve OSX Bluetooth audio
@andrewpmiller
andrewpmiller / fmp-domain-name-extractor.md
Created October 4, 2018 12:48
FMPro formula to extract the domain name from an email address
  1. Assumes a text field called Email
  2. Create a Calculation field
  3. Use this formula to calculate a text result:
Middle ( 
Email ; 
Position ( Email ; "@" ; 1 ; 1 ) + 1 ; 
Length (Email) - Position ( Email ; "@" ; 1 ; 1 ) + 1
)
@andrewpmiller
andrewpmiller / no_such_image.md
Created January 2, 2018 22:25
docker-compose —  "no such image" error

ERROR: No such image: sha256:7a03cac1fa472e8dc21118b1e8ac669b58e0ca49d8a68cf9e6fde917c9cd8454 Workaround: docker-compose rm and then docker-compose up

Reference: docker/compose#1113