Skip to content

Instantly share code, notes, and snippets.

View RyanJeong's full-sized avatar
๐Ÿˆ

Ryan M. Jeong RyanJeong

๐Ÿˆ
View GitHub Profile
@RyanJeong
RyanJeong / ssh-forward-clipboard.md
Created October 13, 2024 05:26 — forked from dergachev/ssh-forward-clipboard.md
Forward your clipboard via SSH reverse tunnels

Exposing your clipboard over SSH

I frequently administer remote servers over SSH, and need to copy data to my clipboard. If the text I want to copy all fits on one screen, then I simply select it with my mouse and press CMD-C, which asks relies on m y terminal emulator (xterm2) to throw it to the clipboard.

This isn't practical for larger texts, like when I want to copy the whole contents of a file.

If I had been editing large-file.txt locally, I could easily copy its contents by using the pbcopy command:

@RyanJeong
RyanJeong / ssh-forward-clipboard.md
Created October 13, 2024 05:26 — forked from dergachev/ssh-forward-clipboard.md
Forward your clipboard via SSH reverse tunnels

Exposing your clipboard over SSH

I frequently administer remote servers over SSH, and need to copy data to my clipboard. If the text I want to copy all fits on one screen, then I simply select it with my mouse and press CMD-C, which asks relies on m y terminal emulator (xterm2) to throw it to the clipboard.

This isn't practical for larger texts, like when I want to copy the whole contents of a file.

If I had been editing large-file.txt locally, I could easily copy its contents by using the pbcopy command:

@RyanJeong
RyanJeong / replicate_vscode_extensions.md
Last active November 5, 2024 14:16
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 February 9, 2025 14:17
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 ์‚ฌ์šฉ๋ฒ•