Skip to content

Instantly share code, notes, and snippets.

View goddoe's full-sized avatar

Sungju Kim goddoe

View GitHub Profile
@goddoe
goddoe / curr script dir.txt
Created December 17, 2021 17:29
curr script dir
$ 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
@goddoe
goddoe / run.py
Last active December 8, 2021 06:42
mount nfs strorage inside docker container
# 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
@goddoe
goddoe / change_docker_storage.sh
Created November 6, 2021 11:55
change docker storage
$ sudo cat /etc/docker/daemon.json
{
"data-root": "/path/to/docker_storage"
}
@goddoe
goddoe / NaturalLanguageDatasets.md
Created November 6, 2021 07:14 — forked from josemarcosrf/NaturalLanguageDatasets.md
List of Language related open datasets. NLP NLU Dataset
@goddoe
goddoe / fix ubuntu memory leak.sh
Created July 29, 2021 05:34
fix ubuntu memory leak
# Memory Leak
$ sudo apt-get install libjemalloc1
$ export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.1
@goddoe
goddoe / cmake-tutorial.md
Created July 23, 2020 15:46 — forked from luncliff/cmake-tutorial.md
CMake 할때 쪼오오금 도움이 되는 문서

CMake를 왜 쓰는거죠?
좋은 툴은 Visual Studio 뿐입니다. 그 이외에는 전부 사도(邪道)입니다 사도! - 작성자

주의

  • 이 문서는 CMake를 주관적으로 서술합니다
  • 이 문서를 통해 CMake를 시작하기엔 적합하지 않습니다
    https://cgold.readthedocs.io/en/latest/ 3.1 챕터까지 따라해본 이후 기본사항들을 속성으로 익히는 것을 돕기위한 보조자료로써 작성되었습니다
@goddoe
goddoe / update_cmake.sh
Created July 23, 2020 15:19
update cmake
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
@goddoe
goddoe / fix.sh
Created July 6, 2020 04:32
Tmux fonts broken
export LANG=en_US.UTF-8
export LC_CTYPE=en_US.UTF-8
# or
tmux -u
@goddoe
goddoe / move window between sessions.txt
Created May 24, 2020 04:01
move window between sessions
(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).
@goddoe
goddoe / vim_tips.txt
Created May 20, 2020 06:36
Retrace your movements in file in backwards in vim
(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: