This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
template = "Element #{item} in the array." | |
array = ['a', 'b', 'c'] | |
text = array.map {|item| template} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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%; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |