Skip to content

Instantly share code, notes, and snippets.

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

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

@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
@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;
ps aux | grep 'unicorn' | awk '{print $2}' | xargs sudo kill -9

#Nginx => Unicorn > Rails

##Nginx Setting

vim /etc/nginx/conf.d/default.conf
upstream app {
    # Path to Unicorn SOCK file, as defined previously
    server unix:/tmp/unicorn.myapp.sock fail_timeout=0;
@hoyin258
hoyin258 / Android export debug cert
Last active August 29, 2015 14:09
Get Android Debug Keystore command
Google Play:
keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore -list -v
Facebook:
keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64
@hoyin258
hoyin258 / gist:dd86cb4fd89a853296be
Created January 18, 2016 09:59
adb connect (Wifi)
adb tcpip 5555
adb connect <DEVICE_IP_ADDRESS>:5555
@hoyin258
hoyin258 / introrx.md
Created August 10, 2016 18:07 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@hoyin258
hoyin258 / self-software-development-flow.md
Last active December 19, 2019 14:05
Flow Char Mark down

Open->In Progress: Start development
In Progress->Blocked: Blocked by external
Blocked-->In Progress: Dependency resolved
In Progress->Development Done: Pending to release a build/\ndeploy to testable server
Development Done-->In Progress: Code review/ \n Marge failed
Development Done->QA Ready: Ready to testing
QA Ready-->Reopen: Failed
Reopen--&gt;In Progress: Restart the development