- reference: https://askubuntu.com/questions/12917/how-to-send-mail-from-the-command-line
- author: Marco Ceppi (https://askubuntu.com/users/41/marco-ceppi)
sudo apt-get install mailutils| alias sshtunncml="sshpass -p{PASSWD} ssh -o StrictHostKeyChecking=no -p {SSH_PORT} -N -f -L localhost:{PORT}:localhost:{PORT} {ID}@{HOST}" | |
| # Run on XQuartz. | |
| alias sshxncml="sshpass -p{PASSWD} ssh -o StrictHostKeyChecking=no -p {SSH_PORT} -X {ID}@{HOST}" |
| # Reference: http://teohm.com/blog/shortcuts-to-move-faster-in-bash-command-line/ | |
| Basic moves | |
| Move back one character. Ctrl + b | |
| Move forward one character. Ctrl + f | |
| Delete current character. Ctrl + d | |
| Delete previous character. Backspace | |
| Undo. Ctrl + - | |
| Moving faster | |
| Move to the start of line. Ctrl + a |
| import matplotlib | |
| import matplotlib.font_manager | |
| print([f.name for f in matplotlib.font_manager.fontManager.ttflist if 'Nanum' in f.name]) | |
| # Select one of Korean fonts | |
| # And set like this. | |
| plt.rcParams['font.family'] = 'NanumBarunGothic' |
| echo "$(dirname "$(dirname $PWD)")" |
| (Reference: https://robots.thoughtbot.com/vim-splits-move-faster-and-more-naturally) | |
| The basics | |
| Create a vertical split using :vsp and horizontal with :sp. | |
| By default, they duplicate the current buffer. This command also takes a filename: | |
| :vsp ~/.vimrc | |
| You can specify the new split height by prefixing with a number: |
| One way is to use patterns with the -I and -P switches: | |
| tree -f -I "bin|unitTest" -P "*.[ch]|*.[ch]pp." your_dir/ | |
| The -f prints the full path for each file, and -I excludes the files in the pattern here separated by a vertical bar. The -P switch inlcudes only the files listed in the pattern matching a certain extension. |
sudo apt-get install mailutils| # -H: Always print filename headers with output lines. | |
| # -I: Ignore binary file. | |
| # -r: Recursively search subdirectories listed. | |
| grep -H -I -r 'what_you_search' * | less |
Markdown은 텍스트 기반의 마크업언어로 2004년 존그루버에 의해 만들어졌으며 쉽게 쓰고 읽을 수 있으며 HTML로 변환이 가능하다. 특수기호와 문자를 이용한 매우 간단한 구조의 문법을 사용하여 웹에서도 보다 빠르게 컨텐츠를 작성하고 보다 직관적으로 인식할 수 있다. 마크다운이 최근 각광받기 시작한 이유는 깃헙(https://github.com) 덕분이다. 깃헙의 저장소Repository에 관한 정보를 기록하는 README.md는 깃헙을 사용하는 사람이라면 누구나 가장 먼저 접하게 되는 마크다운 문서였다. 마크다운을 통해서 설치방법, 소스코드 설명, 이슈 등을 간단하게 기록하고 가독성을 높일 수 있다는 강점이 부각되면서 점점 여러 곳으로 퍼져가게 된다.