Skip to content

Instantly share code, notes, and snippets.

@jholt13
jholt13 / Brewfile
Created November 22, 2021 23:38
Work Brewfile
cask_args appdir: "/Applications"
cask "1Password"
cask "apparency"
cask "itsycal"
cask "iterm2"
cask "sensiblesidebuttons"
cask "suspicious-package"
cask "transmit"
cask "rectangle"
@jholt13
jholt13 / setup.sh
Last active September 29, 2025 13:15
echo "Setting up macOS..."
echo
echo "Creating screenshots directory"
echo
mkdir -p ~/Pictures/Screenshots
echo "Creating src directory"
cask_args appdir: "/Applications"
# brew "mas"
# mas "Slack", id: 803453959
cask "1Password"
cask "apparency"
cask "discord"
cask "firefox"
@jholt13
jholt13 / gist:5ce30cfe9f86aa63e8d28b12c2c5848a
Last active December 19, 2022 16:52
Okta expression to map 2 character US & CA state codes to full name
Okta's `Iso3166Convert` function doesn't handle the ISO 3166 2 Character standard
for referring to states. Below is an Okta expression that checks to see if the
state in your attribute matches to any of the US States & Territories as well
as Canadian provinces. Copy and paste from line 7 to line 75 and paste into your
Okta extension attribute editor.
user.state == "AL" ? "Alabama":(
user.state == "AK" ? "Alaska":(
user.state == "AS" ? "American Samoa":(
user.state == "AR" ? "Arkansas":(