(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |
if Rails.env.development? | |
ENV["BASE_URL"] = `curl -s http://localhost:4040/api/tunnels/ | jq -r '.tunnels' | jq -r '.[0].public_url' | awk -F/ '{print $3}' | tr -d '\n'` | |
Rails.application.config.hosts << ENV["BASE_URL"] | |
Rails.application.config.action_mailer.default_url_options = { | |
host: ENV["BASE_URL"] | |
} | |
end |
module Balance | |
module Monitor | |
module Uptime | |
module Sync | |
def self.now! | |
sync_new_jobs | |
remove_unused_jobs | |
end | |
def self.sync_new_jobs |
# This class in pulled from https://balance.day for my 37signals application. | |
class BalanceHistory::Preservation | |
InvalidData = Class.new(StandardError) | |
attr_reader :account | |
def initialize(account) | |
@account = account | |
end |