Skip to content

Instantly share code, notes, and snippets.

@RyanJeong
RyanJeong / replicate_vscode_extensions.md
Last active July 16, 2024 09:13
Replicate the VSCode extensions installed on server A to server B
  1. Connect to server A and extract the list of installed extensions:
ssh user@a_server
code --list-extensions > extensions-list.txt
  1. Transfer the extensions list file to server B:
@RyanJeong
RyanJeong / semantic-commit-messages.md
Created February 21, 2022 08:23 — forked from joshbuchea/semantic-commit-messages.md
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@RyanJeong
RyanJeong / macos_vscode.md
Last active November 25, 2021 09:07
macOS vscode key binding
[
    {
      "key": "cmd+;",
      "command": "terminal.focus",
      "when": "editorFocus"
    },
    {
      "key": "cmd+;",
      "command": "workbench.action.focusActiveEditorGroup",
@RyanJeong
RyanJeong / UBUNTU.md
Last active July 5, 2024 18:57
Ubuntu(18.04) Default Setting

Initial setting before:

  1. Open a terminal(Ctrl + Alt + T)
  2. (Opt.) Replace {kr|us}.archive.ubuntu.com with mirror.kakao.com
$ sudo vi /etc/apt/sources.list
:%s/{kr|us|.archive.ubuntu.com/mirror.kakao.com/
  1. Type sudo apt update && sudo apt upgrade -y

Mount external HDD

@RyanJeong
RyanJeong / WSL_VIM_SETTING.md
Created July 24, 2020 02:29
Windows Subsystem Linux - Make VIM use the clipboard?

Put the following in your .vimrc

" WSL yank support
let s:clip = '/mnt/c/Windows/System32/clip.exe'  " change this path according to your mount point
if executable(s:clip)
    augroup WSLYank
        autocmd!
        autocmd TextYankPost * if v:event.operator ==# 'y' | call system(s:clip, @0) | endif
    augroup END
endif
@RyanJeong
RyanJeong / wget.md
Created July 1, 2020 04:08
Use wget to download an entire website
$ wget -mk http://site.com/directory
@RyanJeong
RyanJeong / MAKE.md
Last active January 9, 2020 13:15
make

make 사용법

Make Utility

make - GNU make utility to maintain groups of programs

  • The purpose of the make utility is to determine automatically which pieces of a large program need to be recompiled, and issue the commands to recompile them.

GNU make는 보통 GNUmakefile, Makefile, makefile 중에서 하나가 있으면 그 파일을 읽게 된다. 하지만 일반적으로 Makefile을 추천하게 되는데, 그 이유는 우선 GNUmakefile은 기존의 make에서 인식을 못한다는 단점이 있고, makefile은 보통 소스 파일에 묻혀서 잘 안보이게 되기 때문이다.

Makefile 구조

Makefile은 기본적으로 아래와 같이 목표(target), 의존 관계(dependency), 명령(command)의 세개로 이루어진 기분적인 규칙(rule)들이 계속적으로 나열되어 있다고 봐도 무방하다. make가 지능적으로 파일을 갱신하는 것도 모두 이 간단한 규칙에 의하기 때문이다.

@RyanJeong
RyanJeong / AUTOTOOLS.md
Created January 9, 2020 09:37
Autotools

AUTOTOOLS 사용법

@RyanJeong
RyanJeong / SITES.md
Created January 9, 2020 09:36
Programming reference sites
@RyanJeong
RyanJeong / CCMINER.md
Created December 31, 2019 08:16
Litecoin GPU Mining on Linux
  1. Install VGA driver and CUDA
  2. Edit the .bashrc file from the root user and add the following lines at its end.
$ vi /root/.bashrc

...

export LD_LIBRARY_PATH=/usr/local/cuda-9.1/lib64:$LD_LIBRARY_PATH
export PATH=/usr/local/cuda-9.1/bin:$PATH