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
# rbenv | |
export PATH="$HOME/.rbenv/bin:$PATH" | |
eval "$(rbenv init -)" | |
source ~/.rbenv/completions/rbenv.bash | |
# prompt with ruby version | |
# rbenv version | sed -e 's/ .*//' | |
__rbenv_ps1 () | |
{ | |
rbenv_ruby_version=`rbenv version | sed -e 's/ .*//'` |
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
# config/locales/en.yml | |
en: | |
i18n: | |
language: | |
name: 'English' |
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
# 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"' |
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
# 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 |
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 | |
# 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 |
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
# Install kicker on osx: sudo gem install kicker --source http://gemcutter.org\ | |
# | |
# Place a `.kick' file with this code in the root of your project, which contains the file to watch. | |
# Then start running kicker from the project root: $ kicker | |
FILE_TO_WATCH = 'mockup-1.psd' | |
counter = nil | |
if File.exist?('output') |
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 | |
# Simple IMAP parser script that looks for NZBMatrix Watchlist mails and converts them to an RSS feed and downloads the NZBs. | |
# Created by request of third party. | |
# | |
# LICENSE: | |
# Copyright 2010 Filip H.F. 'FiXato' Slagter | |
# You may use this work without restrictions, as long as this notice is included. | |
# The work is provided "as is" without warranty of any kind, neither express nor implied. | |
require 'net/imap' | |
require 'rss/maker' |
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 | |
# | |
# A simple script that parses the Anope IRC Services services.conf for zbot and mysql variables. | |
# By: | |
# - Unknown_Entity aka o_o | |
# - Filip H.F. "FiXato" Slagter | |
# | |
# Now also compatible with 1.8.5 which seems to run on one of the archaic servers >< | |
require 'yaml' |
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
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;;;;;; weather underground for mIRC ;;;;;;;;;;;;;;;; | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;by eqrunner ;;v3.0;; | |
/* | |
-- COMMANDS -- | |
!w or !weather [zipcode|city,state|city,country|airport] = will return weather current conditions. | |
!current [zipcode|city,state|city,country|airport] = will return current conditions. | |
!forecast [zipcode|city,state|city,country|airport] = will give detailed 3 day forecast (for us) | |
!forecast5 [zipcode|city,state|city,country|airport] = will send 5 day forecast to $nick that requested. (to prevent chan flooding) |
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 | |
# | |
# A WeeChat script to parse Anope's BotServ BOTLIST into a sorted list, | |
# so you can more easily find unassigned BotServ bots. | |
# | |
# Code by Unknown Entity (aka o_o aka Flaming Nutmeg) and Filip H.F. "FiXato" Slagter | |
# Based on the code by Unknown Entity | |
# | |
# Type /parsebotlist and go get some noms depending on bot list length while it collects info. |
OlderNewer