Skip to content

Instantly share code, notes, and snippets.

View brendanmanning's full-sized avatar
🏖️
Wishing I was on a beach somewhere

Brendan Manning brendanmanning

🏖️
Wishing I was on a beach somewhere
View GitHub Profile
@brandonb927
brandonb927 / osx-for-hackers.sh
Last active July 20, 2024 05:10
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned.
#!/bin/sh
###
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer)
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos
###
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx
["New York, New York",
"Los Angeles, California",
"Chicago, Illinois",
"Houston, Texas",
"Phoenix, Arizona",
"Philadelphia, Pennsylvania",
"San Antonio, Texas",
"San Diego, California",
"Dallas, Texas",
"San Jose, California",
@brendanmanning
brendanmanning / regex.txt
Created January 10, 2019 00:34
Regex to match a 10 digit phone number, excluding 555 ("movie") numbers
(((?!(555))[0-9]{3})-){2}(((?!(5555))[0-9]{4}))
123-456-7890 Y
555-123-4567 N
123-555-4567 N
123-456-5555 N
550-550-5550 N
555-555-5555 N