Skip to content

Instantly share code, notes, and snippets.

View paulovittor23's full-sized avatar

Paulo Rendeiro paulovittor23

  • HP Enterprise
  • Galway - Ireland
View GitHub Profile
@paulovittor23
paulovittor23 / memcached_session_store.rb
Created October 29, 2012 16:53
memcached session store
# Memcached config
memcache_config = YAML.load_file("#{RAILS_ROOT}/config/memcached.yml")[RAILS_ENV]
if memcache_config.nil?
raise ArgumentError.new("[ environment.rb ] Memcached configurations could not be found for RAILS_ENV => #{RAILS_ENV}")
end
require 'memcache'
CACHE = MemCache.new(:namespace => "abril-id-#{RAILS_ENV}")
CACHE.servers = memcache_config['servers']
@paulovittor23
paulovittor23 / jenkins_plugins_to_test.txt
Created September 14, 2012 19:45
jenkins_plugins_to_test
Plugin
@paulovittor23
paulovittor23 / dbus-uuidgen
Created August 30, 2012 13:56
dbus error on firefox initialization
dbus-uuidgen
How to install Statsd + Graphite on Centos 5.X
https://gist.github.com/889297
https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager
@paulovittor23
paulovittor23 / gist:2871137
Created June 4, 2012 22:14
how to convert vmdk to vhd
VBoxManage clonehd /Users/paulo/VirtualBox\ VMs/devtools_1338568497/box-disk1.vmdk --format VHD ~/Desktop/cururu.vhd
@paulovittor23
paulovittor23 / gist:2819926
Created May 28, 2012 16:16
Extend "vagrant ssh" to allow X, agent forwarding
# add to Vagrantfile config
config.ssh.forward_x11 = true