Skip to content

Instantly share code, notes, and snippets.

View philographer's full-sized avatar
🎯
Focusing

Philographer philographer

🎯
Focusing
View GitHub Profile
@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
@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 / 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 / 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 / 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 / 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 / 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 / nginx.conf
Last active March 7, 2017 04:57
Nginx 413 Request Entity Too Large Error and Solution
# Open Nginx Configuration file
vi /etc/nginx/nginx.conf
# Add Next line on below http code
client_max_body_size 2M; # Edit body size
@philographer
philographer / brew_install_ffmpeg.md
Last active June 22, 2017 13:51
brew install all option for ffmpeg

FFMPEG Install

ref: https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu

  • x264, xvid 제외
$ brew install ffmpeg --with-chromaprint --with-fdk-aac --with-fontconfig --with-freetype --with-frei0r --with-game-music-emu --with-libass --with-libbluray --with-libbs2b --with-libcaca --with-libebur128 --with-libgsm --with-libmodplug --with-libmodplug --with-libsoxr --with-libssh --with-libvidstab --with-libvorbis --with-libvpx --with-opencore-amr --with-openh264 --with-openjpeg --with-openssl --with-opus  --with-rtmpdump --with-rubberband --with-rubberband --with-schroedinger --with-sdl2 --with-snappy --with-speex --with-tesseract --with-theora --with-tools --with-two-lame --with-wavpack --with-webp --with-x265 --with-xz --with-zeromq --with-zimg --without-lame --without-qtkit --without-securetransport --without-x264 --without-xvid --HEAD
  • x264, xvid 포함
@philographer
philographer / splitVideoAndMergeWithMusic.js
Created March 21, 2017 07:51
Split Video And Merge With Music (Parameterize)
/**
* Created by yuhogyun on 2017. 3. 7..
*/
/**
* Todo:
* 1. 영상편집 효과(확대, 축소, fadein, fadeout, 자막, 메인그림 삽입)
* 2. 음악을 자동으로 골라주어야함 => 유져가 선택할 수 있도록 하는건 어떨까? NCS중에 선택.
* 3. Exception: 영상보다 시간이 긴 경우, 영상이 아닌경우
*