This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ cat test.sh | |
| #!/usr/bin/env bash | |
| SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" &> /dev/null && pwd) | |
| echo $SCRIPT_DIR; | |
| $ ./exps/test.sh | |
| /abs/path/to/exps | |
| $ cd exps |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Rerference: https://stackoverflow.com/questions/39922161/mounting-nfs-shares-inside-docker-container | |
| # Starting from docker 17.06, you can mount NFS shares to the container directly when you run it, without the need of extra capabilities | |
| # Method 1 | |
| export NFS_VOL_NAME=mynfs | |
| export NFS_LOCAL_MNT=/mnt/mynfs | |
| export NFS_SERVER=my.nfs.server.com | |
| export NFS_SHARE=/my/server/path | |
| export NFS_OPTS=vers=4,soft |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ sudo cat /etc/docker/daemon.json | |
| { | |
| "data-root": "/path/to/docker_storage" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Memory Leak | |
| $ sudo apt-get install libjemalloc1 | |
| $ export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.1 |
CMake를 왜 쓰는거죠?
좋은 툴은 Visual Studio 뿐입니다. 그 이외에는 전부 사도(邪道)입니다 사도! - 작성자
- 이 문서는 CMake를 주관적으로 서술합니다
- 이 문서를 통해 CMake를 시작하기엔 적합하지 않습니다
https://cgold.readthedocs.io/en/latest/ 3.1 챕터까지 따라해본 이후 기본사항들을 속성으로 익히는 것을 돕기위한 보조자료로써 작성되었습니다
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo apt remove cmake | |
| https://cmake.org/files/v3.18/cmake-3.18.0.tar.gz | |
| tar -zxvf cmake-3.18.0.tar.gz | |
| cd cmake-3.18.0 | |
| ./bootstrap | |
| make | |
| sudo make install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export LANG=en_US.UTF-8 | |
| export LC_CTYPE=en_US.UTF-8 | |
| # or | |
| tmux -u |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (Reference: https://stackoverflow.com/questions/3094946/move-window-between-tmux-clients , mb14) | |
| Yes, you can use the move-window command: | |
| move-window [-d] [-s src-window] [-t dst-window] | |
| (alias: movew) | |
| This is similar to link-window, except the window at src-window is moved to dst-window. | |
| where src-window and dst-window have the form: session:window.pane (session and window can be either name or id). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (reference: https://www.cyberciti.biz/faq/unix-linux-vim-go-back-to-last-cursor-position/) | |
| [a] '. : Jump to last modification line. | |
| [b] `. : Jump to exact spot in last modification line | |
| [c] CTRL-O : Retrace your movements in file in backwards. | |
| [d] CTRL-I : Retrace your movements in file in forwards. | |
| From the vim help files: |