Skip to content

Instantly share code, notes, and snippets.

View philographer's full-sized avatar
🎯
Focusing

Philographer philographer

🎯
Focusing
View GitHub Profile
@philographer
philographer / hook.md
Last active April 14, 2017 06:27
Android Build Hook

Android Build Hook Shell

#!/bin/bash

LOG_PATH= # Need to fill
APK_PATH= # Need to fill

# Delete APK File
rm -rf $APK_PATH
@philographer
philographer / android_build.sh
Last active April 17, 2018 18:35
Android Build, SDK For Ubuntu 16.04
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-8-jre
# install openjdk
sudo apt-get install openjdk-8-jdk
# install unzip
sudo apt-get install unzip
@philographer
philographer / nginx.conf
Created February 15, 2017 20:01
NGINX Webhook Configuration
##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# http://wiki.nginx.org/Pitfalls
# http://wiki.nginx.org/QuickStart
# http://wiki.nginx.org/Configuration
#
# Generally, you will want to move this file somewhere, and start with a clean
# file but keep this around for reference. Or just disable in sites-enabled.
#
@philographer
philographer / hook.md
Last active April 14, 2017 06:29
Github Node.js hook bash script

Github hook bash script(Node.js)

#!/bin/bash

$ cd /home/ubuntu/futsal-node # replace futsal-node to your server directory
$ git reset --hard HEAD^
$ git pull
$ pm2 stop futsal # replace futsal to your pm2 project name 
$ pm2 start futsal # replace futsal to your pm2 project name 
@philographer
philographer / hook.md
Last active April 17, 2017 17:17
Github hook node.js

Prerequisites

$ sudo apt-get update
$ sudo apt-get install nodejs
$ sudo apt-get install npm
$ sudo npm install -g pm2

1. Open 3100 port on nginx
2. make a hook.sh like https://gist.github.com/yoohoogun114/f20e95eb38c7ab4f7982037d5deef84c
ref: https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-16-04
@philographer
philographer / nginx.conf
Last active February 24, 2017 09:52
NGINX Proxy 3000 => 80 (path: /etc/nginx/ningix.conf)
##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# http://wiki.nginx.org/Pitfalls
# http://wiki.nginx.org/QuickStart
# http://wiki.nginx.org/Configuration
#
# Generally, you will want to move this file somewhere, and start with a clean
# file but keep this around for reference. Or just disable in sites-enabled.
#
@philographer
philographer / UML.swift
Created August 7, 2016 08:45
SW Maestro 7기 연수생 2차 Front End 과제
//
// main.swift
// UML
//
// Created by 유호균 on 2016. 8. 6..
// Copyright © 2016년 timeros. All rights reserved.
//
import Foundation