I hereby claim:
- I am cmwright on github.
- I am cmwright (https://keybase.io/cmwright) on keybase.
- I have a public key ASCldeeV_jagzhTeflcR44iejorShufPmWAEhVsl4hGFqgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# 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 |
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} } |
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" |
#!/bin/bash -l | |
echo "Starting redeploy of youtube-pusher-staging" | |
cd /vidyard/VidyardDashboard | |
unset GIT_DIR | |
git checkout -f | |
echo "Bundling..." | |
bundle install |
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 | |
} |
{ | |
"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" |
// 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"}, |
<?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> |