- Boot into recovery
- Open a terminal (
Utilities > Terminal
) - Disable SIP using
csrutil disable
- Reboot into macOS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file demonstrates how to use midi codes to control the color of the | |
# keypads on a Novation LaunchKey mini; There is no official documentation of | |
# it as far as I can tell | |
# | |
# the LaunchKey MK2 Programmer's guide is useful, though not accurate to | |
# details on the MK3 mini: | |
# https://customer.novationmusic.com/sites/customer/files/novation/downloads/10535/launchkey-mk2-programmers-reference-guide.pdf | |
import random | |
import time |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
## Author: Yotam Gingold | |
## License: CC0 (public domain) https://creativecommons.org/share-your-work/public-domain/cc0/ | |
## URL: https://gist.github.com/yig/af5bbb054bb9c4de39abc9156e6863e1/ | |
## Download the latest Zoom installer. | |
echo "==> Downloading the latest Zoom installer." | |
cd ~/Downloads | |
## Intel: |
How to make an application icon for macOS using
iconset
&iconutil
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# wavfile.py (Enhanced) | |
# Date: 20190213_2328 Joseph Ernest | |
# | |
# URL: https://gist.github.com/josephernest/3f22c5ed5dabf1815f16efa8fa53d476 | |
# Source: scipy/io/wavfile.py | |
# | |
# Added: | |
# * read: also returns bitrate, cue markers + cue marker labels (sorted), loops, pitch | |
# See https://web.archive.org/web/20141226210234/http://www.sonicspot.com/guide/wavefiles.html#labl | |
# * read: 24 bit & 32 bit IEEE files support (inspired from wavio_weckesser.py from Warren Weckesser) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
(( $# <= 0 )) && exit 1 | |
key=REPLACE_ME | |
read event values <<<$(echo -n "$@" | awk 'NR > 1 { $0=sprintf("\"value%d\":\"%s\",", NR-1, $0) } 1' RS=' ' ORS=' ' | sed 's/, $//') | |
curl --request POST \ | |
--header 'Content-Type: application/json' \ | |
--data '{'"${values}"'}' \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget https://download.samba.org/pub/rsync/rsync-3.1.2.tar.gz | |
wget https://download.samba.org/pub/rsync/rsync-patches-3.1.2.tar.gz | |
tar xzvf rsync-3.1.2.tar.gz | |
tar xzvf rsync-patches-3.1.2.tar.gz | |
cd rsync-3.1.2/ | |
patch -p1 <patches/detect-renamed.diff |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* MIDI Visual Metronome | |
* | |
* Developed on Sparkfun Uno R3 and Sparkfun MIDI Shield. | |
* | |
* Reqires the popular FortySevenEffects MIDI library: | |
* https://github.com/FortySevenEffects/arduino_midi_library | |
* | |
* The intended application is with MIDI and electronic music in | |
* a situation where proper stage or in-ear monitors are not |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#tabedata.txt is a file that contains the piped markdown table rows | |
with open ('markdownrows.txt') as f: | |
content = f.readlines() | |
rows = [] | |
for c in content: | |
cells = c.split('|') | |
cells = ['<td>{}</td>'.format(cell.strip()) for cell in cells] | |
rows.append(cells) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo | |
sudo sed -i s/\$releasever/6/g /etc/yum.repos.d/epel-apache-maven.repo | |
sudo yum install -y apache-maven | |
mvn --version |
NewerOlder