This is a draft.
macOS doesn’t have many of the advanced Linux or UNIX features that have come about in the past 20 years. So getting a proper chroot environment up and running takes a little more work.
# -*- mode: conf; tab-width: 4; -*- | |
## Passwords | |
# When using iCloud it is best to create an app-specific password | |
# | |
# https://support.apple.com/en-us/HT204397 | |
# | |
# Store application specific passwords on macOS with |
# -*- mode: conf; tab-width: 4; -*- | |
defaults | |
port 587 | |
tls on | |
account primary | |
host smtp.mail.me.com | |
auth on | |
from [email protected] |
#import <Cocoa/Cocoa.h> | |
int main(int argc, char **argv) | |
{ | |
NSRect rect; | |
NSWindowStyleMask style; | |
NSAutoreleasePool *pool; | |
NSApplication *app; | |
NSMenu *menubar, *appMenu; | |
NSMenuItem *appMenuItem, *quitMenuItem; |
$ brew update | |
Error: | |
homebrew-core is a shallow clone. | |
homebrew-cask is a shallow clone. | |
To `brew update`, first run: | |
git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow | |
git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask fetch --unshallow | |
This restriction has been made on GitHub's request because updating shallow | |
clones is an extremely expensive operation due to the tree layout and traffic of | |
Homebrew/homebrew-core and Homebrew/homebrew-cask. We don't do this for you |
#import <Foundation/Foundation.h> | |
#define BEGIN_AUTORELEASEPOOL @autoreleasepool { | |
#define END_AUTORELEASEPOOL } | |
int main(int argc, const char **arg) | |
{ | |
BEGIN_AUTORELEASEPOOL | |
NSError *err; |
#!/bin/sh | |
#SRC=${1} | |
#DST=${2} | |
SRC="/usr/local/opt/emacs-mac/Emacs.app" | |
DST="/Applications" | |
osascript <<EOF | |
tell app "Finder" |
function mono(str) { | |
const ASCII_A = 'A'.codePointAt(0) | |
const ASCII_Z = 'Z'.codePointAt(0) | |
const ASCII_a = 'a'.codePointAt(0) | |
const ASCII_z = 'z'.codePointAt(0) | |
const ASCII_0 = '0'.codePointAt(0) | |
const ASCII_9 = '9'.codePointAt(0) | |
const MONO_Alpha_offset = '𝙰'.codePointAt(0) - ASCII_A | |
const MONO_alpha_offset = '𝚊'.codePointAt(0) - ASCII_a | |
const MONO_num_offset = '𝟶'.codePointAt(0) - ASCII_0 |
console.log('%cYo!', 'font-family: cursive; font-size: 3em; color: indigo') |
% /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
==> Checking for `sudo` access (which may request your password). | |
Password: | |
==> This script will install: | |
/usr/local/bin/brew | |
/usr/local/share/doc/homebrew | |
/usr/local/share/man/man1/brew.1 | |
/usr/local/share/zsh/site-functions/_brew | |
/usr/local/etc/bash_completion.d/brew | |
/usr/local/Homebrew |