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
# Logical Structure: | |
# +-----------------------------------+ | |
# | +--------------------------+ | | |
# | | +------------+ | | | |
# | RAID | Partition | Filesystem | | | | |
# | | +------------+ | | | |
# | +--------------------------+ | | |
# +-----------------------------------+ | |
# unmount RAID |
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
#!/usr/bin/env ruby | |
require 'anemone' | |
require 'pp' | |
require 'optparse' | |
options = OpenStruct.new | |
OptionParser.new do |o| | |
o.banner = "geturls.rb [options] URL" |
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
<%= content_tag :li, link_to_unless_current( "#{cat.titleize}", polymorphic_path([@user,cat.to_sym]) ) { | |
link_to("#{cat.titleize}", polymorphic_path([@user,cat.to_sym])) }, :class=>(controller_name.to_s == cat.to_s && action_name == "index") && "current" | |
-%> |