Git tips
Fri, Jun 7, 2019
Get repository status git remote show origin Adding submodules git clone git@github.com:YOUR_GIT_ID/parent.git cd parent git submodule add git@github.com:YOUR_GIT_ID/child.git child git commit -m "submodule is added." git push Updating submodule on parent git submodule init git submodule update Global account $ git config --global user.
...
➦
Docker tips
Fri, Jun 7, 2019
Commands docker info docker logs [name] docker exec -it [name] bash My favorites on Windows Ubuntu 18.04
docker run -dit --name ubt -v e:/gohome:/gohome ubuntu:18.04 bash OpenJDK 8
...
➦
1. Kafka 설치를 위한 Docker 환경구성
Thu, Jun 6, 2019
설치 버전 Docker Ubuntu 18.04
Kafka 2.2 [Download] Zookeeper 3.4.13 OpenJDK 11.0.3
Docker 컨테이너 구성 구분 호스트명 IP Zookeeper zoo1 172.
...
➦
Markdown 의 미학
Thu, Jun 6, 2019
이전부터 Markdown 문서를 써오긴 했다. Github 에 코드를 올리면서 README.md 파일을 만들어야 했기에 반강제(?)로 써야만 했고, 그래서 심플하게만(두~세줄 정도) 사용했었다. 그런데 최근에, 회사에서 코드리뷰 자료나 기능 자료들을 Markdown 으로 작성해봤는데, 생각과 표현이 굉장히 명확하게 정리되는 느낌을 받았다.
...
➦
Pseudo-random permutation of the integers in Go
Wed, Jun 5, 2019
package main import ( "fmt" "math/rand" "time" ) func main() { rand.Seed(time.Now().UnixNano()) p := rand.Perm(100) for _, r := range p[:10] { fmt.Println(r) } }
Bash tips
Mon, Mar 18, 2019
Get current directory DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" How to count number of files in each directory du -a | cut -d/ -f2 | sort | uniq -c | sort -nr
devplayg
Mon, Mar 18, 2019
What makes me high Music, Coding, Walking, Thinking, Playing, Eating
What makes me down Life without what makes me high
Please tell me who you are. iam := []byte(”devplayg”) Software engineer, especially Gopher What’ve you been for a long time?
...
➦
2018 Music Awards
Sun, Mar 3, 2019
Bruno Mars - 24k Magic
Bruno Mars - Thats What I Like
Bruno Mars - The Lazy Song (Single Version)
Eric Clapton - I Shot The Sheriff (Live)
Fitz & The Tantrums - HandClap
...
➦
FFmpeg tips
Tue, Jan 22, 2019
A complete, cross-platform solution to record, convert and stream audio and video. https://ffmpeg.org/
Concatenating video files ffmpeg -f concat -i list.txt -c copy output.mp4 list.txt
file /tmp/file1.mp4 file /tmp/file2.
...
➦
Design patterns
Mon, Nov 21, 2016
Design Patterns in GOF Factory Factory Method Abstract Factory Builder Singleton Prototype
Adapter
Proxy
Facade
Decorator
Bridge
Flyweight
Composite
Strategy
...
➦