This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
# Create display override file to force Mac OS X to use RGB mode for Display | |
# see http://embdev.net/topic/284710 | |
require 'base64' | |
data=`ioreg -l -d0 -w 0 -r -c AppleDisplay` | |
edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten | |
vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
// If you want exceptions reraised so you can see them in the console, change this to true. | |
"reraise_exceptions": false, | |
// If you want to have a syntax applied when new files are created, set new_file_syntax to the name of the syntax to use. | |
// The format is exactly the same as "syntax" in the rules below. For example, if you want to have a new file use | |
// JavaScript syntax, set new_file_syntax to 'JavaScript'. | |
"new_file_syntax": false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"bold_folder_labels": true, | |
"caret_style": "wide", | |
"color_scheme": "Packages/User/SublimeLinter/Solarized (Dark) (SL).tmTheme", | |
"ensure_newline_at_eof_on_save": true, | |
"folder_exclude_patterns": | |
[ | |
".svn", | |
".git", | |
".hg", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import boto.route53 | |
import boto.ec2 | |
import pprint as pp | |
def match_domain(domain, region="us-east-1"): | |
''' iterate through the public EIPs and make sure that if there is a `domain.com` entry for that EIP, it's private IP is also mapped in the private `domain.com` | |
''' | |
r53 = boto.route53.connect_to_region(region) | |
ec2 = boto.ec2.connect_to_region(region) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
description "IPython server, after installing ipython and dependencies into /home/ubuntu/.ipython, setup a system daemon to run" | |
pre-start script | |
export HOME=/home/ubuntu | |
end script | |
script | |
exec sudo /usr/local/bin/ipython notebook --ipython-dir=/home/ubuntu/.ipython --profile=notebook --pylab=inline --no-browser | |
end script |
NewerOlder