Skip to content

Instantly share code, notes, and snippets.

View alexmx's full-sized avatar
🏴‍☠️
(╯°□°)╯︵ ┻━┻

Alex Maimescu alexmx

🏴‍☠️
(╯°□°)╯︵ ┻━┻
View GitHub Profile
git init --bare $HOME/.config
alias config='/usr/bin/git --git-dir=$HOME/.config/ --work-tree=$HOME'
config config --local status.showUntrackedFiles no
if which TOOL >/dev/null; then
# Do something
else
echo "warning: TOOL not installed."
fi
KEYWORDS="TODO|FIXME|\?\?\?:|\!\!\!:"
find "${SRCROOT}" \( -name "*.h" -or -name "*.m" \) -print0 | \
xargs -0 egrep --with-filename --line-number --only-matching "($KEYWORDS).*\$" | \
perl -p -e "s/($KEYWORDS)/ warning: \$1/"
@alexmx
alexmx / update-wwdr-certificate.sh
Created February 16, 2016 13:03
Update expired WWDR certificate
security delete-certificate -c "Apple Worldwide Developer Relations Certification Authority" ~/Library/Keychains/login.keychain
sudo security delete-certificate -c "Apple Worldwide Developer Relations Certification Authority" /Library/Keychains/System.keychain
curl -O -L http://developer.apple.com/certificationauthority/AppleWWDRCA.cer
security import AppleWWDRCA.cer -k ~/Library/Keychains/login.keychain -A