<?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 Tiago Rechau on Medium]]></title>
        <description><![CDATA[Stories by Tiago Rechau on Medium]]></description>
        <link>https://medium.com/@tiagorechau?source=rss-6565a6f0acee------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*y5j8j85jEiWGNlRD7Slnbg.jpeg</url>
            <title>Stories by Tiago Rechau on Medium</title>
            <link>https://medium.com/@tiagorechau?source=rss-6565a6f0acee------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 09:47:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tiagorechau/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[#3 TIL — Using Ubuntu Environment on Windows Machine with VS Code]]></title>
            <link>https://tiagorechau.medium.com/3-til-using-ubuntu-environment-on-windows-machine-with-vs-code-f7afc3845118?source=rss-6565a6f0acee------2</link>
            <guid isPermaLink="false">https://medium.com/p/f7afc3845118</guid>
            <category><![CDATA[frontend]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[vscode]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[windows]]></category>
            <dc:creator><![CDATA[Tiago Rechau]]></dc:creator>
            <pubDate>Tue, 06 Aug 2019 21:42:51 GMT</pubDate>
            <atom:updated>2019-08-06T21:42:51.103Z</atom:updated>
            <content:encoded><![CDATA[<h3>#3 TIL — Using Ubuntu Environment on Windows Machine with VS Code</h3><p><strong>TL;DR </strong>— Install Ubuntu via Windows Store &gt; Install VS Code &gt; Install Remote — WSL Extension Pack on VS Code. Open VS Code from Ubuntu Terminal. Wait… Done.</p><p>Sometimes use your Windows machine for development could be a pain in the ass. Too much configuration needed. It isn’t as easy as using a unix machine. But that is something from the past with the new Linux subsystem on Windows 10. This subsystem allows you to run, for example, Ubuntu at the same time as Windows.</p><p>Let’s see how to do it.</p><ol><li>First we need to make sure that we have Windows Subsystem for Linux enabled. Open PowerShell as admin the run:</li></ol><pre>Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux</pre><p>2. Restart Computer</p><p>3. Install Ubuntu from Windows Store (<a href="https://www.microsoft.com/store/apps/9N9TNGVNDL3Q">https://www.microsoft.com/store/apps/9N9TNGVNDL3Q</a>)</p><p>4. Install VS Code (<a href="https://code.visualstudio.com/">https://code.visualstudio.com/</a>)</p><p>5. Install WSL Development Pack on VSCode <a href="https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.vscode-remote-extensionpack">https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.vscode-remote-extensionpack</a></p><p>6. After everything is installed, open Ubuntu Terminal on Windows and go to your Project root folder and run to open VS Code on that folder</p><pre>code .</pre><p>7. Wait until everything is installed… Done!</p><p>I might be missing some steps so for more info just go to the official documentation that I followed when I needed on my machine <a href="https://code.visualstudio.com/docs/remote/wsl">https://code.visualstudio.com/docs/remote/wsl</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f7afc3845118" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[#2 TIL — DRY on Jenkins]]></title>
            <link>https://tiagorechau.medium.com/2-til-dry-on-jenkins-5f9e68c3c016?source=rss-6565a6f0acee------2</link>
            <guid isPermaLink="false">https://medium.com/p/5f9e68c3c016</guid>
            <category><![CDATA[groovy]]></category>
            <category><![CDATA[jenkins]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Tiago Rechau]]></dc:creator>
            <pubDate>Wed, 31 Jul 2019 19:57:22 GMT</pubDate>
            <atom:updated>2019-07-31T19:57:22.850Z</atom:updated>
            <content:encoded><![CDATA[<h3>#2 TIL — DRY on Jenkins</h3><p><strong>TL;DR </strong>— Extract functions you would like to use on other Jenkins Files to a groovy script and return the functions like this</p><pre>return this</pre><p>Checkout repository of the code on Jenkins. Load script to variable. Run variable.myFunction()</p><p>For safety reasons in one of the projects I work on we have on JenkinsFile for builds and other JenkinsFile for deployments. This allow us to have the build ready for an upcoming production deployment and also does not allow us to deploy for production by mistake.</p><p>Doing this sometimes we need to share code between both the JenkinsFiles, (let’s call them JenkinsBuild and JenkinsDeploy).</p><p>Imagine that you have a function like the following in JenkinsBuild file.</p><pre>def myFunction (arg) {<br>  echo arg;<br>}</pre><p>For some reason you want to use the above function also on JenkinsDeploy file. Try the following:</p><ol><li>Create myLib.groovy alongside the other Jenkins files;</li><li>Cut and paste the myFunction code from the JenkinsBuild file to myLib.groovy;</li><li>Add the following to the end of myLib.groovy file</li></ol><pre> return this</pre><p>4. Inside JenkinsBuild and JenkinsDeploy add the following code</p><pre>def myFunction = load(&quot;myLib.groovy&quot;).myFunction</pre><p>5. It’s working! Or not…</p><p>6. Before you load the myLib.groovy file, be sure to checkout the code first.</p><p>If you want more info see this blogpost (not mine): <a href="http://tdongsi.github.io/blog/2017/04/18/groovy-code-in-jenkins-pipeline/">http://tdongsi.github.io/blog/2017/04/18/groovy-code-in-jenkins-pipeline/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5f9e68c3c016" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[#1 TIL — Webpack HTML Template Plugin]]></title>
            <link>https://tiagorechau.medium.com/1-til-webpack-html-template-plugin-7fe3b3ee2cd3?source=rss-6565a6f0acee------2</link>
            <guid isPermaLink="false">https://medium.com/p/7fe3b3ee2cd3</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[webpack4]]></category>
            <category><![CDATA[webpack]]></category>
            <category><![CDATA[performance]]></category>
            <dc:creator><![CDATA[Tiago Rechau]]></dc:creator>
            <pubDate>Tue, 30 Jul 2019 14:50:48 GMT</pubDate>
            <atom:updated>2019-07-30T14:50:48.943Z</atom:updated>
            <content:encoded><![CDATA[<h3>#1 TIL — Preload external assets</h3><p><strong>TL;DR </strong>— Using Webpack HTML Template Plugin you can pass objects to links and scripts options with the properties you want on the scripts/links tags, preload included</p><p>While trying to preload some stylesheets today I found out that you can add the preload option directly using Webpack HTML Template Plugin.</p><p>Take a look at the documentation (src: <a href="https://github.com/jaketrent/html-webpack-template">https://github.com/jaketrent/html-webpack-template</a>):</p><blockquote>links: Array of &lt;link&gt; elements.</blockquote><blockquote>If an array element is a string, the value is assigned to the href attribute and the rel attribute is set to&quot;stylesheet&quot;;</blockquote><blockquote>If an array element is an object, the object’s properties and values are used as the attribute names and values, respectively.</blockquote><blockquote>scripts: Array of external script imports to include on page.</blockquote><blockquote>If an array element is a string, the value is assigned to the src attribute and the type attribute is set to&quot;text/javascript&quot;;</blockquote><blockquote>If an array element is an object, the object’s properties and values are used as the attribute names and values, respectively.</blockquote><p>What does it mean?</p><p>Before I had something like the following:</p><pre>links:[<br>   &#39;https://www.myexample.com/styles.css<a href="https://fonts.googleapis.com/css?family=Roboto&#39;">&#39;</a>,    &#39;https://www.myexample.com/styles2.css&#39;<br>]</pre><p>If I want to preload the styles.css one I just need to do the following</p><pre>links:[<br>   {<br>    href: &#39;https://www.myexample.com/styles.css<a href="https://fonts.googleapis.com/css?family=Roboto&#39;">&#39;</a>,<br>    preload: true,<br>    rel:&quot;stylesheet&quot;,<br>    type:&quot;text/css&quot;<br>   },<br>   &#39;https://www.myexample.com/styles2.css&#39;<br>]</pre><p>The same applies to scripts.</p><p>And that’s my first TIL (Today I Learn)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7fe3b3ee2cd3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>