Skip to content

Instantly share code, notes, and snippets.

View claco's full-sized avatar
:octocat:
I may be slow to respond.

Chris Laco claco

:octocat:
I may be slow to respond.
View GitHub Profile
desc 'Install MacVim'
task :macvim do
system 'git clone git://github.com/b4winckler/macvim.git ~/Downloads/macvim'
system 'cd ~/Downloads/macvim && git pull'
system 'cd ~/Downloads/macvim && make clean'
system 'cd ~/Downloads/macvim && ./configure --with-features=huge --enable-perlinterp --enable-pythoninterp --enable-rubyinterp --enable-cscope --with-tlib=ncurses --enable-multibyte'
system 'cd ~/Downloads/macvim && make'
system 'rm -rf /Applications/MacVim.app'
system 'cd ~/Downloads/macvim && cp -R ~/Downloads/macvim/src/MacVim/build/Release/MacVim.app /Applications'
system 'cd ~/Downloads/macvim && cp ~/Downloads/macvim/src/MacVim/mvim /usr/local/bin'
@claco
claco / api.rb
Created January 13, 2014 23:05
require 'uri'
class ::Chef::Recipe
include ::Openstack
end
{
"name": "development",
"description": "",
"cookbook_versions": {
"apache2": "= 1.6.7",
"apt": "= 2.0.1",
"aws": "= 0.101.3",
"build-essential": "= 1.4.1",
"ceilometer": "= 0.0.1",
"cinder": "= 0.0.10",
@claco
claco / gist:5912133
Last active December 19, 2015 06:29
# Attributes
default["some"]["thing"] = "foop"
# Recipe
# This prints the value
Chef::Log.warn node["some"]["thing"]
template "farp" do
source "farp.erb"
variables(
GIT
remote: git://github.com/opscode/test-kitchen.git
revision: bf17d76df4c63bb58f70dd32ce0deb1b09b9df8d
branch: 1.0
specs:
test-kitchen (1.0.0.dev)
celluloid
mixlib-shellout
net-scp
net-ssh
@claco
claco / gist:3660445
Created September 6, 2012 21:19
Quick test running for test unit/rspec sans all the other plugins hupla.. current test under cursor, current file, current suite; puts errors in QuickFix. Uses m instead of testrb for test unit line support.
autocmd BufNewFile,BufRead *_test.rb setlocal makeprg=m errorformat=%A%>\ \ %n)\ Failure:,%C%m\ [%f:%l]:,%Z
autocmd BufNewFile,BufRead *_test.rb setlocal makeprg=m errorformat+=%A%>\ \ %n)\ Error:,%C%.%#:,%C%m\ for\ #<%.%#>,%Z\ \ \ \ %f:%l:in\ \`%.%#\',%-G%.%#
"autocmd BufNewFile,BufRead *_spec.rb setlocal makeprg=rspec errorformat=rspec\ %f:%l\ #\ %m,%-G%.%#
autocmd BufNewFile,BufRead *_spec.rb setlocal makeprg=rspec errorformat=%A%>\ \ %n)%.%#,%C%>\ \ \ \ \ Failure/Error:%.%#,%C\ \ \ \ \ %m:,%C\ \ \ \ \ \ \ ,%C\ \ \ \ \ \ \ %m,%C\ \ \ \ \ #\ %f:%l:in%.%#,%Z,%-G%.%#
function! RunMake(...)
if a:0 == 1
echo "Running " . &makeprg . " " . a:1 . "..."
silent exec "make! " . a:1
@claco
claco / gist:1888612
Created February 23, 2012 00:17
Pomodoro on Alfred
on alfred_script(q)
tell application "Pomodoro"
if q is equal to "reset" then
reset
else if q is equal to "resume" then
resume
else if q is equal to "complete" then
force completion
else if q is equal to "external" then
@claco
claco / database.yml.example mysql2
Created February 18, 2012 17:31 — forked from erichurst/database.yml.example mysql2
Rails 3 database.yml examples
# MySQL. Versions 4.1 and 5.0 are recommended.
#
# Install the MySQL driver:
# gem install mysql2
#
# And be sure to use new-style password hashing:
# http://dev.mysql.com/doc/refman/5.0/en/old-client.html
development:
adapter: mysql2
encoding: utf8
claco@dean ~/Sites/within3/within3_setup (master) (ree-1.8.7-2010.02@setup) $ rake instance:create[claco]
(in /Volumes/Within3/within3_setup)
knife ec2 server create -I ami-0a59bb63 -d centos5-gems -f m1.large -S default -i ./ssh/w3-default-key-pair.pem --ssh-user root -G engineering
Instance ID: i-5f4f6031
Flavor: m1.large
Image: ami-0a59bb63
Availability Zone: us-east-1d
Security Groups: engineering
SSH Key: default
Installation of RVM to /Users/claco/.rvm/ is complete.
Christopher H. Laco,
Thank you very much for using RVM! I sincerely hope that RVM helps to
make your work both easier and more enjoyable.
If you have any questions, issues and/or ideas for improvement please
join#rvm on irc.freenode.net and let me know, note you must register