Skip to content

Instantly share code, notes, and snippets.

View rpossan's full-sized avatar
🎯
Focusing

Ronaldo Possan rpossan

🎯
Focusing
View GitHub Profile
@lcguida
lcguida / build_database_docker_image.sh
Last active June 4, 2018 12:48
Creating a postgresql docker image from production database
#!/bin/bash
# Fail script if a command fails
set -x
# Grab the latest postgresql:9.4-alpine image
docker pull postgres:9.4-alpine
# We will name our container as `pg_tmp`, so we will
# make sure that no container with this name is running
@SFEley
SFEley / gist:1054553
Created June 29, 2011 18:43 — forked from andrzejsliwa/gist:778535
list all available cucumber steps - (rake cucumber:steps)
# From https://gist.github.com/778535
# In turn based on http://www.natontesting.com/2010/01/11/updated-script-to-list-all-cucumber-step-definitions/
desc "List all available steps"
task :steps do
require 'hirb'
extend Hirb::Console
features_dir = "features"
step_candidates = Dir.glob(File.join(features_dir,'**/*.rb'))
# Follow all the gem requires, and identify which files have steps in them