Skip to content

Instantly share code, notes, and snippets.

View ericchernuka's full-sized avatar

Eric Chernuka ericchernuka

View GitHub Profile
@ericchernuka
ericchernuka / bash_prompt
Created January 15, 2013 16:28
Stylish new bash prompts
#!/bin/bash
# bash_prompt
# Inspired by https://github.com/necolas/dotfiles/blob/master/bash/bash_prompt
# iTerm2 prefs: import Solarized theme (disable bright colors for bold text)
# Color ref: http://vim.wikia.com/wiki/Xterm256_color_names_for_console_Vim
# More tips: http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html
@ericchernuka
ericchernuka / file_replication_multi-region.rb
Created August 9, 2012 21:52
Replication of a file from the default US region into an Asia bucket.
#!/usr/bin/env ruby
require 'rubygems'
require 'fileutils'
require 'date'
require 'chronic'
require 'fog'
#Set the default directory for relative paths.
Dir.chdir(File.expand_path(File.dirname(__FILE__)))