Skip to content

Instantly share code, notes, and snippets.

@haemi
haemi / update_brew.sh
Created January 6, 2017 07:07
update brew
#!/bin/bash
brew update && brew upgrade `brew outdated`
@haemi
haemi / profile_compilation_times.sh
Last active January 9, 2017 07:26
Profiling Swift compilation times
#!/bin/bash
xcodebuild -workspace App.xcworkspace -scheme App clean build OTHER_SWIFT_FLAGS="-Xfrontend -debug-time-function-bodies" | grep .[0-9]ms | grep -v ^0.[0-9]ms | sort -nr > culprits.txt
@haemi
haemi / gisttools.js
Created March 2, 2017 07:20
resizing/cropping images
mogrify -resize 373x663 *.JPG
mogrify -crop 373x553+0+100 *.JPG