start new:
tmux
start new with session name:
tmux new -s myname
# config/routes.rb | |
resources :documents do | |
scope module: 'documents' do | |
resources :versions do | |
post :restore, on: :member | |
end | |
resource :lock | |
end | |
end |
# also you need to uncomment next line in Capfile | |
# require 'capistrano/rails/assets' | |
namespace :deploy do | |
namespace :assets do | |
Rake::Task['deploy:assets:precompile'].clear_actions | |
desc 'Precompile assets locally and upload to servers' | |
task :precompile do |
Use it at your own risk! You might end up worse than before. Backup everything beforehand. Twice.
If you have the Messages app setup in multiple Macs with the same Apple ID you may end up with iMessages (or SMS) scattered around all of these Macs. This is because after a certain time the new iMessages (or SMS) recevied will cease to push to devices afer a certain time has elapsed. Thus, if a computer has been offline for some period of time it won't get the new iMessages.
Each Messages instance stores the information in a SQLite database, to consolidate all these databases run the script below. This is where the Messages app stores the SQLite database under ~/Library/Messages
, the folder contents will look like as follows:
// partial file | |
// you will need to `yarn add notyf` | |
import CableReady from 'cable_ready' | |
import { Notyf } from 'notyf' | |
import flash from '../shared/notyf' | |
CableReady.DOMOperations.toast = operation => { | |
new Notyf(flash).open(operation) | |
} |