Skip to content

Instantly share code, notes, and snippets.

View FiXato's full-sized avatar

Filip H.F. "FiXato" Slagter FiXato

View GitHub Profile
@FiXato
FiXato / githubify.rb
Created July 31, 2009 12:59 — forked from Narnach/githubify.rb
creates/overwrites a file named <username>-<gemspec_file> and updates the s.name in there have the same project name format.
#!/usr/bin/env ruby
# Usage: githubify <gemspec_file> [username]
# Requires: github.name to be set for the current git project or [username] to be specified
# Result: creates/overwrites a file named <username>-<gemspec_file> and updates the s.name in there have the same project name format.
#
# Author: Wes Oldenbeuving
# E-mail: narnach@gmail.com
# License: MIT-LICENSE
class String
@FiXato
FiXato / github_gem.rb
Created July 13, 2009 07:34 — forked from bmaland/github_gem.rb
github_gem for rails
# Works like :gem for rails, but sets source to github's gem repo.
# add to lib/github_gem.rb in your rails project.
module Rails
class Configuration
def github_gem(name, options = {})
options[:source] = 'http://gems.github.com'
options[:lib] = name.sub(/[^-]+-/, '') unless options.has_key?(:lib)
self.gem(name, options)
end
end
@FiXato
FiXato / openttd.rake
Created June 18, 2009 13:59 — forked from Narnach/openttd.rake
OpenTTD Rakefile
# Rake tasks to install OpenTTD from their Subversion source.
# Note: this is used on a Macbook, so the configuration and installation are based on this.
def cmd(str)
puts str
system str
end
desc 'Configure sources for compilation'
task :configure do
cmd './configure --with-ccache --enable-strip --disable-universal --with-cocoa MAKEOPTS="-j5" CFLAGS="-pipe" CXXFLAGS="-pipe"'