This file contains hidden or 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
| puts "test" |
This file contains hidden or 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
| class DiskInodeUsage < Scout::Plugin | |
| # Heavily borrowed from Scout's DiskUsage plugin | |
| DF_RE = /\A\s*(\S.*?)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s*\z/ | |
| def parse_file_systems(io, &line_handler) | |
| line_handler ||= lambda { |row| pp row } | |
| headers = nil | |
| row = "" | |
| io.each_line do |line| |
This file contains hidden or 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/env ruby | |
| # Matches on pattern for all bins in all paths | |
| if !ARGV[0] | |
| puts "Requires a pattern" | |
| exit | |
| end | |
| pattern = ARGV[0] | |
| paths = ENV['PATH'].split(':').uniq |
This file contains hidden or 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
| (eval-after-load 'rcirc | |
| '(progn | |
| (require 'rcirc-notify) | |
| (setq rcirc-notify-timeout 90) | |
| (setq rcirc-notify-sticky t))) |
This file contains hidden or 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
| (require 'color-theme) | |
| (color-theme-initialize) | |
| (color-theme-tango-2) |
This file contains hidden or 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
| curl -G http://github.com/wfarr/color-theme-tango-2/tarball/master | tar zxf | |
| mv wfarr-color-theme-tango-2-* color-theme-tango-2 |
This file contains hidden or 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
| git submodule add git://github.com/wfarr/color-theme-tango-2.git vendor/color-theme-tango-2 |
This file contains hidden or 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/env ruby | |
| puts "This is ruby ftw" | |
| [1,2,3].each do |foo| | |
| puts foo | |
| end |
This file contains hidden or 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
| set stal=0 | |
| set guioptions-=T | |
| set guioptions-=r | |
| set guioptions-=L |
This file contains hidden or 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
| class PostsController < ApplicationController | |
| before_filter :authenticate_admin!, :only => [:create, :new, :update, :edit, :destroy] | |
| # ... | |
| end |