by Joaquin Menchaca Last Update: Nov 2017
Updated versions maintained here:
This is my guide to getting essential tools for DevOps on Mac OS X.
exec 3<>/dev/tcp/example.com/80 && echo -e "HEAD / HTTP/1.1\r\nHost: example.com\r\nConnection: close\r\n\r\n" >&3 && cat <&3 | |
# exec 3<>/dev/tcp/www.google.com/80 | |
# echo -e "GET /index.html HTTP/1.1\r\nConnection: close\r\n\r\n" >&3 | |
# cat <&3 | |
# cat < /dev/tcp/<ip>/<port> > outfile.txt |
by Joaquin Menchaca Last Update: Nov 2017
Updated versions maintained here:
This is my guide to getting essential tools for DevOps on Mac OS X.
require "active_record" | |
namespace :db do | |
db_config = YAML::load(File.open('config/database.yml')) | |
db_config_admin = db_config.merge({'database' => 'postgres', 'schema_search_path' => 'public'}) | |
desc "Create the database" | |
task :create do | |
ActiveRecord::Base.establish_connection(db_config_admin) |
The goal of this cheatsheet is to make it easy to add hand-rolled authentication to any rails app in a series of layers.
First the simplest/core layers, then optional layers depending on which features/functionality you want.
Specs |
|
---|---|
AUTHOR | Ira Herman |
LANGUAGE/STACK | Ruby on Rails Version 4, 5, or 6 |
Microsoft partnered with Canonical to create Bash on Ubuntu on Windows, running through a technology called the Windows Subsystem for Linux. Below are instructions on how to set up the ssh server to run automatically at boot.
/etc/ssh/sshd_config
file by running the command sudo vi /etc/ssh/sshd_config
and do the following
Port
to 2222 (or any other port above 1000)PasswordAuthentication
to yes. This can be changed back to no if ssh keys are setup.sudo service ssh --full-restart