Skip to content

Instantly share code, notes, and snippets.

@hoyin258
hoyin258 / postgres_setup.md
Last active April 26, 2016 14:45
Just a reminder for postgres setup

##Create a new user with super permission

su
sudo -u postgres psql
create user username with password 'password';
alter role username superuser createrole createdb replication;
create database projectname_production owner username;
@hoyin258
hoyin258 / git_setup.md
Last active July 7, 2022 21:34
VPS Git Server Setup

Create repository

VPS:

su
cd /var/www/
mkdir site
cd /var
mkdir repo && cd repo

Deploy Rails app to digitalocean with nginx, unicorn, capistrano & postgres

Create droplet of your liking (ubuntu 12.10 x32)

ssh to root in terminal with your server ip

ssh root@123.123.123.123

Add ssh fingerprint and enter password provided in email

Mac web developer apps

This gist's comment stream is a collection of webdev apps for OS X. Feel free to add links to apps you like, just make sure you add some context to what it does — either from the creator's website or your own thoughts.

— Erik