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
#!/bin/sh | |
# E | |
wget -qO - http://packages.elasticsearch.org/GPG-KEY-elasticsearch | sudo apt-key add - | |
echo 'deb http://packages.elasticsearch.org/elasticsearch/1.4/debian stable main' | sudo tee /etc/apt/sources.list.d/elasticsearch.list | |
sudo update-rc.d elasticsearch defaults 95 10 | |
sudo /etc/init.d/elasticsearch start | |
# L | |
echo 'deb http://packages.elasticsearch.org/logstash/1.4/debian stable main' | sudo tee /etc/apt/sources.list.d/logstash.list |
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
diff --git a/growthforecast.pl b/growthforecast.pl | |
index 9a32a1d..7babee9 100755 | |
--- a/growthforecast.pl | |
+++ b/growthforecast.pl | |
@@ -9,7 +9,7 @@ use File::Basename; | |
use Getopt::Long; | |
use Plack::Loader; | |
use Plack::Builder; | |
-use Plack::Builder::Conditionals; | |
+use Plack::Middleware::Conditional; |
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
#!/bin/sh | |
pear list-upgrades |grep -v 'No upgrades available' |
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
source 'https://rubygems.org' | |
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' | |
gem 'rails', github: 'rails/rails' | |
group :assets do | |
gem 'uglifier', '>= 1.0.3' | |
end | |
gem 'journey', github: 'rails/journey' | |
gem 'activerecord-deprecated_finders', github: 'rails/activerecord-deprecated_finders' |
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
#!/bin/bash | |
for f in app/tmp/{logs,cache/{,persistent,models}}; do mkdir -p $f; chmod -R 777 $f; touch $f/empty; done |
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/env ruby | |
# encoding: utf-8 | |
require 'nokogiri' | |
@doc = Nokogiri::HTML::DocumentFragment.parse <<-EOHTML | |
<table></table> | |
EOHTML | |
@tables = @doc.xpath("table") |
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
#!/bin/sh | |
# Ref. https://developer.mozilla.org/en/Simple_Thunderbird_build | |
sudo apt-get build-dep thunderbird | |
sudo apt-get install mercurial yasm libcurl4-openssl-dev |
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
This set of log files shows an Ubuntu upgrading from up-to-date Jaunty to Karmic beta in the early October by ayucat. |
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
# ayucat 2009-07-16 | |
# add to rakefile.rb as follows: | |
# RSTRING/RARRAY for Ruby 1.9.x | |
edit_file "xxx.c_or_h" do |line| | |
case line | |
when /RSTRING\(([^\)]+)\)->(ptr|len)/ | |
line.sub(/RSTRING\(([^\)]+)\)->ptr/, 'RSTRING_PTR(\1)').sub(/RSTRING\(([^\)]+)\)->len/, 'RSTRING_LEN(\1)') | |
when /RARRAY\(([^\)]+)\)->ptr/ | |
line.sub(/RARRAY\(([^\)]+)\)->ptr/, 'RARRAY_PTR(\1)') | |
else |
NewerOlder