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 / 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

1

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

1

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

@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

@andrewpmiller
andrewpmiller / did.sh
Created November 8, 2017 16:35
did? - if you think you did it, you can be more or less sure(r) now.
# did: Search the command history for what you did before
did() {
history | grep $@ |grep -Ev "grep" | grep -Ev "did" | sed 's/\(.\{7\}\)//'| sort -u
}
@andrewpmiller
andrewpmiller / Platformio-Dockerfile
Last active March 6, 2017 09:12
Platformio for RPi Dockerfile
FROM resin/rpi-raspbian
RUN apt-get update && apt-get -y upgrade
RUN apt-get install -y curl python
RUN python -c "$(curl -fsSL https://raw.githubusercontent.com/platformio/platformio/develop/scripts/get-platformio.py)"
@andrewpmiller
andrewpmiller / rune-spop-debugging.md
Last active February 22, 2017 23:11
Debugging Spotify on RuneAudio

On device:

[root@runeaudio ~]# telnet localhost 6602

Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
spop 0.0.1
@andrewpmiller
andrewpmiller / pifinder.md
Created January 27, 2017 20:30
Pi Finder — list IP addresses of all Raspberry Pi devices on the local network.
arp -a | grep b8:27:eb | grep -Eo '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}'

Keybase proof

I hereby claim:

  • I am andrewpmiller on github.
  • I am andrewpmiller (https://keybase.io/andrewpmiller) on keybase.
  • I have a public key whose fingerprint is CD51 AC3B 2FF6 1E99 82DD C7D3 2FC3 2B74 3DE6 A9F2

To claim this, I am signing this object: