Skip to content

Instantly share code, notes, and snippets.

View rmsubekti's full-sized avatar

Rahmat Subekti rmsubekti

View GitHub Profile
@ratulcse10
ratulcse10 / ruby_on_rails_instruction
Created November 14, 2014 13:28
How to Instal Ruby on Rails With Xampp in ubuntu
Follow
https://gorails.com/setup/ubuntu/14.10
and Before MySql Add
So this
sudo apt-get install libmysqlclient-dev
gem install mysql2 -- --with-mysql-include=/opt/lampp/include --with-mysql-config=/opt/lampp/bin/mysql_config
then done
@Kartones
Kartones / postgres-cheatsheet.md
Last active April 12, 2024 17:44
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

Some interesting flags (to see all, use -h or --help depending on your psql version):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)