Skip to content

Instantly share code, notes, and snippets.

View moltak's full-sized avatar
🎯
Focusing

KyungHo Jung moltak

🎯
Focusing
View GitHub Profile
@moltak
moltak / multiple_stdin.sh
Created November 18, 2016 11:58
Write multiple stdin string data
#!/bin/bash
python3 input.py <<STDIN -o other —options
first
second
STDIN
@moltak
moltak / input.py
Created November 18, 2016 12:05
Read multiple stdin string data
a = input()
b = input()
print('a={0}, b={1}'.format(a, b))
@moltak
moltak / tecyle_scheme.json
Last active January 14, 2017 01:42
tecyle_scheme.json
{
"Teracode": {
"district": "강남구",
"name": "name",
"code": "code",
"position": {
"lng": "lng",
"lat": "lat"
}
},
// MainActivity.java 100
private void subscribe() {
subscription = subject
.filter(i -> this.isCanBlow)
.filter(i -> {
Log.d("BLOW", String.valueOf(i));
final int BASE_THRESHOLD = 60;
return i >= BASE_THRESHOLD * 3; // 이곳을 수정하시면 됩니다.
})
setw -g mode-keys vi
set -g mouse on
bind m set -g mouse on
bind M set -g mouse off
# Smart pane switching with awareness of Vim splits.
# See: https://github.com/christoomey/vim-tmux-navigator
is_vim="ps -o state= -o comm= -t '#{pane_tty}' \
| grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'"
bind-key -n C-h if-shell "$is_vim" "send-keys C-h" "select-pane -L"
"Plugin: vim-plug https://github.com/junegunn/vim-plug"
call plug#begin('~/.vim/plugged')
Plug 'vim-scripts/indentpython.vim'
Plug 'Valloric/YouCompleteMe'
Plug 'scrooloose/nerdtree'
Plug 'jistr/vim-nerdtree-tabs'
Plug 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'}
Plug 'leafgarland/typescript-vim'
Plug 'pangloss/vim-javascript'
Plug 'vim-syntastic/syntastic'
@moltak
moltak / ffmpeg_hls_for_audio.sh
Created March 11, 2021 00:55
ffmpeg hls for audio
#!/bin/sh
BASE_URL="https://hls-test-bucket-will-be-removed.s3.ap-northeast-2.amazonaws.com/test3/"
FILE_KEY=file.key
FILE_KEY_INFO=file.keyinfo
openssl rand 16 > $FILE_KEY
echo $BASE_URL$FILE_KEY > $FILE_KEY_INFO
echo $FILE_KEY >> $FILE_KEY_INFO
echo $(openssl rand -hex 16) >> $FILE_KEY_INFO