Skip to content

Instantly share code, notes, and snippets.

View philographer's full-sized avatar
🎯
Focusing

Philographer philographer

🎯
Focusing
View GitHub Profile
@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 / 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 / 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 / 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 / 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.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 / 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 / venv.md
Last active April 17, 2017 16:48
python venv django

python virtual env django

# python 3용
$ sudo apt-get install python3-venv

# 가상 환경 만들고 장고 설치
$ python3 -m venv venv 
$ source venv/bin/activate
$ pip install django
@philographer
philographer / tmux.md
Last active April 17, 2017 17:16
Tmux Command List

Tmux Command List

기본

# command mode enter
$ ctrl + b

# 새 세션 생성
$ tmux new -s <session-name>
@philographer
philographer / readme.md
Last active April 18, 2017 01:16
ubuntu codec

ubuntu codec

  • avc1

    • mp4 => OpenCV: FFMPEG: tag 0x31637661/'avc1' is not supported with codec id 28 and format 'mp4 / MP4 (MPEG-4 Part 14)'
    • mov => Ok
  • mp4v

    • mp4 => tag 0x31435641/'AVC1' is not supported with codec id 28 and format 'mp4 / MP4 (MPEG-4 Part 14)' OpenCV: FFMPEG: fallback to use tag 0x00000021/'!???'
  • mov => FFMPEG: tag 0x31435641/'AVC1' is not supported with codec id 28 and format 'mov / QuickTime / MOV'