<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by CH Yoon on Medium]]></title>
        <description><![CDATA[Stories by CH Yoon on Medium]]></description>
        <link>https://medium.com/@drskur?source=rss-4261ae261e65------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*cdtD-hV3k4OLsgdz.png</url>
            <title>Stories by CH Yoon on Medium</title>
            <link>https://medium.com/@drskur?source=rss-4261ae261e65------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 07:23:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@drskur/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Punch Out]]></title>
            <link>https://medium.com/@drskur/punch-out-deba1ff9d7fa?source=rss-4261ae261e65------2</link>
            <guid isPermaLink="false">https://medium.com/p/deba1ff9d7fa</guid>
            <category><![CDATA[canvas]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[CH Yoon]]></dc:creator>
            <pubDate>Wed, 20 Nov 2019 22:53:57 GMT</pubDate>
            <atom:updated>2019-11-20T22:58:09.365Z</atom:updated>
            <content:encoded><![CDATA[<p>Punch Out 효과는 두 개의 오브젝트가 겹쳤을때 나중에 그려지는 오브젝트가 첫번째 오브젝트보다 위에 그려지는 것처럼 표현하는 것을 의미합니다. 아래의 그림을 보면 이해가 좀 더 빠르겠지요.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/372/0*5nCvqi8oT7nZx3Q1.png" /></figure><p>원리는 아래와 같습니다.</p><ol><li>첫번째 사각형을 그립니다.</li><li>두번째 사각형을 그리기 전에 첫번째 사각형과 두번째 사각형이 겹치는 부분을 지웁니다.</li><li>두번째 사각형을 그립니다.</li></ol><pre>// 1) paint over our region with a solid color (any color works)<br>ctx.globalAlpha = 1;<br>ctx.fillStyle = color;<br>ctx.fill(); </pre><pre>// 2) fill it again with xor composition to punch it out to nothing<br>ctx.globalCompositeOperation = &#39;xor&#39;;<br>ctx.fill(); </pre><pre>// 3) finally, paint in with our normal region color + alpha<br>ctx.globalCompositeOperation = &#39;source-over&#39;;<br>ctx.globalAlpha = 0.15;<br>ctx.fillStyle = color;<br>ctx.fill();     </pre><pre>// stroke line<br>ctx.globalAlpha = 1;<br>ctx.strokeStyle = color;<br>ctx.lineWidth = lineWidth;<br>ctx.stroke();</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=deba1ff9d7fa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SSH Config]]></title>
            <link>https://medium.com/@drskur/%EC%84%9C%EB%B2%84%EB%A5%BC-%EA%B4%80%EB%A6%AC%ED%95%98%EB%8B%A4-%EB%B3%B4%EB%A9%B4-%EC%88%98-%EB%A7%8E%EC%9D%80-%EC%84%9C%EB%B2%84%EC%97%90-%EC%A0%91%EC%86%8D%ED%95%98%EC%97%AC%EC%95%BC-%ED%95%98%EB%8A%94%EB%8D%B0-%EA%B7%B8-%EB%95%8C%EB%A7%88%EB%8B%A4-%EB%8B%A4%EC%9D%8C%EA%B3%BC-%EA%B0%99%EC%9D%B4-%EC%A0%91%EC%86%8D%ED%95%A9%EB%8B%88%EB%8B%A4-f64aaa0691fa?source=rss-4261ae261e65------2</link>
            <guid isPermaLink="false">https://medium.com/p/f64aaa0691fa</guid>
            <category><![CDATA[ssh]]></category>
            <dc:creator><![CDATA[CH Yoon]]></dc:creator>
            <pubDate>Mon, 15 Feb 2016 15:59:51 GMT</pubDate>
            <atom:updated>2019-11-20T22:55:14.702Z</atom:updated>
            <content:encoded><![CDATA[<p>서버를 관리하다 보면 수 많은 서버에 접속하여야 하는데, 그 때마다 다음과 같이 접속합니다.</p><pre>$ ssh -i key.pem ec2-user@xxx.xxx.xxx.xxx</pre><p>ssh config 파일을 작성하면 IP, key path를 입력할 필요 없이 다음과 같이 접속할 수 있습니다.</p><pre><em># ~/.ssh/config</em><br>Host stormwind<br>  HostName xxx.xxx.xxx.xxx<br>  User ec2-user<br>  StrictHostKeyChecking no<br>  PasswordAuthentication no<br>  IdentityFile &quot;your key file path&quot;<br>  IdentitiesOnly yes</pre><pre>$ ssh stormwind</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f64aaa0691fa" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>