Skip to content

Instantly share code, notes, and snippets.

View rmundo's full-sized avatar

Ray Tsaihong rmundo

View GitHub Profile
@rmundo
rmundo / simulator_populator_xcode7
Created November 9, 2015 02:55 — forked from cabeca/simulator_populator_xcode7
This script removes and recreates all simulators in Xcode 7.
#!/usr/bin/env ruby
require 'JSON'
device_types = JSON.parse `xcrun simctl list -j devicetypes`
runtimes = JSON.parse `xcrun simctl list -j runtimes`
devices = JSON.parse `xcrun simctl list -j devices`
devices['devices'].each do |runtime, runtime_devices|
runtime_devices.each do |device|
@rmundo
rmundo / gist:6f3ac4d9fe9b76c6b79b
Created September 16, 2015 08:52
Return current git branch, CLI
git rev-parse --abbrev-ref HEAD