Skip to content

Instantly share code, notes, and snippets.

@Keoven
Keoven / .rvmrc_template
Created May 29, 2011 04:15
.rvmrc Template
## Load Environment
#
if [[ -s "/Users/user_name/.rvm/environments/ruby-1.8.7-p330@gemset" ]] ; then
. "/Users/user_name/.rvm/environments/ruby-1.8.7-p330@gemset"
fi
rvm use 1.8.7@gemset
export RAILS_ROOT=$(pwd)
## Aliases
#
@Keoven
Keoven / database.yml
Created May 29, 2011 04:22
Rails Database Config File
<% branch = `git branch | grep "*"`.sub('*', '').strip %>
common: &common
adapter: postgresql
username:
password:
host: localhost
development:
database: cp_<%= branch %>_development
<<: *common
@Keoven
Keoven / .gitignore
Created February 20, 2012 03:28 — forked from vishvananda/devstack.rb
Vagrant script for devstack
openstack-cookbooks
.vagrant
cache
(*
Taken from: http://hintsforums.macworld.com/showthread.php?t=110246
Get additional profiles from:
http://www.adobe.com/support/downloads/detail.jsp?ftpID=3680
*)
property profilePath : "'/Library/ColorSync/Profiles/Adobe ICC Profiles (end-user)/CMYK/CoatedGRACoL2006.icc'"
on run
@Keoven
Keoven / Solarized Vim.itermcolors
Created July 2, 2012 06:23
iTerm 2 Solarized Theme -- Modified to match solarized theme when editing in MacVim
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Blue Component</key>
<real>0.19370138645172119</real>
<key>Green Component</key>
<real>0.15575926005840302</real>
@Keoven
Keoven / downgrade_libqt.sh
Created September 24, 2012 06:13 — forked from pgroudas/downgrade_libqt.sh
Downgrade libqt on ubuntu 12.04
#!/bin/bash
export DEBIAN_FRONTEND=noninteractive
cat >>/etc/apt/sources.list <<END
# Needed for older versions of libqt (needed for cucumber and capybara/webkit)
deb http://archive.ubuntu.com/ubuntu oneiric main
END
apt-get update
apt-get remove -y libqtwebkit-dev libqt4-dev
@Keoven
Keoven / ubuntu_setup.sh
Last active January 11, 2020 22:57
My setup script to use when setting up a new ubuntu install be it a VM or a fresh install on a computer.
# Ubuntu 18.10
#
# VM Setup:
# 1 Cores & 2 GB RAM
#
# Requirements:
# - $ sudo apt-get install curl -y
# - Your SSH keys are already setup since these includes cloning repositories from github.
#
# Post install if you hadn't done so:
# Tested on Elementary Luna 0.2
#
# VM Setup:
# 2 Cores & 4 GB RAM
#
# Requirements:
# sudo apt-get install curl -y
#
# Run this script by doing the command below:
#
@Keoven
Keoven / strong_type.rb
Last active December 26, 2015 09:48
Static Typing Experiment
require 'pry'
class StrongType
def initialize
@binding = binding
end
def self.func(name, arguments, &method_body)
define_method(name) do |*args|
types = arguments.values
#!/bin/bash
# node.js using PPA (for statsd)
sudo apt-get install python-software-properties
sudo apt-add-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs npm
# Install git to get statsd
sudo apt-get install git