Skip to content

Instantly share code, notes, and snippets.

View samhunta's full-sized avatar
:octocat:
Software Developer

samhunta

:octocat:
Software Developer
View GitHub Profile
@samhunta
samhunta / gist:b071d862581532e34876633208fe19d2
Last active July 21, 2016 18:48 — forked from rtrouton/gist:f92f263414aaeb946e54
Install Xcode command line tools on 10.7.x - 10.10.x. Tested on 10.7.5, 10.8.5, 10.9.5 and 10.10.2.
#!/bin/bash
# Installing the Xcode command line tools on 10.7.x or higher
osx_vers=$(sw_vers -productVersion | awk -F "." '{print $2}')
cmd_line_tools_temp_file="/tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress"
# Installing the latest Xcode command line tools on 10.9.x or higher
if [[ "$osx_vers" -ge 9 ]]; then
@samhunta
samhunta / NerdTree.py
Created October 19, 2017 17:24 — forked from jacob-ogre/NerdTree.py
NerdTree-like behavior for Sublime Text 2
import sublime, sublime_plugin
class NerdTreeCommand(sublime_plugin.WindowCommand):
def run(self):
self.window.run_command("toggle_side_bar")
self.window.run_command("focus_side_bar")