GitHub์— SSH Key๋กœ ์ธ์ฆํ•˜๊ธฐ

Laste Updated: 2022.08.17 ๊นƒํ—ˆ๋ธŒ์—์„œ ์ •์ฑ…์ด ๋ณ€๊ฒฝ๋˜์–ด ๋น„๋ฐ€๋ฒˆํ˜ธ๋กœ ์ธ์ฆ์„ ๋”์ด์ƒ ์ง€์›ํ•˜์ง€ ์•Š๋Š”๋‹ค. ๋‹ค๋ฅธ ์ธ์ฆ ๋ฐฉ๋ฒ•์€ github์˜ ๋ณด์•ˆํ‚ค ๋ฐœ๊ธ‰๊ณผ ssh key๋ฅผ ๋“ฑ๋กํ•˜๋Š” ๋ฐฉ๋ฒ•์ด ์žˆ๋‹ค. ์—ฌ๊ธฐ์—์„œ๋Š” ssh key๋ฅผ ๋งŒ๋“ค์–ด github์— ๋“ฑ๋กํ•˜์—ฌ ์‚ฌ์šฉํ•˜๋Š” ๋ฐฉ๋ฒ•์ด๋‹ค. CREATE SSH KEY: enter, enter, enter rsa๋กœ ํ‚ค๋ฅผ ๋งŒ๋“ค ๊ฒฝ์šฐ ssh-keygen -t rsa -b 4096 -C $email ls ~/.ssh/id_rsa #private key ls ~/.ssh/id_rsa.pub #public key ed25519๋กœ ํ‚ค๋ฅผ ๋งŒ๋“ค ๊ฒฝ์šฐ (์ถ”์ฒœ: ๋ณด๋‹ค ๊ฐ„๊ฒฐํ•˜๊ณ  ๊ฐ•ํ™”๋œ ๋ฐฉ์‹) ssh-keygen -t ed25519 -C โ€œyourmail@mail.comโ€ ls ~/.ssh/id_ed25519 #private key ls ~/.ssh/id_ed25519.pub #public key ์ƒ์„ฑํ•œ pub ํ‚ค๋ฅผ GitHub์— ๋“ฑ๋กํ•˜๊ธฐ ์ƒ์„ฑํ•œ ํ‚ค ์ค‘ pubํ‚ค๋ฅผ ๋ณต์‚ฌํ•œ๋‹ค. ๊นƒํ—ˆ๋ธŒ์— ๋กœ๊ทธ์ธํ•˜์—ฌ ๋‹ค์Œ ๋ฉ”๋‰ด๋ฅผ ์ฐพ์•„ ํด๋ฆญ. |Github Home > Settings > SSH and GPG Keys > New SSH Key Title์— ์ œ๋ชฉ์„ ์ž…๋ ฅํ•˜๊ณ  โ€œAdd SSH Key"๋ฅผ ๋ˆŒ๋Ÿฌ ๋“ฑ๋ก ์™„๋ฃŒ. ํ„ฐ๋ฏธ๋„์—์„œ ์ƒˆ๋กœ์šด ํ”„๋กœํ† ์ฝœ(SSH ์ธ์ฆ๋ฐฉ์‹)์œผ๋กœ ์—ฐ๊ฒฐ ๊นƒํ—ˆ๋ธŒ์— ์„ฑ๊ณต์ ์œผ๋กœ ์—ฐ๊ฒฐ๋˜๋Š” ์ง€ ํ™•์ธ ssh -T git@github.com ๊นƒํ—ˆ๋ธŒ์— ์—ฐ๊ฒฐ ๋ฐ ์ €์žฅ์†Œ ๋“ฑ๋ก git remote set-url origin git@github.com:user_name/repo_name.git Comment ์ด ๋ฐฉ์‹์€ https๋ฐฉ์‹๋ณด๋‹ค ๊ฐ„๊ฒฐํ•œ URL๊ณผ ํŽธ๋ฆฌํ•œ ์‚ฌ์šฉ๋ฒ•์ด ์ข‹๋‹ค. ๋˜ํ•œ ๊นƒํ—ˆ๋ธŒ๋กœ๋ถ€ํ„ฐ ์ธ์ฆํ‚ค๋ฅผ ๋ฐ›๋Š” ๋ฐฉ์‹์€ ๊ธฐ๊ฐ„์ œํ•œ์ด ์žˆ๋‹ค. ๋‹ค๋ฅธ ์ปดํ“จํ„ฐ์—์„œ ์—ฐ๊ฒฐํ•  ๊ฒฝ์šฐ ssh ํ‚ค๋ฅผ ๋งŒ๋“ค์–ด pubํ‚ค๋ฅผ ๊นƒํ—ˆ๋ธŒ์— ์ถ”๊ฐ€ํ•ด์ฃผ๋ฉด ๋œ๋‹ค. Reference https://medium.com/ntust-aivc/instruction-for-adding-an-ssh-key-to-your-github-account-ubuntu20-04-3-lts-f9f7802ed734

2022-08-23 ยท (updated 2022-08-24) ยท 167 words

Hugo - Fast and flexible Static Site Generator written in Go

2022.09.08 - ๋งํฌ ์ˆ˜์ •, ์˜คํƒ€ ์ˆ˜์ • Install ubuntu ์—์„œ ํŒจํ‚ค์ง€๋กœ ์„ค์น˜ $ sudo apt install hugo $ hugo version Create a New SIte $ hugo new site my_site -f yml Add a Theme ์„ค์น˜์™€ ์„ค์ •์— ๋Œ€ํ•œ ์ž์„ธํ•œ ์‚ฌํ•ญ์€ hugo papermod๋ฅผ ์ฐธ๊ณ . PaperMod ํ…Œ๋งˆ ์„ค์น˜ $ cd my_site $ git clone https://github.com/adityatelange/hugo-PaperMod themes/PaperMod --depth=1 Update $ cd themes/PaperMod $ git pull Add theme set in config.yml $ echo 'theme: "PaperMod"' >> config.yml ๋˜๋Š” PaperMod ํ™ˆ์— ๊ฐ€์„œ config.yml์„ ๋ณต์‚ฌํ•œ๋‹ค. Sample Page ๋งŒ๋“ค๊ธฐ --- title: "My 1st post" date: 2020-09-15T11:30:03+00:00 # weight: 1 # aliases: ["/first"] tags: ["first"] author: "Me" # author: ["Me", "You"] # multiple authors showToc: true TocOpen: false draft: false hidemeta: false comments: false description: "Desc Text." canonicalURL: "https://canonical.url/to/page" disableHLJS: true # to disable highlightjs disableShare: false disableHLJS: false hideSummary: false searchHidden: true ShowReadingTime: true ShowBreadCrumbs: true ShowPostNavLinks: true ShowWordCount: true ShowRssButtonInSectionTermList: true UseHugoToc: true cover: image: "<image path/url>" # image path/url alt: "<alt text>" # alt text caption: "<text>" # display caption under cover relative: false # when using page bundles set this to true hidden: true # only hide on current single page editPost: URL: "https://github.com/<path_to_repo>/content" Text: "Suggest Changes" # edit text appendFilePath: true # to append file path to Edit link --- ## This is sample Page Hello World! ํŽ˜์ด์ง€ ์ƒ์„ฑ1: my_site/contents/sample.md๊ฐ€ ๋“ค์–ด๊ฐ„๋‹ค. $ hugo new --kind post sample.md ํŽ˜์ด์ง€ ์ƒ์„ฑ2: my_site/contents/posts/my-first-post.md๊ฐ€ ์ƒ์„ฑ๋œ๋‹ค. $ hugo new posts/my-first-post.md LANGUAGE CODE ์„ค์ • my_site/langcode.yaml ์„ ์ถ”๊ฐ€ํ•˜๊ณ  ์„ค์ •ํ•œ๋‹ค. - id: prev_page translation: "Prev" - id: next_page translation: "Next" - id: read_time translation: one: "1 min" other: "{{ .Count }} min" - id: words translation: one: "word" other: "{{ .Count }} words" - id: toc translation: "Table of Contents" - id: translations translation: "Translations" - id: home translation: "Home" - id: edit_post translation: "Edit" - id: code_copy translation: "copy" - id: code_copied translation: "copied!" Start the Hugo Server ์•„๋ž˜์™€ ๊ฐ™์ด ์„œ๋ฒ„๋ฅผ ์‹คํ–‰ํ•˜๊ณ  ๋ธŒ๋ผ์šฐ์ €์—์„œ http://localhost:1313 ์œผ๋กœ ํ™•์ธ ์‹คํ–‰ ์œ„์น˜๋Š” my_site/ ๋‚ด์—์„œ ํ•ด์•ผํ•œ๋‹ค. $ hugo server -D Links https://cristianpb.github.io/blog/vimwiki-hugo https://gohugo.io/getting-started/quick-start/ https://themes.gohugo.io/themes/hugo-papermod/

2022-08-23 ยท (updated 2022-09-08) ยท 327 words

Jekyll

์†Œ๊ฐœ ๊นƒํ—ˆ๋ธŒ์—์„œ ์ œ๊ณตํ•˜๋Š” ๊นƒํŽ˜์ด์ง€ github io์— ์›น ๋ธ”๋กœ๊ทธ ํ™˜๊ฒฝ์„ ๋งŒ๋“ค ์ˆ˜ ์žˆ๋Š” ํ”„๋กœ์ ํŠธ์ด๋‹ค. ํ˜„์žฌ ๋‚˜๋Š” hugo๋กœ ์ „ํ™˜ํ•˜์˜€๋‹ค. ์ด ๋ฌธ์„œ๋Š” ๋” ์ด์ƒ ์—…๋ฐ์ดํŠธ ๋˜์ง€ ์•Š์„ ๊ฒƒ์ด๋‹ค. ํ˜น์‹œ ์ด ๋ฌธ์„œ๋ฅผ ๋ณด๋Š” ๋ถ„์„ ์œ„ํ•˜์—ฌ ๊ฐ€์žฅ ์ž˜ ์„ค๋ช…ํ•ด ๋†“์€ ๊ณณ์„ ์†Œ๊ฐœํ•œ๋‹ค. https://devinlife.com/howto/ Install sudo apt update sudo apt install ruby ruby-dev cat>>EOF >> ~/.bashrc # Ruby exports export GEM_HOME=$HOME/gems export PATH=$HOME/gems/bin:$PATH EOF source ~/.bashrc gem install jekyll bundler ๊ฐœ๋ฐœ ์‚ฌ์ดํŠธ ๋งŒ๋“ค๊ธฐ ํ”„๋กœ์ ํŠธ ์ƒ์„ฑ ํ›„ ์„œ๋ฒ„ ์‹œ์ž‘ jekyll new www cd www/ bundle exec jekyll serve jekyll ์„œ๋ฒ„ ์‹คํ–‰ ์—๋Ÿฌ์‹œ cd www/ echo 'gem "webrick"' >> Gemfile bundle install bundle exec jekyll serve --host 127.0.0.1 --port 4000 ๋ธŒ๋ผ์šฐ์ €์—์„œ ๋‹ค์Œ URL๋กœ ํ™•์ธ http://127.0.0.1:4000 ํด๋” ๋‚ด์˜ ๋ณ€๊ฒฝ์€ ์ž๋™ ์—…๋ฐ์ดํŠธ๋œ๋‹ค. ๊ทธ๋Ÿฌ๋‚˜ _config.yml์˜ ๊ฒฝ์šฐ๋Š” jekyll serve๋ฅผ ์žฌ์‹คํ–‰ ํ•ด์ฃผ์–ด์•ผ ํ•œ๋‹ค. ํ…Œ๋งˆ ํ”„๋กœ์ ํŠธ ์„ค์น˜ minimal mistakes Links https://devinlife.com/howto Jekill ํ™ˆํŽ˜์ด์ง€

2022-08-23 ยท (updated 2022-08-24) ยท 129 words

KIME (Korean IME) ํ•œ๊ธ€ ์ž…๋ ฅ๊ธฐ

์„ค์น˜ ๋ฐ ์„ค์ • ์•„๋ž˜ํ•œ๊ธ€ ํ•œ์ปด์˜คํ”ผ์Šค๋Š” ๋ฆฌ๋ˆ…์Šค์šฉ 2020 ๋ฒ ํƒ€๋ฒ„์ „์ด ๋‚˜์™€์žˆ๋‹ค. ๊ทธ๋Ÿฌ๋‚˜ ๊ธฐ์กด ํ•œ๊ธ€์ž…๋ ฅ๊ธฐ๋กœ๋Š” ํ•œ๊ธ€์ž…๋ ฅ์— ๋งŽ์€ ๋ฌธ์ œ๊ฐ€ ์žˆ๋‹ค. kime์€ ์ด ๋ฟ๋งŒ ์•„๋‹ˆ๋ผ wine๋“ฑ์—์„œ ํ•œ๊ธ€์ž…๋ ฅ ๋ฌธ์ œ ๋“ฑ์„ ํ•ด๊ฒฐํ•  ์ˆ˜ ์žˆ๋Š” ๋ฐฉ๋ฒ•์ด๋‹ค. kime์˜ ์žฅ์ ์€ ๋งค์šฐ ๊ฐ„๊ฒฐํ•˜๊ณ  ์‹ฌํ”Œํ•˜๋‹ค๋Š” ๋ฐ ์žˆ๋‹ค. ๋˜ ๋‹ค๋ฅธ ์žฅ์ ์€ vim ์‚ฌ์šฉ์‹œ ์ž…๋ ฅ๋ชจ๋“œ์—์„œ ํ•œ๊ธ€ ์‚ฌ์šฉ ์ค‘ esc๋กœ ๋ช…๋ น๋ชจ๋“œ๋กœ ๋“ค์–ด๊ฐ€๊ฒŒ ๋˜๋ฉด ์˜๋ฌธ์œผ๋กœ ์ž๋™ ๋ณ€ํ™˜๋œ๋‹ค. ํ•œ์˜ ์ „ํ™˜์˜ ์ˆ˜๊ณ ๊ฐ€ ์ค„์–ด๋“ ๋‹ค. # install sudo dpkg -i kime_debian-buster_v2.5.3_amd64.deb # setup sudo mkdir -p /etc/dpkg/kime sudo cp /usr/share/doc/kime/default_config.yaml /etc/xdg/kime/config.yaml sudo vim /etc/xdg/kime/config.yaml #... #golbal_hotkeys: # Super-Space (์ดํ•˜์—ฌ์„ฏ์ค„ ๋ณต์‚ฌํ•ด์„œ ๋ฐ”๋กœ ์œ„์— ๋ถ™์ด๊ณ  S-Space๋กœ ์ˆ˜์ •) im-config -n kime sudo reboot # ์žฌ๋ถ€ํŒ… ํ›„ ๋กœ๊ทธ์ธ $ kime-check ํ•œ์ปด์˜คํ”ผ์Šค 2020 ๋ฒ ํƒ€ ๋ฆฌ๋ˆ…์Šค ๋ฒ„์ „ ํ•œ๊ธ€์ž…๋ ฅ์„ ์œ„ํ•œ ์„ค์ • $ wget https://github.com/Riey/kime/releases/download/v2.5.2/libkime-qt-5.11.3.so $ sudo cp libkime-qt-5.11.3.so /opt/hnc/hoffice11/Bin/qt/plugins/platforminputcontexts/ ์ฐธ๊ณ  ํ•œ๊ธ€์ด ์•ˆ๋˜์–ด ์ด๊ฒƒ์ €๊ฒƒ ๋งŒ์ง€๋‹ค๋ณด๋ฉด ๋ฌธ์ œ๊ฐ€ ์ƒ๊ธด๋‹ค. ๋‹ค์Œ์˜ ์ˆœ์„œ๋Œ€๋กœ ์„ค์ •ํ•œ๋‹ค. OS ์–ธ์–ดํ™˜๊ฒฝ์„ en์œผ๋กœ ์œ ์ง€ํ•˜๋Š” ๊ฒƒ์ด ๊ฐ€์žฅ ์ข‹๋‹ค. ubuntu ์„ค์น˜๋ฅผ ํ•œ๊ธ€๋กœ ์ง„ํ–‰ํ•˜๋ฉด ํ•„์š”ํ•œ ํฐํŠธ๋‚˜ ์ž…๋ ฅ์„ค์ •์ด ๋œ๋‹ค. ์ตœ์ดˆ ๋กœ๊ทธ์ธํ•ด์„œ ์„ค์ •>์ง€์—ญ&์–ธ์–ด๋กœ ๋“ค์–ด๊ฐ€๋ฉด ์•ˆ๋‚ดํ•˜๋Š” ํ•„์š”ํŒจํ‚ค์ง€๋ฅผ ์„ค์น˜ํ•œ๋‹ค. kime ํŒจํ‚ค์ง€๋ฅผ ์„ค์น˜ํ•œ๋‹ค. (sudo dpkg -i kime-xxx.deb) settings> keybord > input sources์—๋Š” English(US)์™€ Korean๋งŒ ๋“ฑ๋กํ•ด๋‘”๋‹ค. settings> Region&Language > Manage Installed Languages > kime์œผ๋กœ ๋ณ€๊ฒฝ rebootํ›„ ํ™•์ธ ์œ„์—์„œ ํ‚ค๋ณด๋“œ์—์„œ Korean์„ ์„ค์ •ํ•ด์ฃผ์–ด์•ผ indicator ์•„์ด์ฝ˜์ด ๋ณด์ธ๋‹ค. kime์œผ๋กœ ๋ณ€๊ฒฝํ•˜๋ฉด firefox snap์—์„œ ๋™์ž‘ํ•˜์ง€ ์•Š์œผ๋ฏ€๋กœ firefox ์žฌ์„ค์น˜ ์ž‘์—… REFERENCE Github Kime ์„ค์น˜ ์„ค์น˜2 ์„ค์น˜3 ์„ค์น˜4

2022-08-23 ยท (updated 2022-08-24) ยท 193 words

Markdown Viewer Webext

firefox: markdown viewer ํ”Œ๋Ÿฌ๊ทธ์ธ firefox์˜ ํ”Œ๋Ÿฌ๊ทธ์ธ์œผ๋กœ ๋กœ์ปฌ๋‚ด์—์„œ ๋งˆํฌ๋‹ค์šด์„ html ํŽ˜์ด์ง€๋กœ ๋ณด์—ฌ์ค€๋‹ค. vim๊ณผ ์—ฐ๋™ํ•˜์—ฌ ๋งˆํฌ๋‹ค์šดํŒŒ์ผ์„ ์ž‘์„ฑํ•˜๊ณ  ์‹ค์‹œ๊ฐ„์œผ๋กœ ๋ณผ ๋•Œ ์œ ์šฉํ•˜๋‹ค. Laste Updated: 2022.08.11 ์„ค์น˜ ๋ฐ ์„ค์ • firefox plugin์€ markdown viewer Webext ์ด๋‹ค. ์ด๋ฅผ ์„ค์น˜. cat <<EOF > ~/.local/share/mime/packages/text-markdown.xml <?xml version="1.0"?> <mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'> <mime-type type="text/plain"> <glob pattern="*.md"/> <glob pattern="*.mkd"/> <glob pattern="*.mkdn"/> <glob pattern="*.mdwn"/> <glob pattern="*.mdown"/> <glob pattern="*.markdown"/> </mime-type> </mime-info> EOF update-mime-database ~/.local/share/mime ํ™•์ธ ํ…Œ์ŠคํŠธ ๋ฐฉ๋ฒ•1) ๋ธŒ๋ผ์šฐ์ €์—์„œ ๋กœ์ปฌ์— ์žˆ๋Š” md ํŒŒ์ผ์„ ๋ถˆ๋Ÿฌ์„œ ์ž˜ ๋™์ž‘ํ•˜๋Š” ์ง€ ํ™•์ธ. ...

2022-08-23 ยท 160 words