Skip to content

Instantly share code, notes, and snippets.

@profh
profh / decode_session_cookie.rb
Last active June 23, 2021 13:25
A simple script to decode Rails 4 session cookies
@hwdsl2
hwdsl2 / .MOVED.md
Last active October 15, 2024 03:15
IPsec VPN Server Auto Setup Script for Ubuntu and Debian
@garnu
garnu / CV.rb
Last active June 27, 2019 08:54
My Ruby CV
require 'rubygems'
%w(active_support active_record i18n).each{ |g| require g }
module Skills
def main
{
programming_languages: %w(Ruby Javascript Golang Bash),
development_frameworks: %w(Rails Node/Express.js Sinatra Grape React),
data_stores: %w(PostgreSQL MySQL Redis Cassandra Memcached),
@irrationalidiot
irrationalidiot / description
Created April 5, 2011 14:13 — forked from jacortinas/description
Cucumber, rspec and spork setup using watchr for rails
Gems:
gem 'cucumber'
gem 'cucumber-rails'
gem 'rspec'
gem 'rspec-rails'
gem 'capybara'
gem 'database_cleaner'
gem 'spork'
gem 'watchr'
@jacortinas
jacortinas / description
Created February 21, 2011 22:30
watchr configuration
Gems:
gem 'cucumber'
gem 'cucumber-rails'
gem 'rspec'
gem 'rspec-rails'
gem 'capybara'
gem 'database_cleaner'
gem 'spork'
gem 'watchr'
@markbates
markbates / watchr script
Created July 20, 2010 15:25
A Watchr script for rails, rspec, and cucumber
ENV["WATCHR"] = "1"
system 'clear'
def growl(message)
growlnotify = `which growlnotify`.chomp
title = "Watchr Test Results"
puts message
image = message.match(/\s0\s(errors|failures)/) ? "~/.watchr_images/passed.png" : "~/.watchr_images/failed.png"
options = "-w -n Watchr --image '#{File.expand_path(image)}' -m '#{message}' '#{title}'"
system %(#{growlnotify} #{options} &)