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
# based on http://lancespeelmon.wordpress.com/2012/05/10/three-tips-for-creating-the-best-ever-git-command-line/ | |
c_cyan=`tput setaf 6` | |
c_red=`tput setaf 1` | |
c_green=`tput setaf 2` | |
c_sgr0=`tput sgr0` | |
parse_git_branch () | |
{ | |
if git rev-parse --git-dir >/dev/null 2>&1 | |
then |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>author</key> | |
<string>Stanley Rost</string> | |
<key>comment</key> | |
<string>(π) Soryu, 2005</string> | |
<key>name</key> | |
<string>Sunburst</string> |
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
// install the run_multiple_commands plugin from https://gist.github.com/nilium/3327730 | |
[ | |
{"keys": ["ctrl+="], "command": "insert", "args": {"characters": " => "}}, | |
{"keys": ["ctrl+p"], "command": "insert_snippet", "args": {"contents": "params[:$0]"}}, | |
{"keys": ["ctrl+;"], "command": "run_multiple", "args": {"commands": [ | |
{ "command": "move_to", "args": {"to": "eol"} }, | |
{ "command": "insert", "args": {"characters": ";"} } | |
]}}, | |
{"keys": ["super+shift+v"], "command": "paste" }, | |
{"keys": ["super+v"], "command": "paste_and_indent"}, |
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
{ | |
"auto_indent": true, | |
"color_scheme": "Packages/User/Sunburst (SL).tmTheme", | |
"drag_text": false, | |
"ensure_newline_at_eof_on_save": true, | |
"find_selected_text": true, | |
"font_size": 12.0, | |
"ignored_packages": | |
[ | |
"Vintage" |
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
function psych_boot { | |
sed 's/syck/psych/' /vidyard/VidyardDashboard/config/boot.rb > /vidyard/VidyardDashboard/config/better_boot.rb | |
mv /vidyard/VidyardDashboard/config/better_boot.rb /vidyard/VidyardDashboard/config/boot.rb | |
} | |
function syck_boot { | |
sed 's/psych/syck/' /vidyard/VidyardDashboard/config/boot.rb > /vidyard/VidyardDashboard/config/better_boot.rb | |
mv /vidyard/VidyardDashboard/config/better_boot.rb /vidyard/VidyardDashboard/config/boot.rb | |
} |
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
#!/bin/bash -l | |
echo "Starting redeploy of youtube-pusher-staging" | |
cd /vidyard/VidyardDashboard | |
unset GIT_DIR | |
git checkout -f | |
echo "Bundling..." | |
bundle install |
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
from boto.s3.connection import S3Connection | |
from boto.s3.key import Key | |
import sys | |
conn = S3Connection('ACCESS_KEY_ID', 'SECRET_ACCESS_KEY') | |
bucket = conn.get_bucket('BUCKET') | |
rs = bucket.list('FOLDER') | |
file_search = "FILE_NAME" |
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
require 'json' | |
require 'oj' | |
require 'benchmark' | |
require 'securerandom' | |
h = {} | |
10_000.times{|i| h[SecureRandom.uuid] = i} | |
Benchmark.bmbm do |x| | |
x.report("json") { 1000.times{ n = h.to_json} } |
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
# this requires git-completion (`brew install git bash-completion`) | |
c_cyan=`tput setaf 6` | |
c_red=`tput setaf 1` | |
c_green=`tput setaf 2` | |
c_sgr0=`tput sgr0` | |
branch_color () | |
{ | |
if git rev-parse --git-dir >/dev/null 2>&1 | |
then |
OlderNewer