Skip to content

Instantly share code, notes, and snippets.

View philographer's full-sized avatar
🎯
Focusing

Philographer philographer

🎯
Focusing
View GitHub Profile
#!/usr/bin/python
import smbus
import time
import curses
bus = smbus.SMBus(1)
stdscr = curses.initscr()
@philographer
philographer / .vimrc
Created November 5, 2017 02:04
vimrc config
"https://github.com/tpope/vim-pathogen
execute pathogen#infect()
syntax on
filetype plugin indent on
" show existing tab with 4 spaces width
set tabstop=4
" when indenting with '>', use 4 spaces width
set shiftwidth=4
" On pressing tab, insert 4 spaces
@philographer
philographer / debug.md
Created July 16, 2017 18:08
Android DB(Sqlite) Debug

Android DB(Sqlite) Debug

adb exec-out run-as com.inbodyapp cat databases/inbodyapp.db > file

Postgres

Postgres

sudo passwd root => 관리자 패스워드 설정

sudo su postgres => postgres 라는 이름으로 로그인

Postgres

Postgres

sudo passwd root => 관리자 패스워드 설정

sudo su postgres => postgres 라는 이름으로 로그인

@philographer
philographer / macro.md
Created May 8, 2017 18:37
IPhone Object-C Simulator Macro

IPhone Object-C Simulator Macro

#if TARGET_IPHONE_SIMULATOR
    // Simulator
#else
    // Device
#endif

AWS Credentials and Config

~/.aws/credentials

[default]
aws_access_key_id=keykeykeykeykeykeykeykeykeykeykeykeykeykeykeykey
aws_secret_access_key=access_keyaccess_keyaccess_keyaccess_key

~/.aws/config

@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'

@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 / 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