<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Dev on mrnice.dev</title>
    <link>https://www.mrnice.dev/tags/dev/</link>
    <description>Recent content in Dev on mrnice.dev</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Sun, 17 Sep 2023 22:58:53 +0300</lastBuildDate>
    <atom:link href="https://www.mrnice.dev/tags/dev/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>How to add a status page to your Hugo blog</title>
      <link>https://www.mrnice.dev/posts/statuspage-on-hugo/</link>
      <pubDate>Sun, 17 Sep 2023 22:58:53 +0300</pubDate>
      <guid>https://www.mrnice.dev/posts/statuspage-on-hugo/</guid>
      <description>&lt;p&gt;Shortest guide possible, let&amp;rsquo;s go ⚡️&lt;/p&gt;&#xA;&lt;h2 id=&#34;setting-up-a-status-page&#34;&gt;Setting up a status page&lt;/h2&gt;&#xA;&lt;p&gt;I recommend &lt;a href=&#34;https://onlineornot.com/&#34;&gt;onlineornot.com&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Take your blog&amp;rsquo;s URL. For me, that&amp;rsquo;s&#xA;&lt;a href=&#34;https://mrnice.dev&#34;&gt;&lt;code&gt;https://mrnice.dev&lt;/code&gt;&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Create a new &lt;a href=&#34;https://onlineornot.com/app/checks&#34;&gt;check&lt;/a&gt; on that URL. Pick&#xA;&amp;ldquo;Monitor a website&amp;rdquo;.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://www.mrnice.dev/images/statuspage/onlineornot1.png&#34; alt=&#34;&amp;ldquo;New check&amp;rdquo;&#34; title=&#34;New check&#34;&gt;&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Create a &lt;a href=&#34;https://onlineornot.com/app/status-pages&#34;&gt;status page&lt;/a&gt;, and choose&#xA;your subdomain. I went with &lt;code&gt;mrnicedev&lt;/code&gt; ~&amp;gt; you&amp;rsquo;ll end up with a URL like&#xA;&lt;a href=&#34;https://mrnicedev.onlineornot.com&#34;&gt;&lt;code&gt;https://mrnicedev.onlineornot.com&lt;/code&gt;&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;You should get something that looks like this:&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://www.mrnice.dev/images/statuspage/statuspage.png&#34; alt=&#34;onlineornot&#34; title=&#34;onlineornot&#34;&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;adding-the-status-page-link-to-your-blog&#34;&gt;Adding the status page link to your blog&lt;/h2&gt;&#xA;&lt;p&gt;We&amp;rsquo;ll do it from the &lt;code&gt;config.toml&lt;/code&gt; file (so it&amp;rsquo;s easy to change) and using a&#xA;&lt;code&gt;with&lt;/code&gt; template statement (so if it&amp;rsquo;s not set, it won&amp;rsquo;t show up).&lt;/p&gt;</description>
    </item>
    <item>
      <title>Optimize your Hugo Blog With Unlighthouse</title>
      <link>https://www.mrnice.dev/posts/optimize-hugo-with-unlighthouse/</link>
      <pubDate>Tue, 16 May 2023 09:36:21 +0300</pubDate>
      <guid>https://www.mrnice.dev/posts/optimize-hugo-with-unlighthouse/</guid>
      <description>&lt;p&gt;Recently Google let me see the new Analytics dashboard (they moved from&amp;hellip;&#xA;Something something analytics to something something Analytics 4). And one&#xA;of they things I saw was that my blog&amp;rsquo;s performance was bad!&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://i.giphy.com/media/HNEmXQz7A0lDq/giphy.gif&#34; alt=&#34;&amp;ldquo;I have failed you&amp;rdquo;&#34; title=&#34;I have failed you&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;In general the blog&amp;rsquo;s infrastructure didn&amp;rsquo;t get much love since I opened it&#xA;a few years ago, so a cleanup for performance and content is probably in&#xA;order.&lt;/p&gt;&#xA;&lt;h2 id=&#34;get-initial-lighthouse-results&#34;&gt;Get initial Lighthouse results&lt;/h2&gt;&#xA;&lt;p&gt;What&amp;rsquo;s Lighthouse? It&amp;rsquo;s a tool that Google provides to measure the performance&#xA;of your site. It&amp;rsquo;s available as a Chrome extension, but also as a CLI tool&#xA;that you can run on your site. So I thought that the first order of business was&#xA;to run &lt;a href=&#34;https://github.com/GoogleChrome/lighthouse&#34;&gt;Lighthouse&lt;/a&gt; on my site and&#xA;see what I&amp;rsquo;m getting both for Mobile and Desktop.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Debugging Windows: New Users, Powershell, and TLS</title>
      <link>https://www.mrnice.dev/posts/debugging-impersonating-new-users-and-powershell/</link>
      <pubDate>Thu, 26 Dec 2019 15:34:44 +0200</pubDate>
      <guid>https://www.mrnice.dev/posts/debugging-impersonating-new-users-and-powershell/</guid>
      <description>&lt;h2 id=&#34;a-little-context&#34;&gt;A little context&lt;/h2&gt;&#xA;&lt;p&gt;I wanted to work on &lt;a href=&#34;https://github.com/guardicore/monkey/pull/517&#34;&gt;this PR in Infection Monkey&lt;/a&gt;. Basically, a very simple feature - make the Monkey create a new user, and try to create an HTTPS request as that new user.&lt;/p&gt;&#xA;&lt;h2 id=&#34;toc&#34;&gt;ToC&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#a-little-context&#34;&gt;A little context&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#toc&#34;&gt;ToC&lt;/a&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#more-context&#34;&gt;More context&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#how-i-wanted-to-do-it&#34;&gt;How I wanted to do it&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#the-problems&#34;&gt;The problems&lt;/a&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#the-first-problem-the-application-failed-to-initialize-properly-0xc0000124&#34;&gt;The first problem: &lt;code&gt;The application failed to initialize properly (0xc0000124)&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#the-second-problem-the-response-content-cannot-be-parsed-because-the-internet-explorer-engine-is-not-available-or-internet-explorers-first-launch-configuration-is-not-complete&#34;&gt;The second problem: &lt;code&gt;The response content cannot be parsed because the Internet Explorer engine is not available, or Internet Explorer&#39;s first-launch configuration is not complete.&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#the-third-problem-unsupported-tls-version&#34;&gt;The third problem: Unsupported TLS version&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;#conclusions&#34;&gt;Conclusions&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;more-context&#34;&gt;More context&lt;/h3&gt;&#xA;&lt;p&gt;👩‍🔧 &lt;em&gt;If you&amp;rsquo;re here for the technical stuff only you can skip this section.&lt;/em&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Python Server Profiling: A quick guide (with real data)</title>
      <link>https://www.mrnice.dev/posts/python-server-profiling-guide-with-examples/</link>
      <pubDate>Fri, 15 Nov 2019 18:04:53 +0200</pubDate>
      <guid>https://www.mrnice.dev/posts/python-server-profiling-guide-with-examples/</guid>
      <description>&lt;p&gt;This post has appeared as an article on &lt;a href=&#34;https://pagedout.institute/download/PagedOut_002_beta1.pdf&#34;&gt;issue #2&lt;/a&gt; of &lt;a href=&#34;https://pagedout.institute/&#34;&gt;PagedOut! magazine&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;&lt;img src=&#34;https://pagedout.institute/download/PagedOut_002_wallpaper_30.png&#34; alt=&#34;pagedout2&#34;&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;I improved performance issues in a Python server and survived to tell you the tale.&lt;/em&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;0-discover-your-problem-is-performance&#34;&gt;0) Discover your problem is performance&lt;/h2&gt;&#xA;&lt;p&gt;This can come up via Stress testing ⏱️, User tickets 🎫 or as the underlying cause of other bugs 🐛.&lt;/p&gt;&#xA;&lt;p&gt;For us, it started with this a demo of the new version of &lt;a href=&#34;https://infectionmonkey.com/&#34;&gt;Infection Monkey&lt;/a&gt; that had &amp;gt;35 machines. The report generation was so slow, the server just died! Luckily &lt;a href=&#34;https://twitter.com/CyberCaffeinate&#34;&gt;@CyberCaffeinate&lt;/a&gt; was able to recognize the situation and relay it to us.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
