lua

Basic lua intro - lua์†Œ๊ฐœ: ์™œ lua์ธ๊ฐ€ lua install - lua ์„ค์น˜ํ•˜๊ธฐ, hello world lua interactive - ๋ฃจ์•„ ์ธํ„ฐ์—‘ํ‹ฐ๋ธŒ lua quick quide - lua ๊ธฐ๋ณธ ๋ฌธ๋ฒ• ๊ฐ€์ด๋“œ Lua Modules luarocks - lua ํ™•์žฅ ๋ชจ๋“ˆ ํŒจํ‚ค์ง€ ๊ด€๋ฆฌ luastatic - lua ์ปดํŒŒ์ผ ๋‹จ๋… ์‹คํ–‰ํŒŒ์ผ ๋งŒ๋“ค๊ธฐ lua-csv - lua csv ๋ชจ๋“ˆ lua-json - lua json ๋ชจ๋“ˆ LuaJit luaJit - LuaJit, Just in Time Compiler luajit lfs-ffi - LuaJit lua file system ๋ชจ๋“ˆ luafun - LuaJit Functions Module (ํ™•์žฅ๋ชจ๋“ˆ) Graphic & Game lua love - lua love 2D ๊ฒŒ์ž„ ๋งŒ๋“ค๊ธฐ gimp-glua - gimp์˜ ์ด๋ฏธ์ง€ ํ”„๋กœ์„ธ์‹ฑ ํ”Œ๋Ÿฌ๊ทธ์ธ IoT nodemcu - Lua base firmware esp32, esp8266 Science & Math gsl shell - Luajit GNU Scientific Library Shell WWW openresty - ์›น๊ฐœ๋ฐœ ์ธํ„ฐํŽ˜์ด์Šค: luajit + nginx luakit - A fast, extensible, and customizable web browser ์‘์šฉ lua pi - Raspberry Pi์—์„œ Lua ๊ฐœ๋ฐœ ๋ฐ ์„ค์น˜ ํ™˜๊ฒฝ ๋งŒ๋“ค๊ธฐ nvim lua - nvim์„ lua๋กœ ์„ค์ • ๋ฐ ๊ด€๋ฆฌํ•˜๊ธฐ alpine lua language server - Lua Language Server Install Links Lua Sample Code https://lua-users.org/wiki/SampleCode Awesome Luahttps://github.com/LewisJEllis/awesome-lua Awesome Restyhttps://github.com/LewisJEllis/awesome-lua

2022-08-27 ยท 166 words

bash-it

๋‹ค์Œ ๋งํฌ ์ฐธ์กฐ https://www.linuxfordevices.com/tutorials/linux/fancify-bash-terminal-with-bash-it

2022-08-26 ยท 4 words

Bash

Tools, Functions bash it : zsh์ฒ˜๋Ÿผ ์ด์˜๊ฒŒ, ๋‹ค์–‘ํ•œ ๊ธฐ๋Šฅ์œผ๋กœ ๊พธ๋ฏธ๊ธฐ bash color : ํ„ฐ๋ฏธ๋„ ์ปฌ๋Ÿฌ ์ถœ๋ ฅ ๋ฐ ์ œ์–ด Bash Programming bash read lines : ํŒŒ์ผ์—์„œ ํ•œ ์ค„์”ฉ ๋ผ์ธ์„ ์ฝ์–ด ์˜ค๊ธฐ Links bash config files https://floatingoctothorpe.uk/2018/bash-config-and-where-it-lives.html

2022-08-26 ยท 35 words

Bash readlines how to

Method 1 for read -r line do echo $line done < input_file.txt > out_file.txt Method 1 file=$(cat input_file.txt) for line in $file do echo $line done < input_file.txt > out_file.txt Links https://www.geeksforgeeks.org/bash-scripting-how-to-read-a-file-line-by-line/

2022-08-26 ยท 32 words

vim-devicons

์†Œ๊ฐœ vim์ด ํ„ฐ๋ฏธ๋„์—์„œ ๋™์ž‘ํ•˜๋ฏ€๋กœ ์•„์ด์ฝ˜์„ ํ‘œ์‹œํ•˜๊ธฐ๊ฐ€ ์ข‹์ง€ ์•Š๋‹ค. ์ƒ‰๊น”๊ณผ ๋ชจ์–‘์„ ๋ฏธ๋ คํ•˜๊ฒŒ ๋ฐ”๊พธ์–ด ์ค€๋‹ค. ๊ฐœ์ธ์ ์ธ ๊ด€์ ์—์„œ ๋ณด๋ฉด ์ƒ๋‹นํžˆ ๋งค๋ ฅ์ ์ด๋‹ค. ์‚ญ๋ง‰ํ•œ ๊ฒ€์€ ๋ฐฐ๊ฒฝ์— ๊ธ€์”จ๋งŒ ๋ณด์ด๋‹ค๊ฐ€ ๊ฝƒ์ด ํ”ผ๊ณ  ๊ทธ๋ฆผ์ด ์—ฌ๊ธฐ ์ €๊ธฐ ์žˆ๋Š” ๋А๋‚Œ์ด๋‹ค. ๊ฑฐ๊ธฐ์—๋‹ค ์•„๋ฆ„๋‹ค์šฐ๋ฉด์„œ๋„ ์ ˆ์ œ๋œ ๊ฒƒ์ด ์ž‘์—… ์ง‘์ค‘๋ ฅ์„ ๊ฒฐ์ฝ” ๋–จ์–ด ๋œจ๋ฆฌ๋Š” ๊ฒƒ๋„ ์•„๋‹ˆ๋‹ค. ์ ๊ทน ์ถ”์ฒœํ•œ๋‹ค. https://github.com/ryanoasis/vim-devicons ์ด ๊ณณ์— ๊ฐ€๋ฉด ์ƒ˜ํ”Œ ์‚ฌ์ง„๊ณผ ์„ค์น˜๋ฒ•์ด ์ž์„ธํžˆ ๋‚˜์™€์žˆ๋‹ค. ์ ์šฉ๋˜๋Š” ํ”Œ๋Ÿฌ๊ทธ์ธ: NERDTree,vim airline, CtrlP, powerline, denite, unite, lightline.vim, vim startify, vimfiler, vim-buffet and flagship. ๋ฌผ๋ก  ํฐํŠธ๋ฅผ ์„ค์น˜ํ•˜๋ฉด zsh, bash ๋“ฑ์—์„œ๋„ ํ”„๋กฌํ”„ํŠธ ํ‘œ์‹œ๋ฅผ ์ง€์›ํ•œ๋‹ค. ํฐํŠธ ์„ค์น˜ vim-devicons๋ฅผ ์„ค์น˜ํ•˜๊ธฐ ์ „์— ๋จผ์ € Nerd Patched ํฐํŠธ๋ฅผ ์„ค์น˜ํ•ด์•ผ ํ•œ๋‹ค. ํฐํŠธ๋Š” ๋‹ค์–‘ํ•œ๋ฐ ๋ชจ๋‘ ์„ค์น˜ํ•œ๋‹ค๋ฉด ๋งŽ์€ ์šฉ๋Ÿ‰์„ ์ฐจ์ง€ํ•˜๋ฏ€๋กœ ์—ฌ๊ธฐ์—์„œ๋Š” Noto Nerd Font ํฐํŠธ๋งŒ ์„ค์น˜ํ–ˆ๋‹ค. ์ฐธ๊ณ ๋กœ ํฐํŠธ๋ฅผ ๋ฐ›์„ ์ˆ˜ ์žˆ๋Š” ์‚ฌ์ดํŠธ์ด๋‹ค. nerd-fonts ๊นƒํ—ˆ๋ธŒ ์‚ฌ์ดํŠธ์™€ ์„ค์น˜ ์•ˆ๋‚ด๋„ ์žˆ๋‹ค. https://github.com/ryanoasis/nerd-fonts ๋ชจ๋‘ ์„ค์น˜ํ•˜๋ฉด ์šฉ๋Ÿ‰์ด ์•ฝ 1.2GB๋กœ ๋งค์šฐ ํฌ๋ฏ€๋กœ ๋‹ค์Œ ์Šคํฌ๋ฆฝํŠธ์—์„œ Noto์™€ Hack๋งŒ ์„ค์น˜ํ•œ๋‹ค. ์‹คํ–‰ํ•˜๋ฉด ~/.local/share/fonts์— ์„ค์น˜๋œ๋‹ค. ์„ค์น˜ ํ›„ ์ž์‹ ์ด ์‚ฌ์šฉํ•˜๋Š” ํ„ฐ๋ฏธ๋„์„ค์ •์—์„œ ํฐํŠธ๋ฅผ Noto Nerd font๋กœ ์„ค์ •ํ•ด์ฃผ๋ฉด ์ค€๋น„๊ฐ€ ์™„๋ฃŒ๋œ๋‹ค. #!/bin/bash declare -a fonts=( BitstreamVeraSansMono CodeNewRoman DroidSansMono FiraCode FiraMono Go-Mono Hack Hermit JetBrainsMono Meslo Noto Overpass ProggyClean RobotoMono SourceCodePro SpaceMono Ubuntu UbuntuMono ) version='2.1.0' fonts_dir="${HOME}/.local/share/fonts" if [[ ! -d "$fonts_dir" ]]; then mkdir -p "$fonts_dir" fi for font in "${fonts[@]}"; do zip_file="${font}.zip" download_url="https://github.com/ryanoasis/nerd-fonts/releases/download/v${version}/${zip_file}" echo "Downloading $download_url" wget "$download_url" unzip "$zip_file" -d "$fonts_dir" rm "$zip_file" done find "$fonts_dir" -name '*Windows Compatible*' -delete fc-cache -fv ์„ค์น˜ ๋ฐ ์„ค์ • ~/.vimrc ๋˜๋Š” ~/.config/nvim/init.vim ์„ค์ • Plug 'ryanoasis/vim-devicons' ... set encoding=UTF-8 ์„ค์น˜ nvim +plugInstall +qall ํ„ฐ๋ฏธ๋„ ์„ค์ •์—์„œ ํฐํŠธ๋ฅผ Noto Nerd Font๋ฅผ ์„ค์ •ํ•ด ์ฃผ๊ณ  vim ๋˜๋Š” nvim ์„ ์‚ฌ์šฉํ•˜๋ฉด ๋œ๋‹ค. Links https://github.com/ryanoasis/vim-devicons https://www.nerdfonts.com/font-downloads https://github.com/ryanoasis/nerd-fonts

2022-08-26 ยท 237 words