Skip to content

Instantly share code, notes, and snippets.

View rnaveiras's full-sized avatar

Raúl Naveiras rnaveiras

  • London, United Kingdom
  • 13:49 (UTC)
View GitHub Profile
let's make a list of sinatra-based apps!
apps:
- http://github.com/cschneid/irclogger "Sinatra based irclogger.com"
- http://github.com/rtomayko/wink "minimalist blogging engine"
- http://github.com/foca/integrity "The easy and fun Continuous Integration server"
- http://github.com/sr/git-wiki "git-powered wiki"
- http://github.com/entp/seinfeld "Seinfeld-inspired productivity calendar to track your public github commits."
- http://github.com/karmi/marley "Marley, the blog engine without <textareas>. See in action @ www.restafari.org"
- http://github.com/ichverstehe/gaze "Serve up your Markdown files with this tiny Sinatra app!"
Rails CMS alternatives
======================
Note: project activity was checked on 11/26/09.
Active projects:
---------------
adva-cms
repo: http://github.com/svenfuchs/adva_cms/
site: http://adva-cms.org/
Last update: 11/24/09
@rnaveiras
rnaveiras / Gemfile
Created March 24, 2010 09:26 — forked from samgranieri/Gemfile
How to get Rails 2.3.5 working with bundler 0.9.3
source :gemcutter
gem 'rails', '~> 2.3.5', :require => nil
@rnaveiras
rnaveiras / gist:1299540
Created October 19, 2011 20:17 — forked from fennb/gist:1283573
nginx microcaching config example
# Set cache dir
proxy_cache_path /var/cache/nginx levels=1:2
keys_zone=microcache:5m max_size=1000m;
# Virtualhost/server configuration
server {
listen 80;
server_name yourhost.domain.com;
# Define cached location (may not be whole site)
# ThinkingSphinx lazily executes search requests.
# This means that search results aren't usually
# loaded until you iterate over the results in the view.
# This can sometimes make tracking down performance
# problems a little tricky, as new relic will report all
# your time spent rendering such and such partial or view.
# Adding this file to your rails app will make the
# time spent in sphinx properly report itself
require 'new_relic/agent/method_tracer.rb'
@rnaveiras
rnaveiras / readme.md
Created January 25, 2012 23:12 — forked from mislav/readme.md
CLI tool that checks the build status of current branch on Travis CI

Check build status of a project on the command line

Install (copy & paste):

curl -sL raw.github.com/gist/1676577/travis.rb > ~/bin/travis \
  && chmod +x ~/bin/travis

gem install hub | tail -2
ruby -e 'require "json"' 2&gt;/dev/null || gem install json
@rnaveiras
rnaveiras / chef-server-ubuntu-natty-userdata.sh
Created February 28, 2012 21:21 — forked from hh/chef-server-ubuntu-natty-userdata.sh
Chef Server setup for Ubuntu 11.04/natty on Amazon ec2
#!/bin/bash
#ec2-run-instances --user-data-file chefserver-ec2-userdata.sh -g chef-server --key mykey -t m1.large --instance-initiated-shutdown-behavior terminate ami-1aad5273 | grep INSTANCE | INSTANCE=`cut -f 2` | xargs -I XXX ec2-create-tags XXX --tag Name=chefserver ; sleep 60 ; ec2-describe-instances $INSTANCE | grep INSTANCE | grep running | echo ssh ubuntu@`cut -f 4`
# ami-1aad5273 - ubuntu 11.04 64bit server ebs
# ami-2cc83145 - alestic ubunt 10.04 LTS 32bit server ebs
# ami-2ec83147 - alestic ubunt 10.04 LTS 64bit server ebs
# ami-8e1fece7 - amazon 64 bit ebs
exec > >(tee /var/log/user-data.log|logger -t user-data -s 2>/dev/console) 2>&1
set -e -x
# START CHEF BOOSTRAP
@rnaveiras
rnaveiras / chef-server-ubuntu-natty-userdata.sh
Created April 27, 2012 14:45 — forked from hh/chef-server-ubuntu-natty-userdata.sh
Chef Server setup for Ubuntu 11.04/natty on Amazon ec2
#!/bin/bash
#ec2-run-instances --user-data-file chefserver-ec2-userdata.sh -g chef-server --key mykey -t m1.large --instance-initiated-shutdown-behavior terminate ami-1aad5273 | grep INSTANCE | INSTANCE=`cut -f 2` | xargs -I XXX ec2-create-tags XXX --tag Name=chefserver ; sleep 60 ; ec2-describe-instances $INSTANCE | grep INSTANCE | grep running | echo ssh ubuntu@`cut -f 4`
# ami-1aad5273 - ubuntu 11.04 64bit server ebs
# ami-2cc83145 - alestic ubunt 10.04 LTS 32bit server ebs
# ami-2ec83147 - alestic ubunt 10.04 LTS 64bit server ebs
# ami-8e1fece7 - amazon 64 bit ebs
exec > >(tee /var/log/user-data.log|logger -t user-data -s 2>/dev/console) 2>&1
set -e -x
# START CHEF BOOSTRAP
@rnaveiras
rnaveiras / GITHUB-COMPARE-LINKS.md
Created November 1, 2012 17:50 — forked from dyokomizo/GITHUB-COMPARE-LINKS.md
This Gist is worth a million beers. So buy me one (or send me a really cool t-shirt, make sure it is REALLY cool though)! :)
@rnaveiras
rnaveiras / 0-readme.md
Created November 30, 2012 15:48 — forked from burke/0-readme.md
ruby-1.9.3-p327 cumulative performance patch for rbenv

ruby-1.9.3-p327 cumulative performance patch for rbenv

This installs a patched ruby 1.9.3-p327 with various performance improvements and a backported COW-friendly GC, all courtesy of funny-falcon.

Requirements

You will also need a C Compiler. If you're on Linux, you probably already have one or know how to install one. On OS X, you should install XCode, and brew install autoconf using homebrew.