Skip to content

Instantly share code, notes, and snippets.


Rafe Rosen existentialmutt

View GitHub Profile
existentialmutt / rails.cap
Last active December 6, 2016 18:16 — forked from joost/deploy.rb
Capistrano 3 rails console tasks and log tailing tasks
View rails.cap
# Place in lib/capistrano/tasks/rails.cap and require it in your Capfile
# See:
# Adapted to work with RVM installed to /usr/local
namespace :rails do
desc "tail rails logs"
task :tail_logs do
on roles(:app) do
execute "tail -f #{shared_path}/log/#{fetch(:rails_env)}.log"
existentialmutt / db_fixtures_export.rake
Last active March 25, 2023 21:10 — forked from kuboon/db_fixtures_export.rake
Generate fixtures from db. Readable by rake db:fixtures:load
View db_fixtures_export.rake
# lib/tasks/db_fixtures_export.rake
namespace 'db:fixtures' do
desc "generate fixtures from the current database"
task :export => :environment do
models = defined?(ApplicationRecord) ? ApplicationRecord.descendants : ActiveRecord::Base.descendants
models.each do |model|
puts "exporting: #{model}"
existentialmutt /
Last active July 4, 2021 00:35 — forked from leastbad/
mrujs w/ cable-car plugin

"dependencies": { "cable_ready": "TBD", "mrujs": "TBD" }