Skip to content

Instantly share code, notes, and snippets.

@jaredhowland
jaredhowland / clear-font-cache.md
Last active February 14, 2024 09:57
Clear Mac OS X Font Caches
@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 / intro.md
Last active June 7, 2023 14:53
Useful Bookmarklets
@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 / 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 / BBEdit-TextWrangler_RegEx_Cheat_Sheet.txt
Last active September 27, 2021 12:12 — forked from ccstone/BBEdit-TextWrangler_RegEx_Cheat_Sheet.txt
BBEdit-TextWrangler Regular Expression Cheat-Sheet
————————————————————————————————————————————————————————————————————————————————————————————————————
BBEDIT/TEXTWRANGLER REGULAR EXPRESSION GUIDE MODIFIED 2014-01-13 : 00:12
————————————————————————————————————————————————————————————————————————————————————————————————————
NOTES:
The PCRE engine (Perl Compatible Regular Expressions) is what BBEdit and TextWrangler use.
Items I'm unsure of are marked '# PCRE?'. The list while fairly comprehensive is not complete.
Sub AddProgressBar()
' Parameters to set
progressBarHeight = 3.5 ' height of the progress bar
FillColor = RGB(251, 0, 6) ' Fill color of the progress bar
LineColor = FillColor ' Line color of the progress bar
BackgroundColor = RGB(255, 255, 255) ' background color of the progress bar
fontColor = FillColor
startingSlideNo = 1
noFontSize = 13
showSlideNo = True
@jaredhowland
jaredhowland / google-form-to-github-issue.md
Created November 24, 2016 04:55 — forked from bmcbride/google-form-to-github-issue.md
Create a new GitHub Issue from a Google Form submission

Wiring up a Google Form to GitHub is not that difficult with a little bit of Apps Script automation. All you need is a Google account, a GitHub account, and a web browser...

Set up your GitHub Personal Access Token

Personal access tokens provide an easy way to interact with the GitHub API without having to mess with OAuth. If you don't already have a personal access token with repo or public_repo access, visit your GitHub settings page and generate a new token.

Be sure to copy your token some place safe and keep it secure. Once generated, you will not be able to view or copy the token again.

Set up the Form & Spreadsheet

  1. Create a Google Form.
@jaredhowland
jaredhowland / edgemax-ad-blocker-dnsmasq.md
Created December 12, 2019 06:43 — forked from bsodmike/edgemax-ad-blocker-dnsmasq.md
HOWTO Ubiquity EdgeMAX Ad Blocking Content Filtering using EdgeRouter

Ubiquity EdgeMAX Ad Blocking Content Filtering using EdgeRouter

This is based on a guide on the Ubnt forums.

Log into your Edgerouter and run the following - sudo -i && vi /config/user-data/update-adblock-dnsmasq.sh This will switch you to the root user and open up vi.

#!/bin/bash
@jaredhowland
jaredhowland / keybase.md
Created August 7, 2018 14:54
keybase.io

Keybase proof

I hereby claim:

  • I am jaredhowland on github.
  • I am jaredhowland (https://keybase.io/jaredhowland) on keybase.
  • I have a public key ASD1pQNzE0_0oHHfyhh8duLIgfiX-lol--kN64_0U7Svlwo

To claim this, I am signing this object: