Skip to content

Instantly share code, notes, and snippets.

hoyin hoyin258

Block or report user

Report or block hoyin258

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Jenkins MacOS
Installation Jenkins:
brew update && brew install jenkins
Java Runtime Environment:
brew cask install java
Config Launch:
ln -sfv /usr/local/opt/jenkins/*.plist ~/Library/LaunchAgents
sudo cp -fv /usr/local/opt/jenkins/*.plist /Library/LaunchDaemons
sudo chown `whoami` /Library/LaunchDaemons/homebrew.mxcl.jenkins.plist
View Software development flow 2017-8-24
```sequence
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-->In Progress: Restart the development
@hoyin258
hoyin258 / introrx.md
Created Aug 10, 2016 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
View introrx.md
View gist:dd86cb4fd89a853296be
adb tcpip 5555
adb connect <DEVICE_IP_ADDRESS>:5555
@hoyin258
hoyin258 / Android export debug cert
Last active Aug 29, 2015
Get Android Debug Keystore command
View Android export debug cert
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
View nginx_unicorn.md

#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;
View kill_unicorn
ps aux | grep 'unicorn' | awk '{print $2}' | xargs sudo kill -9
@hoyin258
hoyin258 / postgres_setup.md
Last active Apr 26, 2016
Just a reminder for postgres setup
View postgres_setup.md

##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 May 31, 2018
VPS Git Server Setup
View git_setup.md

Create repository

##VPS:

su
cd /var/www/
mkdir site
cd /var
mkdir repo && cd repo
View digitalocean.md

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

You can’t perform that action at this time.