- Download Ubuntu 18.04 LTS
- Download Balena Etcher
- Launch Etcher and burn image to SD card.
- After burning, remove and reinsert the SD card so macOS mounts it. A
system-bootpartition will appear. - In Terminal:
touch /Volumes/system-boot/sshto enable SSH access. - Safely eject the volume, remove the SD card, insert into Raspberry Pi.
- Connect Raspberry Pi to power and ethernet.
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 | |
| # Note: ensure that iWork apps are quit before running | |
| # These defaults will make the update nag show up on next launch | |
| # | |
| defaults delete com.apple.iWork.Pages TMAApplicationUpdateNotifier.MigrationAlertToInstallLastShownTimeStamp | |
| defaults delete com.apple.iWork.Pages TMAApplicationUpdateNotifier.MigrationAlertToInstallCallCounter | |
| defaults delete com.apple.iWork.Keynote TMAApplicationUpdateNotifier.MigrationAlertToInstallLastShownTimeStamp |
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
| # | |
| # Compares the RBJ, PK3, and PKE pinking filters from: | |
| # https://www.firstpr.com.au/dsp/pink-noise/ | |
| # | |
| from scipy.signal import zpk2tf | |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| import scipy.signal as signal | |
| from scipy.signal import butter, lfilter, freqz |
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
Show hidden characters
| { | |
| "name": "Heirloom", | |
| "author": "Ricci Adams", | |
| "variables": { | |
| "background": "#ffffff", | |
| "foreground": "#000000", | |
| }, | |
| "globals": { |
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
| # Given a file extension, displays information about the assigned file icon | |
| # | |
| # Usage: | |
| # | |
| # 1) Open a window in Sublime Text | |
| # 2) View -> Show Console | |
| # 3) Type in the following (with your extension instead of "h"): | |
| # window.run_command("debug_file_icon, { "extension": "h" }) | |
| # |
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
| # Attempts to work around Issue #6815 by manually sending | |
| # the selected text to the macOS Find Pasteboard | |
| # | |
| # https://github.com/sublimehq/sublime_text/issues/6815 | |
| from __future__ import annotations | |
| import ctypes | |
| import ctypes.util | |
| import sublime |
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
| # | |
| # Run a nodejs webapp in a systemd sandbox | |
| # | |
| # - Needs network I/O to localhost | |
| # - Needs the ability to send mail via sendmail | |
| # | |
| [Unit] | |
| Description=Example Service | |
| After=network.target |
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 | |
| # | |
| # Generate self-signed certificates for local development | |
| # /www/keys/LocalRootCA.crt will need to be imported into Keychain Access | |
| # and set to "Always Trust" | |
| # | |
| BASE_PATH="/www/keys" | |
| ROOT_PATH="$BASE_PATH/LocalRootCA" |
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 is a quick example of how to use the CoreAudio API and the new Tapping | |
| // API to create a tap on the default audio device. You need macOS 14.2 or | |
| // later. | |
| // Build command: | |
| // clang -framework Foundation -framework CoreAudio main.m -o tapping | |
| // License: You're welcome to do whatever you want with this code. If you do | |
| // something cool please tell me though. I would love to hear about it! |
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
| # iPhone with home button | |
| xcrun simctl status_bar booted clear | |
| xcrun simctl status_bar booted override \ | |
| --time "9:41 AM" \ | |
| --wifiBars 3 --cellularBars 4 --operatorName "" | |
| xcrun simctl spawn booted defaults write com.apple.springboard SBShowBatteryPercentage 1 | |
| # iPhone X | |
| xcrun simctl status_bar booted clear | |
| xcrun simctl status_bar booted override --time "9:41" --wifiBars 3 --cellularBars 4 |
NewerOlder