Skip to content

Instantly share code, notes, and snippets.

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}
template = "Element #{item} in the array."
array = ['a', 'b', 'c']
text = array.map {|item| template}
@binaryphile
binaryphile / tel-tabular.css
Last active December 15, 2015 20:49
tel-tabular
/* Basic tabular structure */
.tel-tabular {
border-collapse: collapse;
margin-bottom: 1em;
display: table;
width: 100%;
}
.tel-tabular > div, .tel-tabular > li {
display: table-row-group;
width: 100%;
@binaryphile
binaryphile / gist:4348104
Created December 20, 2012 20:00
Output of running vagrant up with the Spree Vagrantfile
[default] Importing base box 'precise64lts'...
[default] [default] The guest additions on this VM do not match the install version of
VirtualBox! This may cause things such as forwarded ports, shared
folders, and more to not work properly. If any of those things fail on
this machine, please update the guest additions and repackage the
box.
Guest Additions Version: 4.1.18
VirtualBox Version: 4.2.4
[default] Matching MAC address for NAT networking...
@binaryphile
binaryphile / Vagrantfile
Created December 11, 2012 16:30
vagrantfile
Vagrant::Config.run do |config|
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "precise64lts"
# The url from where the 'config.vm.box' box will be fetched if it
# doesn't already exist on the user's system.
#config.vm.box_url = "http://dl.dropbox.com/u/1537815/precise64.box"
# Boot with a GUI so you can see the screen. (Default is headless)