Skip to content

Instantly share code, notes, and snippets.

View rmsubekti's full-sized avatar
💻
I'm on my computer.

Rahmat Subekti rmsubekti

💻
I'm on my computer.
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 24, 2025 10:22
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)
@dashohoxha
dashohoxha / install_wifi_access_point.sh
Last active June 7, 2024 18:03
How to setup a Wifi Access Point on Ubuntu 12.04 (or its derivatives).
#!/bin/bash
### Setup a wifi Access Point on Ubuntu 12.04 (or its derivatives).
### make sure that this script is executed from root
if [ $(whoami) != 'root' ]
then
echo "
This script should be executed as root or with sudo:
sudo $0
"