Skip to content

Instantly share code, notes, and snippets.

@jaredhowland
jaredhowland / git_create_orphan.sh
Created March 3, 2017 15:15 — forked from seanbuscay/git_create_orphan.sh
Create an orphan branch in a repo.
cd repository
git checkout --orphan orphan_name
git rm -rf .
rm '.gitignore'
echo "#Title of Readme" > README.md
git add README.md
git commit -a -m "Initial Commit"
git push origin orphan_name
@jaredhowland
jaredhowland / mamp-php-on-macos-command-line.sh
Created February 6, 2020 19:06 — forked from olets/mamp-php-on-macos-command-line.sh
Make all MAMP PHPs available on command line, and default to the latest
# Henry Bley-Vroman, 2019
#
# Usage
# Paste or source this into your shell profile.
# Requires macOS and that your shell supports [[ ]] and '<string> == <starting substring>*'
# (Bash, Zsh, Ksh etc)
# alias php to the latest PHP installed with MAMP
MAMP_PHP__LATEST=$(ls /Applications/MAMP/bin/php/ | sort -V | tail -1)
alias php="/Applications/MAMP/bin/php/${MAMP_PHP__LATEST}/bin/php -c \"/Library/Application Support/appsolute/MAMP PRO/conf/${MAMP_PHP__LATEST}.ini\""
@jaredhowland
jaredhowland / intro.md
Last active June 7, 2023 14:53
Useful Bookmarklets
@jaredhowland
jaredhowland / homebrew.md
Last active October 16, 2023 18:17
Homebrew
#!/usr/bin/env zsh
# Setup script for a new macOS machine
# Version of Ruby to use with `chruby`
rubyver="3.2.2"
# Bold font
bold=$(tput bold)
normal=$(tput sgr0)
@jaredhowland
jaredhowland / clear-font-cache.md
Last active February 14, 2024 09:57
Clear Mac OS X Font Caches