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/ruby | |
require 'rubygems' | |
require 'rubygems/commands/fetch_command' | |
class Gem::Commands::FetchCommand | |
def add_version_option_with_fetch_depends | |
add_version_option_without_fetch_depends | |
add_option('-y', '--[no-]dependencies', | |
"Fetch dependent gems") do |value, options| |
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
# user and group to run as | |
user ez ez; | |
# number of nginx workers | |
worker_processes 6; | |
# pid of nginx master process | |
pid /var/run/nginx.pid; | |
# Number of worker connections. 1024 is a good default |
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
#Ruby alternatives for parsing CSV files | |
# Ruby String#split (slow) | |
# Ruby CSV (slow) | |
# FasterCSV (ok, recommended) | |
# ccsv (fast & recommended if you have control over CSV format) | |
# CSVScan (fast & recommended if you have control over CSV format) | |
# Excelsior (fast & recommended if you have control over CSV format) | |
#CSV library benchmarks can be found here and here |