DO NOT USE VSCODE terminal and make sure uname -m
returns arm64
- First Install Xcode command line tool
xcode-select --install
- Create and change
/opt
directories owner
package main | |
import ( | |
"fmt" | |
"log" | |
"syscall" | |
"unsafe" | |
) | |
var ( |
# See https://github.com/rikumi/iconsur | |
yarn global add iconsur | |
sudo iconsur set /Applications/Android\ File\ Transfer.app -k Airdroid | |
sudo iconsur set /Applications/Android\ Studio.app/ -l -c 7a5 -s 0.8 | |
sudo iconsur set /Applications/DaisyDisk.app/ -l | |
sudo iconsur set /Applications/Decompressor.app/ -l | |
sudo iconsur set /Applications/Discord.app/ | |
sudo iconsur set /Applications/Google\ Chrome.app/ | |
sudo iconsur set /Applications/IINA.app/ -l -c 161d22 |
# Add a scheduled sync task at 4:00 am | |
# Some privileges should be granted to `cron` *manually*, so you may test `* * * * *` (run every second) first to grant the needed privileges in advance | |
0 4 * * * osascript /path/to/your/sync-from-chrome-to-safari.scpt |
Last updated March 13, 2024
This Gist explains how to sign commits using gpg in a step-by-step fashion. Previously, krypt.co was heavily mentioned, but I've only recently learned they were acquired by Akamai and no longer update their previous free products. Those mentions have been removed.
Additionally, 1Password now supports signing Git commits with SSH keys and makes it pretty easy-plus you can easily configure Git Tower to use it for both signing and ssh.
For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing your commits with GPG.
const randomColor = (() => { | |
"use strict"; | |
const randomInt = (min, max) => { | |
return Math.floor(Math.random() * (max - min + 1)) + min; | |
}; | |
return () => { | |
var h = randomInt(0, 360); | |
var s = randomInt(42, 98); |