Skip to content

Instantly share code, notes, and snippets.

@nico01f
nico01f / rails http status codes
Created August 27, 2020 05:11 — forked from mlanett/rails http status codes
HTTP status code symbols for Rails
HTTP status code symbols for Rails
Thanks to Cody Fauser for this list of HTTP responce codes and their Ruby on Rails symbol mappings.
Status Code Symbol
1xx Informational
100 :continue
101 :switching_protocols
102 :processing
@nico01f
nico01f / try_ssh.rb
Created August 10, 2017 20:27 — forked from cotocisternas/try_ssh.rb
try_ssh
#!/usr/bin/env ruby
require 'net/ssh'
require 'timeout'
require 'unicode'
require 'colorize'
hosts = ['127.0.0.1']
ports = ['22']
users = ['root', 'admin', 'ec2-user']
@nico01f
nico01f / try_ssh.rb
Created August 10, 2017 20:27 — forked from cotocisternas/try_ssh.rb
try_ssh
#!/usr/bin/env ruby
require 'net/ssh'
require 'timeout'
require 'unicode'
require 'colorize'
hosts = ['127.0.0.1']
ports = ['22']
users = ['root', 'admin', 'ec2-user']
@nico01f
nico01f / BluetoothRestart
Created February 27, 2016 19:17 — forked from ajmaradiaga/BluetoothRestart
Force Bluetooth Restart on Mac
sudo launchctl unload /System/Library/LaunchDaemons/com.apple.blued.plist
sudo launchctl load /System/Library/LaunchDaemons/com.apple.blued.plist