Skip to content

Instantly share code, notes, and snippets.

@priithaamer
priithaamer / gist:1034070
Created June 19, 2011 11:01
Capistrano task to ask confirmation before deploying to production
task :ask_production_confirmation do
set(:confirmed) do
puts <<-WARN
========================================================================
WARNING: You're about to perform actions on production server(s)
Please confirm that all your intentions are kind and friendly
========================================================================
@douglas
douglas / update_git_repos.sh
Created October 14, 2011 15:04
Update all git repositories under a base directory
#!/bin/bash
# store the current dir
CUR_DIR=$(pwd)
# Let the person running the script know what's going on.
echo "\n\033[1mPulling in latest changes for all repositories...\033[0m\n"
# Find all git repositories and update it to the master latest revision
for i in $(find . -name ".git" | cut -c 3-); do
@caniszczyk
caniszczyk / clone-all-twitter-github-repos.sh
Created October 9, 2012 04:25
Clone all repos from a GitHub organization
curl -s https://api.github.com/orgs/twitter/repos?per_page=200 | ruby -rubygems -e 'require "json"; JSON.load(STDIN.read).each { |repo| %x[git clone #{repo["ssh_url"]} ]}'
@paul91
paul91 / GraphicsMagick.sh
Last active September 20, 2020 17:02
How to install GraphicsMagick on CentOS 6.4
#!/bin/bash
# Install build dependencies
yum install -y gcc libpng libjpeg libpng-devel libjpeg-devel ghostscript libtiff libtiff-devel freetype freetype-devel
# Get GraphicsMagick source
wget ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/1.3/GraphicsMagick-1.3.9.tar.gz
tar zxvf GraphicsMagick-1.3.9.tar.gz
# Configure and compile
@akodkod
akodkod / Gemfile.rb
Last active December 18, 2015 12:10
Rails Gems for Developing
group :development
gem 'better_errors' # better errors pages (https://github.com/charliesome/better_errors)
gem 'binding_of_caller' # console for better errors
gem 'jazz_hands' # cool rails console `rails c` (https://github.com/nixme/jazz_hands)
gem 'quiet_assets' # speed up assets & clear log (https://github.com/evrone/quiet_assets)
gem 'bullet' # optimize queries (https://github.com/flyerhzm/bullet)
end
@akodkod
akodkod / Gemfile
Created August 18, 2015 11:10
Ruby on Rails 4 - Useful gems
gem 'request_store'
gem 'foreman'
gem 'rubocop'
gem 'bullet'
gem 'quiet_assets'
gem 'better_errors'
gem 'binding_of_caller'
gem 'awesome_print'
gem 'lograge'
gem 'figaro'