Skip to content

Instantly share code, notes, and snippets.

spree ALL=NOPASSWD: /usr/local/bin/bluepill
# See http://help.github.com/ignore-files/ for more about ignoring files.
#
# If you find yourself ignoring temporary files generated by your text editor
# or operating system, you probably want to add a global ignore instead:
# git config --global core.excludesfile ~/.gitignore_global
# Ignore bundler config
/.bundle
# Ignore the default SQLite database.
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.2'
# Use sqlite3 as the database for Active Record
gem 'mysql2', :groups => :production
gem 'sqlite3', :groups => [:development, :test]
# Use SCSS for stylesheets
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.2'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.0'
function silkroad; curl -s 'https://blockchain.info/address/1FfmbHfnpaZjKFvyi1okTjJJusN455paPH?filter=1' | hxnormalize -x | hxselect 'tx_container'; echo; curl -s 'https://blockchain.info/address/1F1tAaz5x1HUXrCNLbtMDqcw6o5GNn4xqX?filter=1' | hxnormalize -x | hxselect 'tx_container'; end
require File.expand_path('../boot', __FILE__)
require 'rails/all'
if defined?(Bundler)
# If you precompile assets before deploying to production, use this line
Bundler.require(*Rails.groups(:assets => %w(development test)))
# If you want your assets lazily compiled in production, use this line
# Bundler.require(:default, :assets, Rails.env)
end
def email_issue_attributes(issue)
items = []
%w(author status priority assigned_to category fixed_version).each do |attribute|
unless issue.disabled_core_fields.include?(attribute+"_id")
items << "#{l("field_#{attribute}")}: #{issue.send attribute}"
end
end
issue.custom_field_values.each do |value|
items << "#{value.custom_field.name}: #{show_value(value)}"
end
set :application, 'redmine'
set :repo_url, 'git://github.com/binaryphile/redmine'
set :branch, '2.3-stable'
set :deploy_to, '/var/www/redmine'
# set :scm, :git
# set :format, :pretty
# set :log_level, :debug
# set :pty, true
set :application, 'redmine'
set :repo_url, 'git://github.com/binaryphile/redmine'
set :branch, '2.3-stable'
set :deploy_to, '/var/www/redmine'
# set :scm, :git
# set :format, :pretty
# set :log_level, :debug
# set :pty, true
@binaryphile
binaryphile / gist:6887034
Created October 8, 2013 16:02
my playbook for postgresql in a docker instance in a vagrant box
- hosts: all
gather_facts: no
tasks:
- file: path=/usr/sbin/update-apt-xapian-index mode=0644
- copy: src=sources.list dest=/etc/apt/sources.list owner=root group=root mode=0644
- apt: update_cache=yes cache_valid_time=3600
- apt: pkg=linux-image-generic-lts-raring,linux-headers-generic-lts-raring,curl
register: kernel_files
- include: reboot.yml
only_if: ${kernel_files.changed}