Skip to content

Instantly share code, notes, and snippets.

View amedeo's full-sized avatar

Amedeo Paglione amedeo

View GitHub Profile

Keybase proof

I hereby claim:

  • I am amedeo on github.
  • I am amedeo (https://keybase.io/amedeo) on keybase.
  • I have a public key whose fingerprint is 1C94 0F9F D029 C61B 44C2 AA43 F21A 75CF C724 2335

To claim this, I am signing this object:

@amedeo
amedeo / gist:837180
Created February 21, 2011 15:12
cli vim from homebrew MacVim
#! /bin/sh
lastversion=`ls -d /usr/local/Cellar/macvim/* | sort -n | tail -1`
cwd=`pwd`
cd $lastversion/MacVim.app/Contents/MacOS
exec ./Vim -c "cd $cwd" "$@"
@amedeo
amedeo / gist:820412
Created February 10, 2011 12:00
CouchDB and multiple tags

CouchDB and multiple tags

The problem

Given a set of documents, each associated with multiple tags, how can I retrieve the documents tagged with an arbitrary set of tags?

My solution

brew install -v tmux
==> Build Environment
CC: /usr/bin/cc => /usr/bin/gcc-4.2
CXX: /usr/bin/c++ => /usr/bin/c++-4.2
LD: /usr/bin/cc => /usr/bin/gcc-4.2
CFLAGS: -O3 -march=core2 -msse4 -w -pipe
CXXFLAGS: -O3 -march=core2 -msse4 -w -pipe
MAKEFLAGS: -j8
==> Downloading http://downloads.sourceforge.net/tmux/tmux-1.3.tar.gz
File already downloaded and cached to /Users/iluvatar/Library/Caches/Homebrew
@amedeo
amedeo / license
Created January 27, 2010 10:35 — forked from defunkt/license
#!/bin/sh -e
# Usage: license
# Prints an MIT license appropriate for totin' around.
#
# $ license > COPYING
year=`date "+%Y"`
cat <<EOF
Copyright (c) $year Amedeo Paglione
Permission is hereby granted, free of charge, to any person obtaining
@amedeo
amedeo / gist:51167
Created January 23, 2009 20:06 — forked from peterc/gist:33337
# SUPER DARING APP TEMPLATE 1.0
# By Peter Cooper
# Link to local copy of edge rails
inside('vendor') { run 'ln -s ~/dev/rails/rails rails' }
# Delete unnecessary files
run "rm README"
run "rm public/index.html"
run "rm public/favicon.ico"