Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
client = Dalli::Client.new | |
config.action_dispatch.rack_cache = { | |
metastore: client, | |
entitystore: client, | |
allow_reload: false | |
} | |
config.cache_store = :dalli_store | |
config.serve_static_assets = true |
group :test do | |
gem 'cucumber' # a tool for running automated tests written in plain language | |
# https://github.com/cucumber/cucumber | |
gem 'test-unit' | |
gem 'guard' | |
gem 'guard-rspec' | |
gem 'shoulda-matchers' | |
gem 'rb-fsevent' | |
end |
group :development, :test do | |
gem 'pry-rails' # Causes rails console to open pry | |
# https://github.com/rweng/pry-rails | |
gem 'pry-debugger' # Adds step, next, finish, and continue commands and breakpoints | |
# https://github.com/nixme/pry-debugger | |
gem 'pry-stack_explorer' # Navigate the call-stack | |
# https://github.com/pry/pry-stack_explorer | |
gem 'annotate' # Annotate all your models, tests, fixtures, and factories | |
# https://github.com/ctran/annotate_models | |
gem 'quiet_assets' # Turns off the Rails asset pipeline log |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
Sublime Text 2 ships with a CLI called subl (why not "sublime", go figure). This utility is hidden in the following folder (assuming you installed Sublime in /Applications
like normal folk. If this following line opens Sublime Text for you, then bingo, you're ready.
open /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl
You can find more (official) details about subl here: http://www.sublimetext.com/docs/2/osx_command_line.html
Dir.glob("*.flac").each do |f| | |
flac = "./#{f.gsub(' ', '\ ')}" | |
mp3 = "./#{f.gsub(' ', '\ ').chomp('.flac')}.mp3" | |
system("ffmpeg -i #{flac} -map_meta_data #{mp3}:#{flac} #{mp3}") | |
end |