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
require 'sequel' | |
CONFIG = { | |
db_host_name: 'localhost', | |
db_user_name: 'mythtv', | |
db_name: 'mythconverg', | |
db_password: '*********', | |
out_path: "/tmp", | |
cover_path: "/var/lib/mythtv/coverart/", | |
frame: '0000000002.jpg', |
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
#embed this in your body tag | |
# %body{body_data} | |
def body_data | |
{ | |
:"data-controller" => params[:controller], | |
:"data-action" => params[:action], | |
:"data-id" => params[:id], | |
:"data-parent-controller" => parent_controller, | |
:"data-parent-id" => params["#{parent_controller.to_s.singularize}_id".to_sym] |
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
Updating git://github.com/alindeman/no_peeping_toms.git | |
zsh:1: no matches found: test/* | |
zsh:1: no matches found: bin/* | |
Updating git://github.com/mcmoyer/to_spreadsheet.git | |
Fetching source index for http://rubygems.org/ | |
Fetching source index for http://gems.acig.com/ | |
Using rake (0.8.7) from /home/mmoyer/.rvm/gems/jruby-1.6.1@global/specifications/rake-0.8.7.gemspec | |
Using aaronh-chronic (0.3.9) from /home/mmoyer/.rvm/gems/jruby-1.6.1@ccip3/specifications/aaronh-chronic-0.3.9.gemspec | |
Using abstract (1.0.0) from /home/mmoyer/.rvm/gems/jruby-1.6.1@ccip3/specifications/abstract-1.0.0.gemspec | |
Using activesupport (3.0.7) from /home/mmoyer/.rvm/gems/jruby-1.6.1@ccip3/specifications/activesupport-3.0.7.gemspec |
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 | |
files = Dir['**/**'].sort | |
files.each do |file| | |
#do a case insensitve search first | |
all_matches = `ack -lic "#{file}"`.split("\n") | |
puts "found #{all_matches.length} matches for #{file}" | |
exact_matches = `ack -lc "#{file}"`.split("\n") | |
difference = all_matches - exact_matches |
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
# start this task as deployer | |
description "Starts the rails app server(unicorn) as the user 'deployer'" | |
start on filesystem | |
chdir /srv/www/{path_to_my_app} | |
exec sudo -u deployer -i 'rvm ree; unicorn_rails -c /srv/www/{path_to_my_app}/config/unicorn.rb -E production' |
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
server { | |
listen 80; | |
server_name cms.my.site.com; | |
root /srv/www/mysite/current/public; | |
passenger_enabled on; | |
rails_env production; | |
client_max_body_size 50m; | |
} | |
server { | |
listen 80; |