Skip to content

Instantly share code, notes, and snippets.

View sriharshaj's full-sized avatar
🏠
Working from home

Harsha Jujjavarapu sriharshaj

🏠
Working from home
View GitHub Profile
@sriharshaj
sriharshaj / composing-software.md
Created June 1, 2020 21:04 — forked from rosario/composing-software.md
Eric Elliott's Composing Software Series
@sriharshaj
sriharshaj / ssh_tunneling.md
Created May 12, 2020 19:00 — forked from ashrithr/ssh_tunneling.md
ssh tunneling and port forwarding

###Single hop tunelling:

ssh -f -N -L 9906:127.0.0.1:3306 [email protected]

where,

  • -f puts ssh in background
  • -N makes it not execute a remote command
@sriharshaj
sriharshaj / mysql.database.yml
Created August 28, 2017 18:56 — forked from jwo/mysql.database.yml
Sample config/database.yml from Rails. Postgres, MySQL, and SQLite
#
# Install the MYSQL driver
# gem install mysql2
#
# Ensure the MySQL gem is defined in your Gemfile
# gem 'mysql2'
#
# And be sure to use new-style password hashing:
# http://dev.mysql.com/doc/refman/5.0/en/old-client.html
development:
@sriharshaj
sriharshaj / gist:e4976c1cb93e0bc64d34
Last active August 29, 2015 14:27
Gem update on Ubuntu

Cos I always forget it...

  1. sudo gem install rubygems-update
  2. sudo update_rubygems