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
Add "+universal" to /opt/local/etc/macports/variants.conf | |
Uncomment in /opt/local/etc/macports.conf: | |
variants_conf /opt/local/etc/macports/variants.conf | |
sudo port -v install git-core +bash_completion +doc | |
sudo port -v install ImageMagick \ | |
Xft2 \ | |
antiword \ | |
atk \ |
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 donation_uk_giftaid | |
unless request.post? | |
redirect_to :action=>"donate" | |
return | |
end | |
@heroPage = HeroPage.search_url(params[:url], DateTime.now) | |
hero_page_variables("preview", true) | |
if session[:mydonation_id] | |
@donation = Donation.find_by_id(session[:mydonation_id]) | |
@donation.update_attributes(params[:donation]) |
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
module PageHelper | |
def hero? | |
!!params[:event_url] | |
end | |
def event? | |
!hero? && !!params[:url] | |
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
equire 'rubygems' | |
require 'eventmachine' | |
module Socky | |
module Policy | |
DEBUG = true | |
HOST = 'localhost' | |
PORT = 843 | |
EOF = "\r\000" | |
REQUEST = "<policy-file-request/>\000" |
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
#!/usr/bin/ruby | |
require 'rubygems' | |
require 'thor' | |
require 'chef' | |
require 'chef/node' | |
require 'chef/rest' | |
Chef::Config.from_file("/etc/chef/server.rb") | |