Skip to content

Instantly share code, notes, and snippets.

View coreygo's full-sized avatar

Corey Gouker coreygo

View GitHub Profile
{
"[css]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[html]": {
"editor.defaultFormatter": "vscode.html-language-features"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
# generated via `code-insiders --list-extensions | xargs -L 1 echo code-insiders --install-extension | pbcopy`
# remove `-insiders` for non-Insiders build
#!/usr/bin/env bash
code-insiders --install-extension bungcip.better-toml
code-insiders --install-extension christian-kohler.npm-intellisense
code-insiders --install-extension CoenraadS.bracket-pair-colorizer
code-insiders --install-extension DavidAnson.vscode-markdownlint
code-insiders --install-extension dbaeumer.vscode-eslint
code-insiders --install-extension DotJoshJohnson.xml
#!/usr/bin/env bash
# generate array lines
# `brew tap | xargs -I {} echo \'{}\' | pbcopy`
# generate command lines
# `brew tap | xargs -I {} echo brew tap {} | pbcopy`
declare -a taps=(
'buo/cask-upgrade'
'homebrew/cask'

Information for macOS Setup and Developer Experience

Last updated, 2024-05-03, applies to macOS 14.x.x (Sonoma) on Intel silicon hardware.

The default Terminal and Shell (zsh) is replaced with iTerm2 and Bash v5.

This document is meant to serve as an aid and reference in preparing a macOS system on Intel silicon hardware, the process is reviewed and completed manually. Apple M silicon hardware has not been tested.

Note: Review associated documentation at each software and service site prior to implementation to avoid unintended side effects. Prior to running brew install commands, run brew info to confirm what and how Homebrew will manage an installation. Some of the information may also apply to Apple silicon hardware but has not yet been verified.

Old Method

  1. hdiutil convert -format UDRW -o /path/to/target.img /path/to/source.iso
  • Note: OS X tends to put the .dmg ending on the output file automatically.
  • Rename the file mv /path/to/target.img.dmg /path/to/target.img
  1. diskutil list to get the current list of devices
  2. Insert flash media
  3. diskutil list again and determine the device node assigned to your flash media (e.g. /dev/disk2)
  4. diskutil unmountDisk /dev/diskN (replace N with the disk number from the last command - in the previous example, N would be 2)
  5. sudo dd if=/path/to/downloaded.img of=/dev/rdiskN bs=1m
  6. diskutil eject /dev/diskN

Keybase proof

I hereby claim:

  • I am coreygo on github.
  • I am coreygo (https://keybase.io/coreygo) on keybase.
  • I have a public key ASAd9hYYkJ3zk8obJhgCjTyRED4iNbnqLvBJaVtTEEAClgo

To claim this, I am signing this object:

@coreygo
coreygo / Open iTerm.app
Last active April 17, 2017 21:36
Open iTerm from Finder
on run {input, parameters}
tell application "Finder"
set dir_path to quoted form of (POSIX path of (folder of the front window as alias))
end tell
CD_to(dir_path)
end run
on CD_to(theDir)
tell application "iTerm"
activate
import ddf.minim.*;
import ddf.minim.analysis.*;
import ddf.minim.signals.*;
Minim minim;
AudioInput in;
//AudioPlayer player;
BeatDetect beat;
BeatListener bl;
// Zoom and pan a cube of 3D points
// Scale
float zoom;
// offset from center
PVector offset;
// previous offset
PVector poffset;
// mouse position
PVector mouse;