<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Youngjoon Won</title>
    <description>The latest articles on DEV Community by Youngjoon Won (@youngjoonwon).</description>
    <link>https://dev.to/youngjoonwon</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F559610%2F3354a665-f41c-4b1e-8026-96e6f805fc47.png</url>
      <title>DEV Community: Youngjoon Won</title>
      <link>https://dev.to/youngjoonwon</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/youngjoonwon"/>
    <language>en</language>
    <item>
      <title>vim add characters</title>
      <dc:creator>Youngjoon Won</dc:creator>
      <pubDate>Sat, 07 Jun 2025 03:18:54 +0000</pubDate>
      <link>https://dev.to/youngjoonwon/vim-add-characters-4apb</link>
      <guid>https://dev.to/youngjoonwon/vim-add-characters-4apb</guid>
      <description>&lt;h4&gt;
  
  
  add to the beginning of every line
&lt;/h4&gt;

&lt;p&gt;:%s/^/pattern&lt;/p&gt;

&lt;h4&gt;
  
  
  add to the end of every line
&lt;/h4&gt;

&lt;p&gt;:%s/$/pattern&lt;/p&gt;

</description>
      <category>vim</category>
      <category>howto</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>python venv</title>
      <dc:creator>Youngjoon Won</dc:creator>
      <pubDate>Thu, 04 Jul 2024 09:34:02 +0000</pubDate>
      <link>https://dev.to/youngjoonwon/python-venv-4jf7</link>
      <guid>https://dev.to/youngjoonwon/python-venv-4jf7</guid>
      <description>&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ mkdir ~/venv
$ python3.11 -m venv ~/venv/py3-11
$ source ~/venv/py3-11/bin/activate
$ python3.11 -m pip install arcade
$ deactivate
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>gcc libs@mac using homebrew</title>
      <dc:creator>Youngjoon Won</dc:creator>
      <pubDate>Wed, 29 May 2024 10:10:14 +0000</pubDate>
      <link>https://dev.to/youngjoonwon/gcc-libsmac-and-brew-3j3b</link>
      <guid>https://dev.to/youngjoonwon/gcc-libsmac-and-brew-3j3b</guid>
      <description>&lt;p&gt;Installed on Mac Studio M2 Ultra (Sonoma):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;brew install gcc@13
brew install openssl@3
brew install boost
brew install boost-build
brew install curl
brew install jsoncpp
brew install json-glib
brew install googletest
brew install gsl

cd cpp-jwt
cmake .
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;makefile flags config:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;LIBOPENSSL_LIBS=-L/opt/homebrew/opt/openssl/lib
LIBOPENSSL_CFLAGS=-I/opt/homebrew/opt/openssl/include
LIBBOOST_LIBS=-L/opt/homebrew/opt/boost/lib
LIBBOOST_CFLAGS=-I/opt/homebrew/opt/boost/include
LIBCURL_LIBS=-L/opt/homebrew/opt/curl/lib
LIBCURL_CFLAGS=-I/opt/homebrew/opt/curl/include
LIBJSON_CFLAGS=-I/opt/homebrew/opt/jsoncpp/include

CC = g++-14

...
-lboost_system -lpthread -lssl -lcrypto -lcurl -latomic -std=c++14
...
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>wget examples</title>
      <dc:creator>Youngjoon Won</dc:creator>
      <pubDate>Wed, 22 May 2024 02:04:43 +0000</pubDate>
      <link>https://dev.to/youngjoonwon/wget-examples-3bp9</link>
      <guid>https://dev.to/youngjoonwon/wget-examples-3bp9</guid>
      <description>&lt;p&gt;download everything in a given directory&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;wget --recursive --no-parent https://example.com/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>terminal recording - script</title>
      <dc:creator>Youngjoon Won</dc:creator>
      <pubDate>Thu, 11 Apr 2024 11:58:10 +0000</pubDate>
      <link>https://dev.to/youngjoonwon/terminal-recording-script-4a0d</link>
      <guid>https://dev.to/youngjoonwon/terminal-recording-script-4a0d</guid>
      <description>&lt;p&gt;for Mac&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;start&lt;br&gt;
$ script -r&lt;/p&gt;

&lt;p&gt;stop. file created: typescript&lt;br&gt;
$ exit&lt;/p&gt;

&lt;p&gt;replay&lt;br&gt;
$ script -p typescript&lt;/p&gt;
&lt;/blockquote&gt;

</description>
    </item>
    <item>
      <title>python/nvm install in windows</title>
      <dc:creator>Youngjoon Won</dc:creator>
      <pubDate>Thu, 11 Apr 2024 06:44:12 +0000</pubDate>
      <link>https://dev.to/youngjoonwon/python-install-in-windows-61m</link>
      <guid>https://dev.to/youngjoonwon/python-install-in-windows-61m</guid>
      <description>&lt;h3&gt;
  
  
  python in windows
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;open powershell from start menu&lt;/p&gt;

&lt;p&gt;type python and continue install&lt;br&gt;
&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;python
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;python --version 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;install pip, refer to &lt;a href="https://pip.pypa.io/en/stable/installation/"&gt;https://pip.pypa.io/en/stable/installation/&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;python get-pip.py
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;install requests lib&lt;br&gt;
&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;pip install requests
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1jf0lcaiifxa6ylztf6y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1jf0lcaiifxa6ylztf6y.png" alt="Image description" width="800" height="717"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  nvm in windows
&lt;/h3&gt;

&lt;blockquote&gt;
&lt;p&gt;download and install nvm.exe from &lt;a href="https://github.com/coreybutler/nvm-windows/releases"&gt;https://github.com/coreybutler/nvm-windows/releases&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;reopen powershell with administrator mode (right click on powershell menu and select administrator)&lt;br&gt;
&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;nvm on
nvm install lts
nvm list
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;mine is node version 20.12.2&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;nvm use 20.12.2
cd C:\Program Files\nodejs
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbzxrphyq0t6ni67axlgu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbzxrphyq0t6ni67axlgu.png" alt="Image description" width="800" height="165"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;npx is under nodejs directory. now you can use it. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj6ductzvnm86k1m96v8m.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj6ductzvnm86k1m96v8m.png" alt="Image description" width="800" height="508"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>vim shortcuts</title>
      <dc:creator>Youngjoon Won</dc:creator>
      <pubDate>Wed, 07 Feb 2024 01:43:13 +0000</pubDate>
      <link>https://dev.to/youngjoonwon/vim-shortcut-2dpn</link>
      <guid>https://dev.to/youngjoonwon/vim-shortcut-2dpn</guid>
      <description>&lt;p&gt;NERDTree Refresh, press r&lt;/p&gt;

&lt;p&gt;ctrl-w +   //increase height&lt;br&gt;
ctrl-w - &lt;br&gt;
ctrl-w &amp;gt;         //increase width&lt;br&gt;
ctrl-w &amp;lt;&lt;/p&gt;

&lt;p&gt;ctrl-w W         //window up&lt;br&gt;
ctrl-w r         //window rotate&lt;/p&gt;

&lt;p&gt;ctrl-w shift-n  //vim term scroll, i to end&lt;/p&gt;

&lt;p&gt;select shift-&amp;gt;  //tab all&lt;br&gt;
G               //move to end of file&lt;/p&gt;

&lt;p&gt;:term           //open split terminal&lt;br&gt;
:vert term&lt;br&gt;
:sp             //split panel horizontal&lt;br&gt;
:vs             //split panel vertical&lt;/p&gt;

&lt;p&gt;//vundle install example&lt;/p&gt;

&lt;p&gt;$ brew install cmake python go&lt;br&gt;
$ cd ~/.vim/bundle/YouCompleteMe&lt;br&gt;
$ python3 install.py --all&lt;/p&gt;

&lt;p&gt;$ vim ~/.vimrc&lt;/p&gt;

&lt;p&gt;//add Bundle 'Valloric/YouCompleteMe'&lt;br&gt;
//add Plugin 'preservim/nerdtree'&lt;/p&gt;

&lt;p&gt;$ vim&lt;/p&gt;

&lt;p&gt;:PluginInstall&lt;/p&gt;

&lt;p&gt;$ cat ~/.vimrc&lt;/p&gt;

&lt;p&gt;" git clone &lt;a href="https://github.com/gmarik/Vundle.vim.git"&gt;https://github.com/gmarik/Vundle.vim.git&lt;/a&gt; ~/.vim/bundle/Vundle.vim&lt;br&gt;
set nocompatible              " required&lt;br&gt;
filetype off                  " required&lt;br&gt;
set backspace=indent,eol,start&lt;/p&gt;

&lt;p&gt;" set the runtime path to include Vundle and initialize&lt;br&gt;
set rtp+=~/.vim/bundle/Vundle.vim&lt;br&gt;
let python_highlight_all=1&lt;br&gt;
syntax on&lt;br&gt;
" syntax on&lt;br&gt;
set nu&lt;br&gt;
set encoding=utf-8&lt;br&gt;
set tabstop=2&lt;br&gt;
set shiftwidth=4&lt;/p&gt;

&lt;p&gt;call vundle#begin()&lt;/p&gt;

&lt;p&gt;" alternatively, pass a path where Vundle should install plugins&lt;br&gt;
"call vundle#begin('~/some/path/here')&lt;/p&gt;

&lt;p&gt;" let Vundle manage Vundle, required&lt;br&gt;
Plugin 'gmarik/Vundle.vim'&lt;br&gt;
Plugin 'vim-scripts/indentpython.vim'&lt;br&gt;
Plugin 'vim-syntastic/syntastic'&lt;br&gt;
Plugin 'nvie/vim-flake8'&lt;br&gt;
Plugin 'preservim/nerdtree'&lt;/p&gt;

&lt;p&gt;" Plugin 'Valloric/YouCompleteMe'&lt;br&gt;
Bundle 'Valloric/YouCompleteMe'&lt;/p&gt;

&lt;p&gt;" add all your plugins here (note older versions of Vundle&lt;br&gt;
" used Bundle instead of Plugin)&lt;/p&gt;

&lt;p&gt;" ...&lt;/p&gt;

&lt;p&gt;" All of your Plugins must be added before the following line&lt;br&gt;
call vundle#end()            " required&lt;br&gt;
filetype plugin indent on    " required&lt;/p&gt;

</description>
    </item>
    <item>
      <title>ubuntu enable https</title>
      <dc:creator>Youngjoon Won</dc:creator>
      <pubDate>Mon, 22 Jan 2024 06:23:24 +0000</pubDate>
      <link>https://dev.to/youngjoonwon/ubuntu-enable-https-1n9l</link>
      <guid>https://dev.to/youngjoonwon/ubuntu-enable-https-1n9l</guid>
      <description>&lt;p&gt;$sudo a2enmod ssl&lt;br&gt;
$sudo a2ensite default-ssl&lt;/p&gt;

&lt;p&gt;modify /etc/apache2/sites-available/default-ssl.conf&lt;/p&gt;

&lt;p&gt;$sudo systemctl restart apache2&lt;/p&gt;

&lt;p&gt;check open ports:&lt;/p&gt;

&lt;p&gt;$nc -zv young.hanyang.ac.kr 80&lt;br&gt;
$netstat -tlnp&lt;br&gt;
$nmap -sT hostname&lt;br&gt;
$sudo lsof -nP -iTCP -sTCP:LISTEN&lt;/p&gt;

&lt;p&gt;$sudo ufw status&lt;br&gt;
$sudo ufw help&lt;/p&gt;

</description>
    </item>
    <item>
      <title>zsh config</title>
      <dc:creator>Youngjoon Won</dc:creator>
      <pubDate>Fri, 29 Dec 2023 06:51:31 +0000</pubDate>
      <link>https://dev.to/youngjoonwon/zsh-config-2k2c</link>
      <guid>https://dev.to/youngjoonwon/zsh-config-2k2c</guid>
      <description>&lt;p&gt;install xcode first&lt;/p&gt;

&lt;p&gt;/bin/bash -c "$(curl -fsSL &lt;a href="https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"&gt;https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&lt;/a&gt;"&lt;/p&gt;

&lt;p&gt;(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') &amp;gt;&amp;gt; /Users/young/.zprofile&lt;br&gt;
eval "$(/opt/homebrew/bin/brew shellenv)"&lt;/p&gt;

&lt;p&gt;install oh-my-zsh&lt;/p&gt;

&lt;p&gt;sh -c "$(curl -fsSL &lt;a href="https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"&gt;https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)&lt;/a&gt;"&lt;/p&gt;

&lt;p&gt;vim ~/.zshrc&lt;/p&gt;

&lt;blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;plugins=(vi-mode)&lt;br&gt;
alias rm="rm -i"&lt;br&gt;
export PROMPT='${ret_status}%m/%{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)'&lt;/p&gt;
&lt;/blockquote&gt;


&lt;/blockquote&gt;

&lt;p&gt;brew install python3&lt;/p&gt;

&lt;p&gt;Download &lt;a href="https://www.python.org/downloads/release/python-2713/"&gt;https://www.python.org/downloads/release/python-2713/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;touch .vimrc&lt;br&gt;
vim .vimrc&lt;/p&gt;

&lt;blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;syntax on&lt;br&gt;
set nu&lt;/p&gt;
&lt;/blockquote&gt;


&lt;/blockquote&gt;

</description>
    </item>
    <item>
      <title>restart screen sharing@mac</title>
      <dc:creator>Youngjoon Won</dc:creator>
      <pubDate>Fri, 01 Oct 2021 04:50:51 +0000</pubDate>
      <link>https://dev.to/youngjoonwon/restart-screen-sharing-mac-35a4</link>
      <guid>https://dev.to/youngjoonwon/restart-screen-sharing-mac-35a4</guid>
      <description>&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo launchctl unload /System/Library/LaunchDaemons/com.apple.screensharing.plist  

sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.screensharing.plist
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>httpd@mac</title>
      <dc:creator>Youngjoon Won</dc:creator>
      <pubDate>Wed, 04 Aug 2021 01:15:18 +0000</pubDate>
      <link>https://dev.to/youngjoonwon/httpd-mac-1n0l</link>
      <guid>https://dev.to/youngjoonwon/httpd-mac-1n0l</guid>
      <description>&lt;p&gt;brew install httpd&lt;/p&gt;

&lt;p&gt;vim /usr/local/etc/httpd/httpd.conf&lt;br&gt;
 Listen 80&lt;br&gt;
 ServerName xxx.xxx.xxx.xxx:80&lt;/p&gt;

&lt;p&gt;brew services start httpd&lt;/p&gt;

&lt;p&gt;/usr/local/var/www&lt;/p&gt;

</description>
    </item>
    <item>
      <title>docker@mac</title>
      <dc:creator>Youngjoon Won</dc:creator>
      <pubDate>Wed, 04 Aug 2021 00:48:24 +0000</pubDate>
      <link>https://dev.to/youngjoonwon/docker-mac-3bl4</link>
      <guid>https://dev.to/youngjoonwon/docker-mac-3bl4</guid>
      <description>&lt;p&gt;brew install docker docker-toolbox docker-machine&lt;br&gt;
brew services start docker-machine&lt;br&gt;
docker-machine create --driver virtualbox default&lt;br&gt;
docker-machine ls&lt;br&gt;
docker-machine env default&lt;br&gt;
eval $(docker-machine env default)&lt;br&gt;
docker-machine stop default&lt;br&gt;
brew services stop docker-machine&lt;/p&gt;

&lt;p&gt;docker ps&lt;br&gt;
docker container stop [CONTAINER ID]&lt;/p&gt;

&lt;p&gt;docker stop $(docker ps -aq)&lt;br&gt;
docker rm $(docker ps -aq)&lt;/p&gt;

&lt;p&gt;docker images -a&lt;br&gt;
docker rmi&lt;/p&gt;

&lt;p&gt;docker build -t apachewww .&lt;br&gt;
docker run -dit --name my-running-app -p 80:80 apachewww&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
