<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Today I Learned on Arek's Blog</title><link>https://blog.kalandyk.xyz/tags/today-i-learned/</link><description>Recent content in Today I Learned on Arek's Blog</description><generator>Hugo -- 0.147.8</generator><language>en-us</language><lastBuildDate>Sun, 01 Nov 2020 19:32:48 +0100</lastBuildDate><atom:link href="https://blog.kalandyk.xyz/tags/today-i-learned/index.xml" rel="self" type="application/rss+xml"/><item><title>Mirror GitLab to GitHub</title><link>https://blog.kalandyk.xyz/posts/mirror-gitlab-to-github/</link><pubDate>Sun, 01 Nov 2020 19:32:48 +0100</pubDate><guid>https://blog.kalandyk.xyz/posts/mirror-gitlab-to-github/</guid><description>&lt;p>There are 2 kinds of mirroring in GitLab: pull (mirroring from another repo) and push (mirroring to another repo). Today I tried the second one!&lt;/p>
&lt;p>For mirroring you need an already created repository on GitLab of course. Then it&amp;rsquo;s needed to create another one on GitHub.&lt;/p>
&lt;p>When you have opened GitHub, you should also create PAT (Personal Access Token) by going into: &lt;strong>Settings -&amp;gt; Developer settings -&amp;gt; Personal access token -&amp;gt; Generate new token&lt;/strong>. Type into &lt;em>Note&lt;/em> some text (e.g. gitlab_repository_name) and select &lt;code>public_repo&lt;/code> (under &lt;code>repo&lt;/code>), then click Generate token and copy or leave open tab with shown token for later copy+paste (if you close tab, you won&amp;rsquo;t see the token again).&lt;/p></description></item><item><title>Spell checking in Vim</title><link>https://blog.kalandyk.xyz/posts/vim-spell-check/</link><pubDate>Wed, 28 Oct 2020 10:21:09 +0100</pubDate><guid>https://blog.kalandyk.xyz/posts/vim-spell-check/</guid><description>&lt;p>Is it possible to have spell checking in vim? No, it&amp;rsquo;s not. EOP (End Of Post).&lt;/p>
&lt;p>I&amp;rsquo;m joking of course. It is!&lt;/p>
&lt;h2 id="how-to-do-it">How to do it?&lt;/h2>
&lt;p>The only thing you need to type is:&lt;/p>
&lt;pre tabindex="0">&lt;code>:set spell spelllang=en
&lt;/code>&lt;/pre>&lt;p>or if you want spell checking for Polish language:&lt;/p>
&lt;pre tabindex="0">&lt;code>:set spell spelllang=pl
&lt;/code>&lt;/pre>&lt;p>&lt;em>Note: when you set spelllang for language different than English, file with stuff for that language will be downloaded (if one is not already in ~/.vim/spell directory), so vim will prompt you some question like where to save that file (answering with default/only one option worked for me).&lt;/em>&lt;/p></description></item></channel></rss>