Skip to content

Instantly share code, notes, and snippets.

View philographer's full-sized avatar
๐ŸŽฏ
Focusing

Philographer philographer

๐ŸŽฏ
Focusing
View GitHub Profile
@philographer
philographer / keytool.md
Last active April 17, 2017 09:13
Ubuntu Android Keytool Setting

Ubuntu Android Keytool Setting

# 1. Keytool Path
# For Ubuntu
$ cd /usr/lib/jvm/java-1.8.0-openjdk-amd64/bin 

# For Mac
$ cd /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/bin
@philographer
philographer / opencv.md
Last active April 17, 2017 17:55
Ubuntu 16.04 install OpenCV 3 Python
# 1. ํŒจํ‚ค์ง€ ๋ชฉ๋ก์„ ๋ฐ›์•„์˜ค๊ณ 
sudo apt-get update 

# 2. ์ปดํŒŒ์ผ์‹œ ํ•„์š”ํ•œ ํŒจํ‚ค์ง€๋“ค ์„ค์น˜
sudo apt-get install build-essential checkinstall cmake git pkg-config yasm libtiff5-dev libjpeg-dev libjasper-dev libavcodec-dev libavformat-dev libswscale-dev libdc1394-22-dev libxine2-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev  libv4l-dev python-dev python-numpy libtbb-dev libgtk2.0-dev libfaac-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev libtheora-dev libvorbis-dev libxvidcore-dev x264 v4l-utils libopenexr-dev python-tk  libeigen3-dev libx264-dev

sudo add-apt-repository ppa:mc3man/gstffmpeg-keep
sudo apt-get update
sudo apt-get install ffmpeg gstreamer0.10-ffmpeg
@philographer
philographer / s3.md
Last active April 18, 2017 00:57
Python S3 Upload by Boto

Python S3 Upload by Boto

client = boto3.client('s3')
        bucket_name = 'api_reports'

        resp = client.put_object(
                                Bucket= bucket_name, 
                                Key= filename, 
                                Body= file,
 Expires= datetime.utcnow() + timedelta(days=7), )
@philographer
philographer / opencv-fourcc-on-mac-os-x.md
Created April 11, 2017 05:18 — forked from takuma7/opencv-fourcc-on-mac-os-x.md
OpenCV Video Writer on Mac OS X
@philographer
philographer / androidRelease.md
Created April 10, 2017 14:16
Android Release And Run Shell Script

Android Release And Run Shell Script

#!/bin/bash
# For Inbody Release Build and Run on your mobile phone.

# path
cd ./android

# gradle build for release and signing apk
@philographer
philographer / vimrc.md
Created April 8, 2017 03:30
Vim Last edited line save

/etc/vim/vimrc

  • ํŒŒ์ผ ๋งˆ์ง€๋ง‰์— ์•„๋ž˜ ๋‚ด์šฉ ์‚ฝ์ž…
 autocmd BufReadPost *
    \ if line("'\"") > 1 && line("'\"") <= line("$") |
    \ exe "normal! g`\"" |
    \ endif
@philographer
philographer / react_native.md
Last active April 10, 2017 07:24
React Native Command

React Native Command

  • ์žŠ์–ด๋ฒ„๋ฆด๊นŒ ์จ๋†“๋Š” ์ปค๋งจ๋“œ
$ react-native link
$ react-native run-ios # Debug cmd + d
$ react-native run-android # Debug cmd + m Reload Double R
$ android avd # android virtual device
@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: ์˜์ƒ๋ณด๋‹ค ์‹œ๊ฐ„์ด ๊ธด ๊ฒฝ์šฐ, ์˜์ƒ์ด ์•„๋‹Œ๊ฒฝ์šฐ
*
@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 / 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