I don't get why when I upload (ftp.put) a copy of the same file, then download that copy, ruby thinks the content is different? Obviously something in Net::FTP is screwing with my ISO-8859-1 character in the file? I dunno, still trying to track it down.
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 | |
require 'pathname' | |
require 'yaml' | |
def expand(new_yaml, yaml) | |
yaml.keys.each do |k| | |
append(new_yaml, k, yaml[k]) | |
end | |
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
--- /usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.13/lib/bundler/source.rb 2011-05-19 13:55:32.560582929 +1000 | |
+++ source.rb 2011-05-19 13:56:23.779939014 +1000 | |
@@ -619,7 +619,7 @@ | |
return if has_revision_cached? | |
Bundler.ui.info "Updating #{uri}" | |
in_cache do | |
- git %|fetch --force --quiet --tags "#{uri}" "refs/heads/*:refs/heads/*"| | |
+ git %|--git-dir "#{Dir.pwd}" fetch --force --quiet --tags "#{uri}" "refs/heads/*:refs/heads/*"| | |
end | |
else |
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/lib/autolink.rb b/lib/autolink.rb | |
index 178e92f..dcdbc2a 100644 | |
--- a/lib/autolink.rb | |
+++ b/lib/autolink.rb | |
@@ -78,12 +78,10 @@ module Twitter | |
new_text = "" | |
# this -1 flag allows strings ending in ">" to work | |
- text.split(/[<>]/, -1).each_with_index do |chunk, index| | |
- if index != 0 |
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 bash | |
GITHUB_USER="tigris" | |
GITHUB_PROJECT=... | |
GIT_BRANCH="master" | |
apt-get -y update | |
apt-get -y install build-essential zlib1g-dev libssl-dev libyaml-dev libreadline-dev | |
cd /tmp | |
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.gz | |
tar -xvzf ruby-1.9.3-p194.tar.gz |
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
{ | |
"auto_complete_commit_on_tab": true, | |
"auto_match_enabled": false, | |
"color_scheme": "Packages/Color Scheme - Default/Solarized (Dark).tmTheme", | |
"fold_buttons": false, | |
"hot_exit": false, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], |
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['unicorn']['before_fork'] = %Q( | |
defined?(ActiveRecord::Base) && ActiveRecord::Base.connection.disconnect! | |
old_pid = '#{node['unicorn']['pid']}.oldbin' | |
if File.exists?(old_pid) && server.pid != old_pid | |
begin | |
Process.kill('QUIT', File.read(old_pid).to_i) | |
rescue Errno::ENOENT, Errno::ESRCH | |
puts 'Old master alerady dead' | |
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
# /tmp/foo/Gemfile | |
source 'https://rubygems.org' | |
gem 'rake' | |
gem 'unicorn' |
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 'http://rubygems.org' | |
gem 'rails', '4.0.0.beta1' | |
gem 'sqlite3' |
OlderNewer