Skip to content

Instantly share code, notes, and snippets.

@krigar
krigar / redirect.rb
Created July 16, 2015 09:33
Rack::Redirect
module Rack
class Redirect
def initialize(app)
@app = app
end
def redirect(location)
[301, {'Location' => location, 'Content-Type' => 'text/html'}, ['Moved Permanently']]
end
@krigar
krigar / ansible.cfg
Last active February 28, 2023 20:46
Bastion Playbook
[ssh_connection]
ssh_args = -F ssh.cfg
control_path = ~/.ssh/mux-%r@%h:%p