<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Posts on</title><link>https://jamiam.dev/posts/</link><description>Recent content in Posts on</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Tue, 26 May 2026 12:38:09 -0400</lastBuildDate><atom:link href="https://jamiam.dev/posts/index.xml" rel="self" type="application/rss+xml"/><item><title>jj: Git/Monorepo Compatible Version Control</title><link>https://jamiam.dev/posts/git-compatible-version-control/</link><pubDate>Tue, 26 May 2026 12:38:09 -0400</pubDate><guid>https://jamiam.dev/posts/git-compatible-version-control/</guid><description>&lt;p>Recently a few &lt;em>newer&lt;/em> projects have come to my attention surrounding &lt;em>version
control&lt;/em> tools. I have been a little bit curious and somewhat skeptical about
trying them out.&lt;/p>
&lt;p>Just to get potential bias out of the way - I do work at Google (currently as
Hardware Operations - with a sprinkle of software development / software
engineering), so if that sways my opinions down below, I would rather say it
here before going further.&lt;/p></description></item><item><title>Apt 3 UX Improvement</title><link>https://jamiam.dev/posts/apt-3-ux/</link><pubDate>Sat, 24 Jan 2026 12:27:50 -0500</pubDate><guid>https://jamiam.dev/posts/apt-3-ux/</guid><description>&lt;p>About a year ago, Debian maintainers have updated APT (packaging tool)
to improve the UX / readability of the output when updating and upgrading
packages.&lt;/p>
&lt;p>&lt;a href="https://www.reddit.com/r/debian/comments/1c2kxeh/welcome_the_new_apt_30_ux_refined_solution_screen/" target="_blank">Here&lt;/a>
is the reddit post about this change on &lt;a href="https://www.reddit.com/r/debian/" target="_blank">/r/debian&lt;/a>&lt;/p>
&lt;p>The difference can be seen below:&lt;/p>
&lt;pre tabindex="0">&lt;code>~ $ apt --version
apt 2.8.3 (amd64)
&lt;/code>&lt;/pre>&lt;p>&lt;img src="https://jamiam.dev/images/posts/apt3-ux/apt2.png" alt="apt2">&lt;/p>
&lt;hr>
&lt;pre tabindex="0">&lt;code>jam@deblet2:~$ apt --version
apt 3.0.3 (amd64)
&lt;/code>&lt;/pre>&lt;p>&lt;img src="https://jamiam.dev/images/posts/apt3-ux/apt3.png" alt="apt3">&lt;/p>
&lt;p>This is a much welcome change in my opinion. Shouts out to Debian maintainers, great work!&lt;/p></description></item><item><title>Strudel :: A REPL for Music Production</title><link>https://jamiam.dev/posts/strudel-music-production-repl/</link><pubDate>Sat, 06 Dec 2025 12:43:05 -0500</pubDate><guid>https://jamiam.dev/posts/strudel-music-production-repl/</guid><description>&lt;h2 id="strudel-repl">Strudel REPL&lt;/h2>
&lt;p>Hello, I wanted to share a really neat project that I stumbled upon recently -
it is called &lt;a href="http://strudel.cc" target="_blank">&lt;em>strudel&lt;/em>&lt;/a>.&lt;/p>
&lt;p>It is web based REPL for music production, and the language most resembles
JavaScript, so it is suprisingly easy to get started and start making some
really cool dynamic compositions.&lt;/p>
&lt;h3 id="making-sounds">Making Sounds&lt;/h3>
&lt;p>I made &lt;a href="https://strudel.cc/#CmxldCBzbyA9IHNvdW5kKCJbPGJkIGJkPiA8aGggb2g%2BIGhoIGhoP10qNCIpLmJhbmsoInRyOTA5IikKbGV0IGhoID0gc291bmQoIjxoaD8uNSBoaCBoaD8uNT4qOD8uOSIpLmJhbmsoInRyOTA5IikKbGV0IGNwID0gc291bmQoIltjcEA0IC0gY3BANCAtXSIpCmxldCBiYiA9IHNvdW5kKCJbYmQgc2RdKjIiKS5nYWluKC43KS5scGYoMjAwKS5vcmJpdCgzKQpsZXQgc3F1YXJzID0gcygic3F1YXJlITgiKS5ub3RlKCJmIyBkZCEyLCBiYiBhI0AyLCAtIGQjLzIiKQpsZXQgc2F3cyA9IHMoInNhd3Rvb3RoKjQiKS5nYWluKC44KS5ub3RlKCJnYiE0PywgZGIhND8sIFtmIyBkIyBhI10hMiIpLnJvb20oLjIpCgovLyBzbwokOiBzby5nYWluKC4yKQoKLy8gYmFzZQokOiBiYi5nYWluKC4yKQoKLy8gY2xhcAokOiBjcC5nYWluKC4xKQoKLy8gaGlnaCBoYXQKJDogaGguZ2FpbiguMSkKCi8vIHN5bnRoCiQ6IHNxdWFycy5vcmJpdCgyKS5nYWluKC40KS5scGYoNDAwKS5nYWluKC4yKQokOiBzYXdzLnRyZW1vbG9zeW5jKCIxNiIpLnRyZW1vbG9za2V3KCI8MCAtMSAtMj4qMiIpCiAgLm9yYml0KDIsNCw3KS5hdHRhY2soIjwuMyAuMiAuMT4qNCIpCiAgLmp1eEJ5KC4yLCByZXYpLmdhaW4oLjIpCg%3D%3D" target="_blank">this
sample&lt;/a>
just goofing around for a few minutes reading through the
&lt;a href="https://strudel.cc/workshop/getting-started/" target="_blank">quickstart&lt;/a>.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-javascript" data-lang="javascript">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">// You can run this in the REPL in Strudel
&lt;/span>&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">&lt;/span>&lt;span style="color:#66d9ef">let&lt;/span> &lt;span style="color:#a6e22e">so&lt;/span> &lt;span style="color:#f92672">=&lt;/span> &lt;span style="color:#a6e22e">sound&lt;/span>(&lt;span style="color:#e6db74">&amp;#34;[&amp;lt;bd bd&amp;gt; &amp;lt;hh oh&amp;gt; hh hh?]*4&amp;#34;&lt;/span>).&lt;span style="color:#a6e22e">bank&lt;/span>(&lt;span style="color:#e6db74">&amp;#34;tr909&amp;#34;&lt;/span>)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#66d9ef">let&lt;/span> &lt;span style="color:#a6e22e">hh&lt;/span> &lt;span style="color:#f92672">=&lt;/span> &lt;span style="color:#a6e22e">sound&lt;/span>(&lt;span style="color:#e6db74">&amp;#34;&amp;lt;hh?.5 hh hh?.5&amp;gt;*8?.9&amp;#34;&lt;/span>).&lt;span style="color:#a6e22e">bank&lt;/span>(&lt;span style="color:#e6db74">&amp;#34;tr909&amp;#34;&lt;/span>)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#66d9ef">let&lt;/span> &lt;span style="color:#a6e22e">cp&lt;/span> &lt;span style="color:#f92672">=&lt;/span> &lt;span style="color:#a6e22e">sound&lt;/span>(&lt;span style="color:#e6db74">&amp;#34;[cp@4 - cp@4 -]&amp;#34;&lt;/span>)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#66d9ef">let&lt;/span> &lt;span style="color:#a6e22e">bb&lt;/span> &lt;span style="color:#f92672">=&lt;/span> &lt;span style="color:#a6e22e">sound&lt;/span>(&lt;span style="color:#e6db74">&amp;#34;[bd sd]*2&amp;#34;&lt;/span>).&lt;span style="color:#a6e22e">gain&lt;/span>(.&lt;span style="color:#ae81ff">7&lt;/span>).&lt;span style="color:#a6e22e">lpf&lt;/span>(&lt;span style="color:#ae81ff">200&lt;/span>).&lt;span style="color:#a6e22e">orbit&lt;/span>(&lt;span style="color:#ae81ff">3&lt;/span>)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#66d9ef">let&lt;/span> &lt;span style="color:#a6e22e">squars&lt;/span> &lt;span style="color:#f92672">=&lt;/span> &lt;span style="color:#a6e22e">s&lt;/span>(&lt;span style="color:#e6db74">&amp;#34;square!8&amp;#34;&lt;/span>).&lt;span style="color:#a6e22e">note&lt;/span>(&lt;span style="color:#e6db74">&amp;#34;f# dd!2, bb a#@2, - d#/2&amp;#34;&lt;/span>)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#66d9ef">let&lt;/span> &lt;span style="color:#a6e22e">saws&lt;/span> &lt;span style="color:#f92672">=&lt;/span> &lt;span style="color:#a6e22e">s&lt;/span>(&lt;span style="color:#e6db74">&amp;#34;sawtooth*4&amp;#34;&lt;/span>).&lt;span style="color:#a6e22e">gain&lt;/span>(.&lt;span style="color:#ae81ff">8&lt;/span>).&lt;span style="color:#a6e22e">note&lt;/span>(&lt;span style="color:#e6db74">&amp;#34;gb!4?, db!4?, [f# d# a#]!2&amp;#34;&lt;/span>).&lt;span style="color:#a6e22e">room&lt;/span>(.&lt;span style="color:#ae81ff">2&lt;/span>)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">// so
&lt;/span>&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">&lt;/span>&lt;span style="color:#a6e22e">$&lt;/span>&lt;span style="color:#f92672">:&lt;/span> &lt;span style="color:#a6e22e">so&lt;/span>.&lt;span style="color:#a6e22e">gain&lt;/span>(.&lt;span style="color:#ae81ff">2&lt;/span>)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">// base
&lt;/span>&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">&lt;/span>&lt;span style="color:#a6e22e">$&lt;/span>&lt;span style="color:#f92672">:&lt;/span> &lt;span style="color:#a6e22e">bb&lt;/span>.&lt;span style="color:#a6e22e">gain&lt;/span>(.&lt;span style="color:#ae81ff">2&lt;/span>)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">// clap
&lt;/span>&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">&lt;/span>&lt;span style="color:#a6e22e">$&lt;/span>&lt;span style="color:#f92672">:&lt;/span> &lt;span style="color:#a6e22e">cp&lt;/span>.&lt;span style="color:#a6e22e">gain&lt;/span>(.&lt;span style="color:#ae81ff">1&lt;/span>)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">// high hat
&lt;/span>&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">&lt;/span>&lt;span style="color:#a6e22e">$&lt;/span>&lt;span style="color:#f92672">:&lt;/span> &lt;span style="color:#a6e22e">hh&lt;/span>.&lt;span style="color:#a6e22e">gain&lt;/span>(.&lt;span style="color:#ae81ff">1&lt;/span>)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">// synth
&lt;/span>&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">&lt;/span>&lt;span style="color:#a6e22e">$&lt;/span>&lt;span style="color:#f92672">:&lt;/span> &lt;span style="color:#a6e22e">squars&lt;/span>.&lt;span style="color:#a6e22e">orbit&lt;/span>(&lt;span style="color:#ae81ff">2&lt;/span>).&lt;span style="color:#a6e22e">gain&lt;/span>(.&lt;span style="color:#ae81ff">4&lt;/span>).&lt;span style="color:#a6e22e">lpf&lt;/span>(&lt;span style="color:#ae81ff">400&lt;/span>).&lt;span style="color:#a6e22e">gain&lt;/span>(.&lt;span style="color:#ae81ff">2&lt;/span>)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#a6e22e">$&lt;/span>&lt;span style="color:#f92672">:&lt;/span> &lt;span style="color:#a6e22e">saws&lt;/span>.&lt;span style="color:#a6e22e">tremolosync&lt;/span>(&lt;span style="color:#e6db74">&amp;#34;16&amp;#34;&lt;/span>).&lt;span style="color:#a6e22e">tremoloskew&lt;/span>(&lt;span style="color:#e6db74">&amp;#34;&amp;lt;0 -1 -2&amp;gt;*2&amp;#34;&lt;/span>)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> .&lt;span style="color:#a6e22e">orbit&lt;/span>(&lt;span style="color:#ae81ff">2&lt;/span>,&lt;span style="color:#ae81ff">4&lt;/span>,&lt;span style="color:#ae81ff">7&lt;/span>).&lt;span style="color:#a6e22e">attack&lt;/span>(&lt;span style="color:#e6db74">&amp;#34;&amp;lt;.3 .2 .1&amp;gt;*4&amp;#34;&lt;/span>)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> .&lt;span style="color:#a6e22e">juxBy&lt;/span>(.&lt;span style="color:#ae81ff">2&lt;/span>, &lt;span style="color:#a6e22e">rev&lt;/span>).&lt;span style="color:#a6e22e">gain&lt;/span>(.&lt;span style="color:#ae81ff">2&lt;/span>)
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>I would not consider myself a particularly talented or informed person when it
comes to music theory or music production, but this kind of thing that melds
programming and art is something I find really cool and I hope you do as well.&lt;/p></description></item><item><title>SSH Port Forwarding &amp; Tunneling</title><link>https://jamiam.dev/posts/ssh-port-forwarding/</link><pubDate>Wed, 26 Nov 2025 20:00:55 -0500</pubDate><guid>https://jamiam.dev/posts/ssh-port-forwarding/</guid><description>&lt;p>The most common use case for &lt;code>ssh&lt;/code> is to securely access a shell on a remote
systems. However &lt;code>ssh&lt;/code> is also very useful for Port Forwarding (sometimes
called tunneling if done in reverse).&lt;/p>
&lt;p>I initially had a hard time wrapping my head around the difference between
forward and reverse when it comes to ports and traffic. I have definitely
searched how to do this and done it myself a few times before it stuck.&lt;/p></description></item><item><title>Arc Raiders Server Slam - Playtest Oct. 2025</title><link>https://jamiam.dev/posts/arc-raiders-playtest-oct-2025/</link><pubDate>Sun, 19 Oct 2025 00:32:45 -0400</pubDate><guid>https://jamiam.dev/posts/arc-raiders-playtest-oct-2025/</guid><description>&lt;p>This weekend, I have been entrenched in the
&lt;a href="https://arcraiders.com/en/" target="_blank">Arc Raiders&lt;/a> &amp;ldquo;Server Slam&amp;rdquo; playtest.&lt;/p>
&lt;p>&lt;img src="https://static0.gamerantimages.com/wordpress/wp-content/uploads/2025/10/arc-raiders-frequently-asked-questions.jpg?q=49&amp;amp;fit=crop&amp;amp;w=825&amp;amp;dpr=2" alt="img">&lt;/p>
&lt;p>After sinking some hours in &lt;strong>Arc Raiders&lt;/strong> this weekend with some friends, I can
see the why this genre of game (extraction shooter) are so good / addictive.&lt;/p>
&lt;p>Here&amp;rsquo;s some initial thoughts:&lt;/p>
&lt;p>&lt;strong>Gameplay&lt;/strong>&lt;/p>
&lt;p>The looting mechanics, shooting, upgrading and crafting are really satisfying.
The guns are really unique and feel balanced. If you have to use the &amp;ldquo;free
loadout&amp;rdquo; due to not having any materials to craft or buy a weapon - it does not
feel like a huge deal. Each decision to stay or continue looting feels like it
should &amp;ndash; a gamble to get more loot vs returning safely to the elevator with
what&amp;rsquo;s in your backpack.&lt;/p></description></item><item><title>Using Nobara Linux (3 month review)</title><link>https://jamiam.dev/posts/using-nobara-linux-3-months/</link><pubDate>Thu, 09 Oct 2025 12:24:37 -0400</pubDate><guid>https://jamiam.dev/posts/using-nobara-linux-3-months/</guid><description>&lt;p>&lt;a href="https://nobaraproject.org/" target="_blank">Nobara Linux&lt;/a> is a Fedora based Linux distribution by &lt;a href="https://github.com/GloriousEggroll" target="_blank">Glorious Eggroll&lt;/a>.&lt;/p>
&lt;p>This summary from the website is pretty good&lt;/p>
&lt;blockquote>
&lt;p>The Nobara Project, to put it simply, is a modified version of Fedora Linux with user-friendly fixes added to it.&lt;/p>&lt;/blockquote>
&lt;p>What fixes specifically?&lt;/p>
&lt;blockquote>
&lt;p>This project aims to fix most of those issues and offer a better gaming, streaming, and content creation experience out of the box. More importantly, we want to be more point and click friendly, and avoid the basic user from having to open the terminal. It’s not that the terminal and/or terminal usage are a bad thing by any means, power users are more than welcome to continue with using the terminal, but for new users, point and click ease of use is usually expected.&lt;/p></description></item><item><title>Neovim Config</title><link>https://jamiam.dev/posts/neovim-config/</link><pubDate>Sat, 09 Aug 2025 20:21:55 -0400</pubDate><guid>https://jamiam.dev/posts/neovim-config/</guid><description>&lt;p>I remember when I initially tried Neovim a few years ago, I was
mostly focused on rewriting my existing Vim configuration from Vimscript
to Lua.&lt;/p>
&lt;p>I ended up splitting parts of my config up into separate
folders and lua files.&lt;/p>
&lt;p>I separated my user configurations from plugin configuration
like this:&lt;/p>
&lt;pre tabindex="0">&lt;code>~/.config/nvim/lua/
├── config
│   ├── keymaps.lua
│   ├── lazy.lua
│   ├── local.lua
│   ├── platform_specific.lua
│   └── settings.lua
└── plugin-config
 ├── cmp.lua
 ├── colorscheme.lua
 ├── fzf.lua
 ├── gitsigns.lua
 ├── init.lua
 ├── lsp.lua
 ├── nvim-treesitter.lua
 ├── oil.lua
 └── vim-fugitive.lua

3 directories, 14 files
&lt;/code>&lt;/pre>&lt;ul>
&lt;li>The files in &lt;code>config/&lt;/code> are required from my &lt;code>init.lua&lt;/code>&lt;/li>
&lt;li>&lt;code>plugin-config/init.lua&lt;/code> is required from my &lt;code>init.lua&lt;/code>&lt;/li>
&lt;li>The files in &lt;code>plugin-config/&lt;/code> are required from &lt;code>plugin-config/init.lua&lt;/code>&lt;/li>
&lt;/ul>
&lt;p>Overall, this is a much cleaner way than a single file that
is 100 or possibly 1000s of lines long. It also ensures each
plugin has its own configuration file, which I really prefer.&lt;/p></description></item><item><title>Mini PC Build</title><link>https://jamiam.dev/posts/mini-pc-build/</link><pubDate>Sat, 26 Apr 2025 09:22:20 -0400</pubDate><guid>https://jamiam.dev/posts/mini-pc-build/</guid><description>&lt;p>This is an update post for the Mini PC build promised earlier in
&lt;a href="https://jamiam.dev/posts/pc-homelab-update-03-2025/#pc-upgrade">this post&lt;/a>&lt;/p>
&lt;p>I have had some question on &amp;ldquo;why&amp;rdquo; so I thought I would give some of the motivation
for the Mini ITX form factor and it really boils to this:&lt;/p>
&lt;h2 id="motivations">Motivations&lt;/h2>
&lt;ol>
&lt;li>I have always wanted to build a smaller form factor PC.&lt;/li>
&lt;li>I have never needed to use all the ports on my previous gaming PC builds.&lt;/li>
&lt;li>More lightweight and portable. It fits on my desk better.&lt;/li>
&lt;li>The price/performance was right (at least for the mobo/cpu)&lt;/li>
&lt;/ol>
&lt;h2 id="sourcing-parts-shopping">Sourcing Parts (Shopping)&lt;/h2>
&lt;p>I ordered almost all the parts for this build off of Amazon. There are not any
good PC part retailers around my area and most of the things that I bought
had some kind of sale - which doesn&amp;rsquo;t really amount to much savings these days.&lt;/p></description></item><item><title>Starting Vanilla Emacs</title><link>https://jamiam.dev/posts/starting-vanilla-emacs/</link><pubDate>Thu, 20 Mar 2025 15:53:13 -0400</pubDate><guid>https://jamiam.dev/posts/starting-vanilla-emacs/</guid><description>&lt;p>A few days ago, in an kind of curious mood, I decided it would be a good time to give
Emacs (and key-binds) another try for no reason in particular. I already use the
&lt;code>readline&lt;/code> key-binds in the shell, so I&amp;rsquo;m almost like half-way there or something, right?&lt;/p>
&lt;h2 id="previous-attempt-using-vanilla-emacs">Previous Attempt Using Vanilla Emacs&lt;/h2>
&lt;p>I had tried using vanilla Emacs before and the defaults were just bad enough to keep
me away.&lt;/p></description></item><item><title>Migrate Your Repos From Github To Gitea+</title><link>https://jamiam.dev/posts/migrate-repos-from-github/</link><pubDate>Fri, 07 Mar 2025 18:29:34 -0500</pubDate><guid>https://jamiam.dev/posts/migrate-repos-from-github/</guid><description>&lt;p>Hello, it is me again. Here today talking about getting repos &lt;em>off&lt;/em> of GitHub
and taking them elsewhere.&lt;/p>
&lt;p>Any one of the great alternatives that exist out there like
{GitLab, Gitea, Gogs, Bitbucket}.&lt;/p>
&lt;p>In my particular case - I am messing around with self-hosting a &lt;a href="https://docs.gitea.com/" target="_blank">Gitea&lt;/a>
instance, so that will be the focus here.&lt;/p>
&lt;h2 id="setup">Setup&lt;/h2>
&lt;p>First thing, we will need to get access to the GitHub cli tool &lt;code>gh&lt;/code>.&lt;/p>
&lt;ul>
&lt;li>&lt;a href="https://github.com/cli/cli?tab=readme-ov-file#installation" target="_blank">Install it&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://cli.github.com/manual/gh_auth_login" target="_blank">Authorize with &lt;code>gh auth login&lt;/code>&lt;/a>&lt;/li>
&lt;/ul>
&lt;p>and you are off to the races.&lt;/p></description></item><item><title>PC and Homelab Upgrades (Coming Soon)</title><link>https://jamiam.dev/posts/pc-homelab-update-03-2025/</link><pubDate>Thu, 06 Mar 2025 22:01:35 -0500</pubDate><guid>https://jamiam.dev/posts/pc-homelab-update-03-2025/</guid><description>&lt;p>It has been some time since posting and that is mostly because I have fallen
out of the habit of writing (again), but I have been 10000% addicted to
&lt;a href="https://store.steampowered.com/app/2379780/Balatro/" target="_blank">Balatro&lt;/a> which is the
only habit you realllly need to cope with the current state of the world.
(Let me know if you need any tips to get to gold stake)&lt;/p>
&lt;p>I am excited to say &amp;ndash; as of this post :D &amp;ndash; that this is no longer the case.&lt;/p></description></item><item><title>Bonsai Trees on the CLI (cbonsai)</title><link>https://jamiam.dev/posts/cbonsai-cli/</link><pubDate>Sun, 14 Jul 2024 14:03:34 -0400</pubDate><guid>https://jamiam.dev/posts/cbonsai-cli/</guid><description>&lt;p>Hello, I am back again sharing a mostly useless, but very pretty and awesome
CLI program called &lt;code>cbonsai&lt;/code>&lt;/p>
&lt;p>Repo is here:
&lt;a href="https://gitlab.com/jallbrit/cbonsai" target="_blank">https://gitlab.com/jallbrit/cbonsai&lt;/a>&lt;/p>
&lt;p>It can be installed (on Mac) using&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-shell" data-lang="shell">&lt;span style="display:flex;">&lt;span>brew install cbonsai
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>This is the result:&lt;/p>
&lt;p>&lt;img src="https://jamiam.dev/images/posts/cbonsai-cli/bonsai_tree.png" alt="bonsai_tree">&lt;/p>
&lt;p>You can also use it in screensaver mode &lt;code>cbonsai -S&lt;/code> where you can see the
trees being continuously generated live.&lt;/p>
&lt;p>&lt;img src="https://jamiam.dev/images/posts/cbonsai-cli/bonsai_tree.gif" alt="bonsai_tree_gif">&lt;/p>
&lt;p>Really cool and oddly satisfying.&lt;/p>
&lt;p>It is well known that programmers enjoy trees, but this takes it to a whole
other level.&lt;/p></description></item><item><title>Whats New May 2024</title><link>https://jamiam.dev/posts/whats-new-april-2024/</link><pubDate>Thu, 02 May 2024 01:45:14 -0400</pubDate><guid>https://jamiam.dev/posts/whats-new-april-2024/</guid><description>&lt;p>I feel like it is time to make a new post here and write a little bit.&lt;/p>
&lt;p>There have been lots of life changes recently so maybe I will write more later.&lt;/p>
&lt;p>I have some things planned for the rest of this year, hopefully lots will come
to fruition.&lt;/p>
&lt;p>I have recently bought a Valve Index Kit and have been enjoying VR - playing
through Half-Life Alyx currently.
I have to admit it is bringing me back into gaming.&lt;/p></description></item><item><title>1 Year Googleversary</title><link>https://jamiam.dev/posts/1-year-googleversary/</link><pubDate>Sat, 03 Feb 2024 00:26:32 -0500</pubDate><guid>https://jamiam.dev/posts/1-year-googleversary/</guid><description>&lt;p>Today marks a special milestone for me - my one-year anniversary as a Data
Center Technician at Google! As I reflect on the past year, I am filled with
immense gratitude for the incredible journey it&amp;rsquo;s been.&lt;/p>
&lt;p>This experience has been far more than just a job; it&amp;rsquo;s been a chance to learn,
grow, and contribute to something truly meaningful.&lt;/p>
&lt;p>Sure, it is not all kittens and rainbows. There are many things that could use
improvement, more in fact than I can give thoughtful feedback on - but I do my best.
That&amp;rsquo;s why we have team(s) though and as I learn more about how Google works,
I am also filled with a sense of community and comradery with the people that I
work with everyday.&lt;/p></description></item><item><title>Setting Up Traefik Reverse Proxy (with HTTPS) - Docker Compose</title><link>https://jamiam.dev/posts/setting-up-traefik-reverse-proxy-with-https-docker/</link><pubDate>Tue, 20 Dec 2022 23:59:21 -0500</pubDate><guid>https://jamiam.dev/posts/setting-up-traefik-reverse-proxy-with-https-docker/</guid><description>&lt;h2 id="setting-up-traefik-reverse-proxy">Setting Up Traefik Reverse Proxy&lt;/h2>
&lt;p>&lt;a href="https://github.com/traefik/traefik" target="_blank">Traefik&lt;/a> is a reverse proxy program often
used with docker to route web requests to different services on the backend.&lt;/p>
&lt;p>It also has some really handy features like automatic HTTPS certs and
a configuration syntax based on labels that makes it relatively easy to add
to existing &lt;code>docker-compose&lt;/code> files or even Docker Swarm and Kubernetes.&lt;/p>
&lt;p>Be sure to look at &lt;a href="https://doc.traefik.io/traefik/getting-started/concepts/" target="_blank">the docs&lt;/a>
to get a better overview.&lt;/p></description></item><item><title>Selfhost a Minecraft Server With Docker</title><link>https://jamiam.dev/posts/selfhost-minecraft-server-with-docker/</link><pubDate>Mon, 19 Dec 2022 15:22:46 -0500</pubDate><guid>https://jamiam.dev/posts/selfhost-minecraft-server-with-docker/</guid><description>&lt;h2 id="self-hosting-a-minecraft-server">Self-Hosting a Minecraft server&lt;/h2>
&lt;p>This is going to be quick rundown on running Minecraft as a docker container.&lt;/p>
&lt;h3 id="prequisite">Prequisite&lt;/h3>
&lt;ul>
&lt;li>A computer with &lt;code>docker&lt;/code> and &lt;code>docker-compose&lt;/code> installed&lt;/li>
&lt;/ul>
&lt;p>The minecraft docker image we are using is &lt;a href="https://github.com/itzg/docker-minecraft-server" target="_blank">itzj/minecraft-server&lt;/a>&lt;/p>
&lt;h2 id="the-compose-file">The compose file&lt;/h2>
&lt;p>Paste the following into a &lt;code>docker-compose.yml&lt;/code>&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-yml" data-lang="yml">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#f92672">version&lt;/span>: &lt;span style="color:#e6db74">&amp;#34;3&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#f92672">services&lt;/span>:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#f92672">minecraft-server&lt;/span>:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#f92672">image&lt;/span>: &lt;span style="color:#ae81ff">itzg/minecraft-server&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#f92672">container_name&lt;/span>: &lt;span style="color:#ae81ff">my-mc-server&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#f92672">ports&lt;/span>:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> - &lt;span style="color:#ae81ff">25565&lt;/span>:&lt;span style="color:#ae81ff">25565&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#f92672">environment&lt;/span>:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#f92672">EULA&lt;/span>: &lt;span style="color:#e6db74">&amp;#34;TRUE&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#f92672">tty&lt;/span>: &lt;span style="color:#66d9ef">true&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#f92672">stdin_open&lt;/span>: &lt;span style="color:#66d9ef">true&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#f92672">restart&lt;/span>: &lt;span style="color:#ae81ff">unless-stopped&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#f92672">volumes&lt;/span>:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> - &lt;span style="color:#ae81ff">./minecraft_data:/data&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>After you have that file - run &lt;code>docker-compose up -d&lt;/code> to run the services
in this compose file.&lt;/p></description></item><item><title>Budget Linear Keyboard Build (December 2022)</title><link>https://jamiam.dev/posts/budget_linear_keyboard_build/</link><pubDate>Fri, 02 Dec 2022 14:29:06 -0500</pubDate><guid>https://jamiam.dev/posts/budget_linear_keyboard_build/</guid><description>&lt;h2 id="keyboards-keyboards-keyboards">Keyboards, keyboards, keyboards&lt;/h2>
&lt;p>I love keyboards. As a hobby, as a peripheral and as a history and culture, these things
are all really cool to me. There is just something magic about having an input device
with so many buttons, configurations and arrangements.
So many different typing experiences and ways to customize as well.&lt;/p>
&lt;p>I have been wanting to get back into linear switches, as I have almost exclusively used
tactile for the last couple years and have been really wanting to get switches that are
both lighter quieter.&lt;/p></description></item><item><title>How To Add Git Credentials On Linux and macOS Hosts (SSH and PAT)</title><link>https://jamiam.dev/posts/how-to-add-git-credentials-on-linux-mac-hosts/</link><pubDate>Thu, 01 Dec 2022 11:43:48 -0500</pubDate><guid>https://jamiam.dev/posts/how-to-add-git-credentials-on-linux-mac-hosts/</guid><description>&lt;p>This post is going to be a very short guide on creating/adding a PAT (personal access token)
or SSH key on &lt;a href="https://github.com" target="_blank">GitHub&lt;/a> and adding it to a Linux (or Mac) host.&lt;/p>
&lt;p>This is necessary because GitHub has &lt;a href="https://github.blog/changelog/2021-08-12-git-password-authentication-is-shutting-down/" target="_blank">deprecated password authentication as of
August 13, 2021&lt;/a>&lt;/p>
&lt;p>This means all authentication on the platform can only be done two ways:&lt;/p>
&lt;ol>
&lt;li>&lt;a href="https://github.com/settings/keys" target="_blank">SSH/GPG Keys&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://github.com/settings/tokens" target="_blank">PAT (Personal Access Tokens)&lt;/a>&lt;/li>
&lt;/ol>
&lt;h2 id="generating-ssh-keys">Generating SSH Keys&lt;/h2>
&lt;p>Follow &lt;a href="https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent" target="_blank">this guide&lt;/a>
to create ssh keys with &lt;code>ssh-keygen&lt;/code>.&lt;/p></description></item><item><title>Re-Learning How to Solve The Rubiks Cube</title><link>https://jamiam.dev/posts/re-learning-how-to-solve-the-rubicks-cube/</link><pubDate>Fri, 25 Nov 2022 08:52:07 -0500</pubDate><guid>https://jamiam.dev/posts/re-learning-how-to-solve-the-rubicks-cube/</guid><description>&lt;p>It was another restless night with not even the slightest chance of sleep - I picked up
the rubicks cube that I had a gotten a few years ago on christmas&amp;hellip; or perhaps it was the
cube that kept me up restlessly. It was time for me to learn the secrets of this plastic puzzle - onece again!&lt;/p>
&lt;p>Initially I had learned the basic solving steps a few years ago (bottom-&amp;gt;top),
but had not comitted them to memory (at least not to the long-term kind)&lt;/p></description></item><item><title>Changing Hugo Themes</title><link>https://jamiam.dev/posts/changing-hugo-themes/</link><pubDate>Wed, 23 Nov 2022 11:42:32 -0500</pubDate><guid>https://jamiam.dev/posts/changing-hugo-themes/</guid><description>&lt;h2 id="revisiting-hugo-themes-heart">Revisiting Hugo Themes :heart:&lt;/h2>
&lt;p>I started using Hugo in 2019 and have stuck with the same theme for my blog for
the most of that time&amp;hellip; until now.&lt;/p>
&lt;p>I ended up on &lt;a href="https://github.com/nunocoracao/blowfish" target="_blank">Blowfish&lt;/a> mostly because
the flexibility of layouts and feature set was exactly what I was looking for in
a theme.&lt;/p>
&lt;h2 id="hugo-learnings">Hugo Learnings&lt;/h2>
&lt;p>I also learned some things about Hugo content organization, changing Site params
in frontmatter and a directory based config approach (compared to a single file).&lt;/p></description></item><item><title>Tracking the Hours of my Week with Python</title><link>https://jamiam.dev/posts/weekly-time-tracking-with-python/</link><pubDate>Sun, 14 Aug 2022 03:16:48 -0400</pubDate><guid>https://jamiam.dev/posts/weekly-time-tracking-with-python/</guid><description>&lt;p>I wanted to see some percentages of how much time certain things take out of my week.
This obviously does not reflect the reality and to be honest I doubt it really comes close, but I found it to be an interesting exercise.&lt;/p>
&lt;h2 id="script-output">Script Output&lt;/h2>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-text" data-lang="text">&lt;span style="display:flex;">&lt;span>------------------------
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>Time Map:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>------------------------
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>[29.8%] work : {&amp;#39;working&amp;#39;: 40, &amp;#39;commuting&amp;#39;: 10}
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>[40.5%] health : {&amp;#39;sleep&amp;#39;: 35, &amp;#39;showers&amp;#39;: 3.5, &amp;#39;gym&amp;#39;: 3, &amp;#39;meditating&amp;#39;: 3.5, &amp;#39;cleaning_cooking&amp;#39;: 7, &amp;#39;eating&amp;#39;: 7, &amp;#39;pooping&amp;#39;: 7, &amp;#39;laundry&amp;#39;: 2}
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>[16.7%] digital_entertainment: {&amp;#39;gaming&amp;#39;: 7, &amp;#39;watching_videos&amp;#39;: 21}
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>[10.4%] learning_studying: {&amp;#39;reading&amp;#39;: 7, &amp;#39;learning_japanese&amp;#39;: 3.5, &amp;#39;coding_proj&amp;#39;: 7}
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>------------------------
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>Time Used:
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>------------------------
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>[97.3] % used
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>[2.7] % left
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>------------------------
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>used hrs 163.5 / 168
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="the-script">The Script&lt;/h2>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-python" data-lang="python">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e">#!/usr/bin/env python3&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e"># this is a very simplified, rough estimate of time as there is much more&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e"># variation and drift in these things, however the things that do not change&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e"># for me are work, sleep (I don&amp;#39;t usually get a full 8 hours :/)&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e"># i know there are lots of ways to log time spent on various things and that would&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e"># take a lot of the guess work out of these things. something to consider in the future&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>hrs_in_week &lt;span style="color:#f92672">=&lt;/span> &lt;span style="color:#ae81ff">24&lt;/span> &lt;span style="color:#f92672">*&lt;/span> &lt;span style="color:#ae81ff">7&lt;/span> &lt;span style="color:#75715e"># 168 hours in a week - that&amp;#39;s not ever going to change&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e"># this is a map of groups of things that i dedicate my time to&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#75715e"># the (++) or (--) parentheses at the end of the comments indicate what i want to spend more or less time on&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>hours_map &lt;span style="color:#f92672">=&lt;/span> {
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#e6db74">&amp;#34;work&amp;#34;&lt;/span>: {
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#e6db74">&amp;#34;working&amp;#34;&lt;/span>: &lt;span style="color:#ae81ff">8&lt;/span> &lt;span style="color:#f92672">*&lt;/span> &lt;span style="color:#ae81ff">5&lt;/span>, &lt;span style="color:#75715e"># currently working a 9-5 schedule. this is not very cash money (--)&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#e6db74">&amp;#34;commuting&amp;#34;&lt;/span>: &lt;span style="color:#ae81ff">2&lt;/span> &lt;span style="color:#f92672">*&lt;/span> &lt;span style="color:#ae81ff">5&lt;/span>, &lt;span style="color:#75715e"># an hour each way to work in the car. this does not spark joy (--)&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> },
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#e6db74">&amp;#34;health&amp;#34;&lt;/span>: {
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#e6db74">&amp;#34;sleep&amp;#34;&lt;/span>: &lt;span style="color:#ae81ff">5&lt;/span> &lt;span style="color:#f92672">*&lt;/span> &lt;span style="color:#ae81ff">7&lt;/span>, &lt;span style="color:#75715e"># ideally getting 8 hours of sleep (more often 4-6 is the case). I should get more sleep (++)&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#e6db74">&amp;#34;showers&amp;#34;&lt;/span>: &lt;span style="color:#ae81ff">.5&lt;/span> &lt;span style="color:#f92672">*&lt;/span> &lt;span style="color:#ae81ff">7&lt;/span>, &lt;span style="color:#75715e"># i take short showers (G)&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#e6db74">&amp;#34;gym&amp;#34;&lt;/span>: &lt;span style="color:#ae81ff">1&lt;/span> &lt;span style="color:#f92672">*&lt;/span> &lt;span style="color:#ae81ff">3&lt;/span>, &lt;span style="color:#75715e"># if I don&amp;#39;t skip leg day (++)&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#e6db74">&amp;#34;meditating&amp;#34;&lt;/span>: &lt;span style="color:#ae81ff">.5&lt;/span> &lt;span style="color:#f92672">*&lt;/span> &lt;span style="color:#ae81ff">7&lt;/span>, &lt;span style="color:#75715e"># like to spend an hour or two meditating throughout the day (++)&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#e6db74">&amp;#34;cleaning_cooking&amp;#34;&lt;/span>: &lt;span style="color:#ae81ff">1&lt;/span> &lt;span style="color:#f92672">*&lt;/span> &lt;span style="color:#ae81ff">7&lt;/span>, &lt;span style="color:#75715e"># easily could be more/less (++)&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#e6db74">&amp;#34;eating&amp;#34;&lt;/span>: &lt;span style="color:#ae81ff">1&lt;/span> &lt;span style="color:#f92672">*&lt;/span> &lt;span style="color:#ae81ff">7&lt;/span>, &lt;span style="color:#75715e"># could me more or less (G)&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#e6db74">&amp;#34;pooping&amp;#34;&lt;/span>: &lt;span style="color:#ae81ff">1&lt;/span> &lt;span style="color:#f92672">*&lt;/span> &lt;span style="color:#ae81ff">7&lt;/span>, &lt;span style="color:#75715e"># also could be more or less (G)&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#e6db74">&amp;#34;laundry&amp;#34;&lt;/span>: &lt;span style="color:#ae81ff">2&lt;/span> &lt;span style="color:#75715e"># pretty much 2 hours for washing/drying/folding/putting-away clothes for the week (G)&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> },
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#e6db74">&amp;#34;digital_entertainment&amp;#34;&lt;/span>: {
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#e6db74">&amp;#34;gaming&amp;#34;&lt;/span>: &lt;span style="color:#ae81ff">1&lt;/span> &lt;span style="color:#f92672">*&lt;/span> &lt;span style="color:#ae81ff">7&lt;/span>, &lt;span style="color:#75715e"># usually don&amp;#39;t even play 7 hours of games these days :&amp;lt; (++)&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#e6db74">&amp;#34;watching_videos&amp;#34;&lt;/span>: &lt;span style="color:#ae81ff">3&lt;/span> &lt;span style="color:#f92672">*&lt;/span> &lt;span style="color:#ae81ff">7&lt;/span>, &lt;span style="color:#75715e"># usually watch more on YT or streaming. includes social media (--) (unless classic movies)&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> },
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#e6db74">&amp;#34;learning_studying&amp;#34;&lt;/span>: {
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#e6db74">&amp;#34;reading&amp;#34;&lt;/span>: &lt;span style="color:#ae81ff">1&lt;/span> &lt;span style="color:#f92672">*&lt;/span> &lt;span style="color:#ae81ff">7&lt;/span>, &lt;span style="color:#75715e"># reading more would be nice (++)&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#e6db74">&amp;#34;learning_japanese&amp;#34;&lt;/span>: &lt;span style="color:#ae81ff">.5&lt;/span> &lt;span style="color:#f92672">*&lt;/span> &lt;span style="color:#ae81ff">7&lt;/span>,&lt;span style="color:#75715e"># would like to spend an hour learning a new language (++)&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#e6db74">&amp;#34;coding_proj&amp;#34;&lt;/span>: &lt;span style="color:#ae81ff">1&lt;/span> &lt;span style="color:#f92672">*&lt;/span> &lt;span style="color:#ae81ff">7&lt;/span> &lt;span style="color:#75715e"># would also like to do more of this (++)&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> },
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>}
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>total_hours_used &lt;span style="color:#f92672">=&lt;/span> &lt;span style="color:#ae81ff">0&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>total_used_percentage &lt;span style="color:#f92672">=&lt;/span> &lt;span style="color:#ae81ff">0&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>print(&lt;span style="color:#e6db74">&amp;#34;------------------------&amp;#34;&lt;/span>)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>print(&lt;span style="color:#e6db74">&amp;#34;Time Map:&amp;#34;&lt;/span>)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>print(&lt;span style="color:#e6db74">&amp;#34;------------------------&amp;#34;&lt;/span>)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#66d9ef">for&lt;/span> k, v &lt;span style="color:#f92672">in&lt;/span> hours_map&lt;span style="color:#f92672">.&lt;/span>items():
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> hrs_sum &lt;span style="color:#f92672">=&lt;/span> sum(v&lt;span style="color:#f92672">.&lt;/span>values())
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> total_hours_used &lt;span style="color:#f92672">+=&lt;/span> hrs_sum
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> percentage &lt;span style="color:#f92672">=&lt;/span> (hrs_sum &lt;span style="color:#f92672">/&lt;/span> hrs_in_week) &lt;span style="color:#f92672">*&lt;/span> &lt;span style="color:#ae81ff">100&lt;/span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> total_used_percentage &lt;span style="color:#f92672">+=&lt;/span> percentage
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> print(&lt;span style="color:#e6db74">f&lt;/span>&lt;span style="color:#e6db74">&amp;#34;[&lt;/span>&lt;span style="color:#e6db74">{&lt;/span>percentage&lt;span style="color:#e6db74">:&lt;/span>&lt;span style="color:#e6db74">.1f&lt;/span>&lt;span style="color:#e6db74">}&lt;/span>&lt;span style="color:#e6db74">%] &lt;/span>&lt;span style="color:#e6db74">{&lt;/span>k &lt;span style="color:#e6db74">:&lt;/span>&lt;span style="color:#e6db74"> &amp;lt;15&lt;/span>&lt;span style="color:#e6db74">}&lt;/span>&lt;span style="color:#e6db74">: &lt;/span>&lt;span style="color:#e6db74">{&lt;/span>v&lt;span style="color:#e6db74">}&lt;/span>&lt;span style="color:#e6db74"> &amp;#34;&lt;/span>)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>print(&lt;span style="color:#e6db74">&amp;#34;------------------------&amp;#34;&lt;/span>)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>print(&lt;span style="color:#e6db74">&amp;#34;Time Used:&amp;#34;&lt;/span>)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>print(&lt;span style="color:#e6db74">&amp;#34;------------------------&amp;#34;&lt;/span>)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>print(&lt;span style="color:#e6db74">f&lt;/span>&lt;span style="color:#e6db74">&amp;#34;[&lt;/span>&lt;span style="color:#e6db74">{&lt;/span>total_used_percentage&lt;span style="color:#e6db74">:&lt;/span>&lt;span style="color:#e6db74">.1f&lt;/span>&lt;span style="color:#e6db74">}&lt;/span>&lt;span style="color:#e6db74">] % used&amp;#34;&lt;/span>)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>print(&lt;span style="color:#e6db74">f&lt;/span>&lt;span style="color:#e6db74">&amp;#34;[&lt;/span>&lt;span style="color:#e6db74">{&lt;/span>&lt;span style="color:#ae81ff">100&lt;/span> &lt;span style="color:#f92672">-&lt;/span> total_used_percentage&lt;span style="color:#e6db74">:&lt;/span>&lt;span style="color:#e6db74">.1f&lt;/span>&lt;span style="color:#e6db74">}&lt;/span>&lt;span style="color:#e6db74">] % left&amp;#34;&lt;/span>)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>print(&lt;span style="color:#e6db74">&amp;#34;------------------------&amp;#34;&lt;/span>)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>print()
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>print(&lt;span style="color:#e6db74">&amp;#34;used hrs&amp;#34;&lt;/span>, total_hours_used, &lt;span style="color:#e6db74">&amp;#34;/&amp;#34;&lt;/span>, hrs_in_week)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>print()
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>You can take this, modify it to what you spend time on and see what you can change around.&lt;/p></description></item><item><title>Zsh Git Prompt</title><link>https://jamiam.dev/posts/zsh-git-prompt/</link><pubDate>Thu, 11 Aug 2022 23:22:10 -0400</pubDate><guid>https://jamiam.dev/posts/zsh-git-prompt/</guid><description>&lt;h2 id="my-zsh-git-prompt">My ZSH Git Prompt&lt;/h2>
&lt;p>&lt;code>zsh&lt;/code> is a great interactive prompt, however it can be a little tough to find
solutions that do not rely on plugins or plugin managers like &lt;code>oh-my-zsh&lt;/code>.&lt;/p>
&lt;p>If you are looking for a portable zsh function for getting git status in
your zsh prompt, here is what I am using currently (adapted from my bash git prompt):&lt;/p>
&lt;p>&lt;a href="https://github.com/lemonase/dotfiles/blob/master/config/zsh/.zshrc#L225-L247" target="_blank">https://github.com/lemonase/dotfiles/blob/master/config/zsh/.zshrc#L225-L247&lt;/a>&lt;/p>
&lt;p>This function gets the git status and branch - greps out a few keywords that
I&amp;rsquo;m interested in and prints out some characters accordingly.&lt;/p></description></item><item><title>I Bought A New Laptop</title><link>https://jamiam.dev/posts/i-bought-a-new-laptop/</link><pubDate>Mon, 09 May 2022 16:37:53 -0400</pubDate><guid>https://jamiam.dev/posts/i-bought-a-new-laptop/</guid><description>&lt;h2 id="what-have-i-done">What have I done?&lt;/h2>
&lt;p>So I thought I would give a little update on what&amp;rsquo;s new with my setup - specifically my mobile setup.&lt;/p>
&lt;p>Well, here&amp;rsquo;s the news - I bought a new M1 MacBook Air (2020) about 2 or 3 weeks ago.
It is the lowest spec version too - so 8GB of RAM, 256GB SSD and all the hype.&lt;/p>
&lt;p>This is also my first Apple computer - my first Mac - so that&amp;rsquo;s pretty neat.
The ARM processor is also a big reason I wanted to get one of these things.&lt;/p></description></item><item><title>Setting Up Samba on a Raspberry Pi</title><link>https://jamiam.dev/posts/setting-up-smb-on-a-raspberry-pi/</link><pubDate>Sat, 22 May 2021 20:12:49 -0400</pubDate><guid>https://jamiam.dev/posts/setting-up-smb-on-a-raspberry-pi/</guid><description>&lt;p>&lt;a href="https://en.wikipedia.org/wiki/Samba_%28software%29" target="_blank">Samba&lt;/a> is one of the go-to protocols for sharing files over a network.&lt;/p>
&lt;p>It is builtin to Windows, but needs to be installed and configured on other OSes
like Linux and macOS.&lt;/p>
&lt;p>Thankfully the process is not too difficult.&lt;/p>
&lt;h2 id="installing-on-rasbian">Installing on Rasbian&lt;/h2>
&lt;p>Run the following command on your Pi to install a samba server and client onto
your Pi.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-sh" data-lang="sh">&lt;span style="display:flex;">&lt;span>sudo apt update &lt;span style="color:#f92672">&amp;amp;&amp;amp;&lt;/span> sudo apt install samba samba-common-bin smbclient cifs-utils
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="checking-the-smb-server">Checking the smb server&lt;/h2>
&lt;p>To check the status of your smb server, use:&lt;/p></description></item><item><title>A Minimal Vimrc</title><link>https://jamiam.dev/posts/a-minimal-vimrc/</link><pubDate>Sun, 02 May 2021 20:07:18 -0400</pubDate><guid>https://jamiam.dev/posts/a-minimal-vimrc/</guid><description>&lt;h2 id="parts-of-a-minimal-vimrc">Parts of a &amp;ldquo;minimal&amp;rdquo; vimrc&lt;/h2>
&lt;p>What makes a minimal vimrc?&lt;/p>
&lt;p>My opinion of a &amp;ldquo;minimal&amp;rdquo; vimrc might be different from yours, but for me, it means&lt;/p>
&lt;ol>
&lt;li>Not using external plugins&lt;/li>
&lt;li>&amp;lt; ~100 lines&lt;/li>
&lt;li>Reducing vi related pain-points&lt;/li>
&lt;/ol>
&lt;p>So here&amp;rsquo;s what I do:&lt;/p>
&lt;h3 id="source-default-settings">Source default settings&lt;/h3>
&lt;p>While this may not be necessary most of the time, it is still worth it to check
that it has been sourced IME. It is a small fine to pay for ensuring you have
the defaults you deserve.&lt;/p></description></item><item><title>Tips for Beginners - Learning Programming/Scripting is NOT easy</title><link>https://jamiam.dev/posts/tips-for-beginners-learning-programming/</link><pubDate>Sun, 14 Feb 2021 09:57:58 -0500</pubDate><guid>https://jamiam.dev/posts/tips-for-beginners-learning-programming/</guid><description>&lt;p>These are some thoughts about my personal experience with learning a new programming
environment like shell scripting (but this applies to almost any new environment).
This is mainly based off mistakes and pitfalls I&amp;rsquo;ve fallen into in the past, so this
post will be pretty cathartic, but perhaps it could be help someone out there.&lt;/p>
&lt;h3 id="5-tips">5 Tips&lt;/h3>
&lt;ol>
&lt;li>&lt;strong>Don&amp;rsquo;t&lt;/strong> try to memorize &lt;em>every&lt;/em> command, &lt;em>every&lt;/em> API, &lt;em>every&lt;/em> function, etc.
Learn enough to become functional in the environment. Build something and move on.&lt;/li>
&lt;li>Think twice about what you&amp;rsquo;re trying to accomplish before considering tools.&lt;/li>
&lt;li>Have a structured process for getting help and use it frequently.&lt;/li>
&lt;li>Realize that commands/interfaces have different design goals and that&amp;rsquo;s OK!&lt;/li>
&lt;li>Know when a command/library/framework doesn&amp;rsquo;t mesh with the problem you&amp;rsquo;re trying to solve.&lt;/li>
&lt;/ol>
&lt;p>Let me elaborate on these points a little bit.&lt;/p></description></item><item><title>Customizing Spotify With Spicetify</title><link>https://jamiam.dev/posts/customizing-spotify-with-spicetify/</link><pubDate>Thu, 11 Feb 2021 16:29:58 -0500</pubDate><guid>https://jamiam.dev/posts/customizing-spotify-with-spicetify/</guid><description>&lt;p>I recently learned about a project called &lt;a href="https://github.com/khanhas/spicetify-cli" target="_blank">spicetify&lt;/a>
that allows you to customize the theme of your Spotify client and I thought
I would share.&lt;/p>
&lt;p>&lt;a href="https://github.com/khanhas/spicetify-cli/wiki/Installation" target="_blank">Installing it&lt;/a>
is a few commands on all platforms and people have already made tons of
themes and extensions.&lt;/p>
&lt;h3 id="example">Example&lt;/h3>
&lt;p>This is what my Spotify looks like with the &amp;ldquo;Spicy&amp;rdquo; theme:&lt;/p>
&lt;p>&lt;img src="https://jamiam.dev/images/posts/spicetify/spicetify.png" alt="theme_pic">&lt;/p>
&lt;h2 id="configuration">Configuration&lt;/h2>
&lt;p>Customizations are stored in a config file located at:&lt;/p>
&lt;ul>
&lt;li>Windows: &lt;code>%USERPROFILE%\.spicetify\config.ini&lt;/code>&lt;/li>
&lt;li>Linux: &lt;code>~/.config/spicetify/config.ini&lt;/code>&lt;/li>
&lt;li>MacOS: &lt;code>~/spicetify_data/config.ini&lt;/code>&lt;/li>
&lt;/ul>
&lt;h2 id="themes">Themes&lt;/h2>
&lt;p>To get themes, you can clone the &lt;a href="https://github.com/morpheusthewhite/spicetify-themes" target="_blank">community themes repo&lt;/a>
and copy them to these directories&lt;/p></description></item><item><title>Powershell Modules for Bash Users</title><link>https://jamiam.dev/posts/powershell-modules-for-bash-users/</link><pubDate>Sun, 07 Feb 2021 02:11:01 -0500</pubDate><guid>https://jamiam.dev/posts/powershell-modules-for-bash-users/</guid><description>&lt;p>I&amp;rsquo;ve been trying to get used to PowerShell for a little while now and while it
is difficult to adjust coming from other shells, there are some modules I have installed
that make it much less of a pain.&lt;/p>
&lt;p>Modules are really core to what makes PowerShell extensible and you can &lt;a href="https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_modules?view=powershell-7.1" target="_blank">read more about them here&lt;/a>
but they work similar to other OOP languages and just like other interpreted
scripting languages, loading too many modules will slow down performance.&lt;/p></description></item><item><title>The State of Windows Package Managers (2021)</title><link>https://jamiam.dev/posts/windows-package-managers/</link><pubDate>Sat, 06 Feb 2021 22:48:36 -0500</pubDate><guid>https://jamiam.dev/posts/windows-package-managers/</guid><description>&lt;h1 id="windows-package-managers">Windows Package Managers&lt;/h1>
&lt;p>Using Linux has spoiled me when it comes to easily installing software.
The fact that there is a default package manager for every distro can be taken
for granted sometimes.
There are lots of open source, community driven package managers for
proprietary systems as well.&lt;/p>
&lt;p>Mac users boast &lt;a href="https://brew.sh/" target="_blank">homebrew&lt;/a>,
as their de facto package manager, but what about Windows?
Well I&amp;rsquo;ll tell you &amp;ndash; Windows has had a few package managers over the years.&lt;/p></description></item><item><title>Turn on Hardware Accelerated Video for Chrome/Firefox on Linux</title><link>https://jamiam.dev/posts/turn-on-hardware-accelerated-video-for-chrome-and-firefox-on-linux/</link><pubDate>Thu, 12 Nov 2020 12:51:47 -0500</pubDate><guid>https://jamiam.dev/posts/turn-on-hardware-accelerated-video-for-chrome-and-firefox-on-linux/</guid><description>&lt;h2 id="chrome">Chrome&lt;/h2>
&lt;ol>
&lt;li>
&lt;p>Open chrome and go type &lt;code>chrome://flags&lt;/code> in the address bar.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>Search for &lt;strong>&amp;ldquo;video decode&amp;rdquo;&lt;/strong>&lt;/p>
&lt;/li>
&lt;li>
&lt;p>Change &lt;strong>&amp;ldquo;Hardware-accelerated video decode&amp;rdquo;&lt;/strong> from &amp;ldquo;Disabled&amp;rdquo; to &amp;ldquo;Enabled&amp;rdquo;&lt;/p>
&lt;/li>
&lt;/ol>
&lt;p>&lt;img src="https://jamiam.dev/images/posts/browser-hardware-acceleration/chrome_ha.png" alt="chrome_scrnshot">&lt;/p>
&lt;p>Another way to enable these flag features is creating a config file called
&lt;code>~/.config/chrome-flags.conf&lt;/code> for chrome or &lt;code>~/.config/chromium-flags.conf&lt;/code>
for chromium.&lt;/p>
&lt;p>For example here is mine:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-sh" data-lang="sh">&lt;span style="display:flex;">&lt;span>~ $ cat ~/.config/chromium-flags.conf
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>--ignore-gpu-blocklist
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>--disable-gpu-driver-workarounds
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>--enable-gpu-rasterization
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>--enable-accelerated-video-decode
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="firefox">Firefox&lt;/h2>
&lt;ol>
&lt;li>
&lt;p>Open Firefox and type &lt;code>about:config&lt;/code> in the address bar.&lt;/p>
&lt;/li>
&lt;li>
&lt;p>Click &amp;ldquo;Accept the Risk and Continue&amp;rdquo; (don&amp;rsquo;t worry the risk here is very minimal)&lt;/p></description></item><item><title>Exploring Chromium User Data</title><link>https://jamiam.dev/posts/exploring-chromium-user-data/</link><pubDate>Fri, 06 Nov 2020 11:48:04 -0500</pubDate><guid>https://jamiam.dev/posts/exploring-chromium-user-data/</guid><description>&lt;p>&lt;img src="https://jamiam.dev/images/posts/chromium/chromium_material.png" alt="Chromium_Icon">&lt;/p>
&lt;blockquote>
&lt;p>&lt;!-- raw HTML omitted -->The Chromium Development Documentation Project [1] / &amp;quot;The Chromium Authors&amp;quot; as per the open source development agreement&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->CC BY 2.5&lt;!-- raw HTML omitted -->, via Wikimedia Commons&lt;/p>&lt;/blockquote>
&lt;h2 id="exposition">Exposition&lt;/h2>
&lt;p>These days browsers can store &lt;strong>a lot&lt;/strong> of user data on your local computer if
you let them.
They also urge you to create an account and login so that your browsing data +
tons of other data can be synced to a server.&lt;/p></description></item><item><title>Working With Absolute and Relative Paths</title><link>https://jamiam.dev/posts/working-with-paths/</link><pubDate>Sat, 10 Oct 2020 01:26:21 -0400</pubDate><guid>https://jamiam.dev/posts/working-with-paths/</guid><description>&lt;p>&lt;img src="https://jamiam.dev/images/posts/paths/path.jpg" alt="Path">&lt;/p>
&lt;blockquote>
&lt;p>&lt;!-- raw HTML omitted -->Denis Zastanceanu&lt;!-- raw HTML omitted -->, &lt;!-- raw HTML omitted -->CC BY-SA 4.0&lt;!-- raw HTML omitted -->, via Wikimedia Commons&lt;/p>&lt;/blockquote>
&lt;h2 id="shell">Shell&lt;/h2>
&lt;h3 id="getting-the-current-working-directory">Getting the current working directory&lt;/h3>
&lt;p>The environment variable &lt;code>$PWD&lt;/code> and the command &lt;code>pwd&lt;/code> are essentially synonymous.
&lt;code>pwd&lt;/code> has flags for dealing with symlinks.&lt;/p>
&lt;h3 id="absolute-canonical-path">Absolute (canonical) path&lt;/h3>
&lt;ul>
&lt;li>&lt;code>realpath&lt;/code> - Turns relative paths into absolute paths&lt;/li>
&lt;li>&lt;code>readlink -f&lt;/code> - Originally meant to read symlinks. The &lt;code>-f&lt;/code> flag means give &amp;ldquo;cannonical&amp;rdquo; path.&lt;/li>
&lt;/ul>
&lt;h3 id="elements-of-a-directory">Elements of a directory&lt;/h3>
&lt;ul>
&lt;li>&lt;code>dirname&lt;/code> - Strips the rightmost part from a given directory.&lt;/li>
&lt;li>&lt;code>basename&lt;/code> - Strips all base directories, leaving the last (rightmost) part of a path/file&lt;/li>
&lt;/ul>
&lt;p>NOTE: These commands do not check if a file/directory actually exists, they just
manipulate path strings. Also, be careful when dealing with symbolic links and
read the man page to get the desired behavior.&lt;/p></description></item><item><title>Locating Commands</title><link>https://jamiam.dev/posts/locating-commands/</link><pubDate>Fri, 09 Oct 2020 21:40:26 -0400</pubDate><guid>https://jamiam.dev/posts/locating-commands/</guid><description>&lt;h2 id="getting-the-location-of-commands-in-unix">Getting the location of commands in Unix&lt;/h2>
&lt;h3 id="unix-shells">Unix Shells&lt;/h3>
&lt;p>AFAIK, there are four ways to find out where a command is in your path.&lt;/p>
&lt;h4 id="shell-builtins">Shell Builtins&lt;/h4>
&lt;ul>
&lt;li>
&lt;p>&lt;code>command -v&lt;/code> (POSIX shell way)&lt;/p>
&lt;ul>
&lt;li>Shows the command that would be run by your shell (without actually running it)&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>
&lt;p>&lt;code>type [-afptP]&lt;/code> (bash builtin way)&lt;/p>
&lt;ul>
&lt;li>Essentially the same function as &lt;code>command&lt;/code>, but with more options&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ul>
&lt;p>Both &lt;code>command&lt;/code> and &lt;code>type&lt;/code> can output the location of any &lt;strong>executable&lt;/strong>,
&lt;strong>script&lt;/strong>, &lt;strong>alias&lt;/strong>, or &lt;strong>shell builtin&lt;/strong> in your $PATH and your shell
environment.&lt;/p></description></item><item><title>Booting, init and systemd basics</title><link>https://jamiam.dev/posts/systemd-basics/</link><pubDate>Wed, 22 Jul 2020 15:05:41 -0400</pubDate><guid>https://jamiam.dev/posts/systemd-basics/</guid><description>&lt;h2 id="init-systems">Init Systems&lt;/h2>
&lt;p>The &lt;strong>initial process&lt;/strong> that runs on a Unix/Linux system is responsible for
forking the rest of the processes that are needed in order to &amp;ldquo;boot&amp;rdquo; the
system. This is the core function of an init-system. It is effectively the first process
where execution is handed off from the kernel to &amp;ldquo;userspace&amp;rdquo;, where processes
get PIDs, cpu time and network/memory/disk access via calls to the kernel or kernel modules
(drivers).&lt;/p></description></item><item><title>Finding Files on Linux</title><link>https://jamiam.dev/posts/finding-files-on-linux/</link><pubDate>Tue, 21 Jul 2020 23:41:00 -0400</pubDate><guid>https://jamiam.dev/posts/finding-files-on-linux/</guid><description>&lt;h2 id="find-with-find">Find with &lt;code>find&lt;/code>&lt;/h2>
&lt;p>The &lt;code>find&lt;/code> command is a pretty basic utility, but it does have loads of options, which
may be intimidating at first, but keep in mind it has about every criteria you would
possibly need when searching for attributes of files or directories.&lt;/p>
&lt;p>It is also the standard way to search files/directories by criteria like name,
date created, size, permissions, user, and more.&lt;/p>
&lt;p>The syntax and options may seem irregular compared to other commands,
but I&amp;rsquo;ll show a few examples:&lt;/p></description></item><item><title>Schedule Jobs on Linux</title><link>https://jamiam.dev/posts/schedule-jobs-on-linux/</link><pubDate>Tue, 21 Jul 2020 01:47:17 -0400</pubDate><guid>https://jamiam.dev/posts/schedule-jobs-on-linux/</guid><description>&lt;p>&lt;img src="https://jamiam.dev/images/posts/cron/cal.png" alt="Calendar_Icon">&lt;/p>
&lt;p>If you want to schedule a program to run on a Unix based OS, there are
a handful of options, but the prominent ones found on Linux are
cron and systemd timers.&lt;/p>
&lt;p>Initially released in 1975, &lt;code>cron&lt;/code> has stood the test of time when it comes
to running a task on a schedule and it continues to be the standard solution
for all kinds of users.&lt;/p>
&lt;h2 id="how-does-it-work">How does it work&lt;/h2>
&lt;p>There is a file called &lt;code>crontab&lt;/code> which tells the cron daemon what to run
and when to run it.&lt;/p></description></item><item><title>Powershell Basics (Part 1)</title><link>https://jamiam.dev/posts/powershell-basics-pt1/</link><pubDate>Mon, 29 Jun 2020 16:11:02 -0400</pubDate><guid>https://jamiam.dev/posts/powershell-basics-pt1/</guid><description>&lt;p>&lt;img src="https://jamiam.dev/images/posts/powershell/PowerShell.jpg" alt="PowerShell_Logo">&lt;/p>
&lt;blockquote>
&lt;p>&lt;!-- raw HTML omitted -->For non-commercial purposes documentation or on a website) that reference your connection with Microsoft PowerShell.
&lt;!-- raw HTML omitted -->&lt;/p>&lt;/blockquote>
&lt;h2 id="things-to-know-about-powershell">Things To Know About PowerShell&lt;/h2>
&lt;p>First and foremost, PowerShell is unlike traditional Unix/Linux shells such as bash or zsh.
It is &lt;em>explicitly&lt;/em> object oriented and the most of the benefits come from the
fact that the majority of &amp;ldquo;builtin&amp;rdquo; commands (also known as cmdlets) and
everything related to input/output comes in the form of
objects which in turn have members, methods and inheritance.
This way data is more &amp;ldquo;structured&amp;rdquo; compared to shells that deal with plain text.&lt;/p></description></item><item><title>A Bit About DNS, HTTPS, and DNS Over HTTPS</title><link>https://jamiam.dev/posts/dns-and-https/</link><pubDate>Mon, 15 Jun 2020 15:48:39 -0400</pubDate><guid>https://jamiam.dev/posts/dns-and-https/</guid><description>&lt;p>&lt;img src="https://jamiam.dev/images/posts/dns/globe.png" alt="Globe">&lt;/p>
&lt;p>Browsing the web involves lots of different protocols that most people probably don&amp;rsquo;t consider.&lt;/p>
&lt;p>DNS is one of those protocols, so in this post, we&amp;rsquo;ll briefly go over the basics of DNS, why browsers
are switching to DNS Over HTTPS (DoH), and how to get public DNS Records.&lt;/p>
&lt;h2 id="what-is-dns">What is DNS&lt;/h2>
&lt;p>The core function of DNS (Domain Name System) is to associate Domain Names to IP Addresses and vice versa.
The concept is deceivingly simple, and incredibly useful.&lt;/p></description></item><item><title>The Basics of Fetching Data (using curl, JavaScript, Python and Go)</title><link>https://jamiam.dev/posts/fetching-data/</link><pubDate>Mon, 08 Jun 2020 19:05:53 -0400</pubDate><guid>https://jamiam.dev/posts/fetching-data/</guid><description>&lt;p>&lt;img src="https://jamiam.dev/images/posts/fetch/arrow.png" alt="Arrows">&lt;/p>
&lt;blockquote>
&lt;p>horizontal by Ben Davis from the Noun Project&lt;/p>&lt;/blockquote>
&lt;p>&lt;strong>Dear Reader:&lt;/strong>
This post is aimed at beginners so if you are already familiar with how APIs work,
you might not get much from my explanation, but you are welcome to skim.&lt;/p>
&lt;hr>
&lt;p>One of the most common activities a Web Developer will do is fetch data from some API,
parse it, and then do &lt;em>something&lt;/em> with that data, like displaying it on the page.&lt;/p></description></item><item><title>Reading Lines From Files</title><link>https://jamiam.dev/posts/reading-lines-from-files/</link><pubDate>Thu, 28 May 2020 03:14:39 -0400</pubDate><guid>https://jamiam.dev/posts/reading-lines-from-files/</guid><description>&lt;p>&lt;img src="https://jamiam.dev/images/posts/rows/rows.jpg" alt="Rows">&lt;/p>
&lt;p>Reading input line by line is something that seems like a basic and banal
operation, but it&amp;rsquo;s not really as basic as some higher level languages
make it out.&lt;/p>
&lt;p>Let&amp;rsquo;s look at a couple ways we can do this in Bash and other languages like Python and C.&lt;/p>
&lt;h2 id="bash">Bash&lt;/h2>
&lt;p>The syntax of bash always seems a bit awkward.&lt;/p>
&lt;p>For this example, assume we have a file called &lt;code>test.txt&lt;/code> and we want
to echo every line.&lt;/p></description></item><item><title>Disk Usage in Linux</title><link>https://jamiam.dev/posts/disk-usage-in-linux/</link><pubDate>Wed, 27 May 2020 11:05:17 -0400</pubDate><guid>https://jamiam.dev/posts/disk-usage-in-linux/</guid><description>&lt;h2 id="disk-usage-by-partition">Disk usage by partition&lt;/h2>
&lt;p>Checking on disk usage of mounted partitions in Linux is one command.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-shell" data-lang="shell">&lt;span style="display:flex;">&lt;span>df -h
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>The &lt;code>-h&lt;/code> makes the output human readable (think MB, GB instead of bytes or kilobytes)&lt;/p>
&lt;h2 id="disk-usage-by-directory">Disk usage by directory&lt;/h2>
&lt;p>The command used to check disk usage of directories on Linux is &lt;code>du&lt;/code>.&lt;/p>
&lt;p>Note the regular output is in kilobytes, but like other utils that work with sizes, adding &lt;code>-h&lt;/code> will make the results human readable.&lt;/p></description></item><item><title>A Word On Documentation and Static Site Generators</title><link>https://jamiam.dev/posts/docs-and-ssgs/</link><pubDate>Tue, 07 Apr 2020 22:08:26 -0400</pubDate><guid>https://jamiam.dev/posts/docs-and-ssgs/</guid><description>&lt;p>Documenting your code is incredibly important.
Not only does it help your future self understand, but it also helps others find their
way around.&lt;/p>
&lt;p>This post will be talking about some of the tools developers can use to generate docs
for their projects.&lt;/p>
&lt;h2 id="the-premise-is-simple">The Premise Is Simple&lt;/h2>
&lt;p>There are a plethora of tools out there that allow you to create, organize, and serve documentation,
but they are all more or less based around the same core concept, which is this:&lt;/p></description></item><item><title>Some Words on Death Stranding</title><link>https://jamiam.dev/posts/words-on-death-stranding/</link><pubDate>Wed, 27 Nov 2019 12:37:52 -0500</pubDate><guid>https://jamiam.dev/posts/words-on-death-stranding/</guid><description>&lt;p>This game can be complicated to explain to people, but I&amp;rsquo;ll try my best. It would be impossible to say I don&amp;rsquo;t have mixed feeling about it, due to super divisive gameplay. As a whole though, I think I enjoy it more than I loathe it and despite the numerous flaws, I still come back.&lt;/p>
&lt;p>The best way to describe this game to someone is &amp;ldquo;oddly satisfying&amp;rdquo;. Planning routes through rough terrain, hauling massive amounts of cargo and fighting mules that try to steal it are highlights for me personally, and are what I found to be the most enjoyable. I wish there was more of it. The tedium is unavoidable though. Once the novelty wears off and you start to go through an area time after time hearing the same lines from the prepper&amp;rsquo;s it gets super repetitive. Once you get a feel for how the BT&amp;rsquo;s work, it just becomes a roadblock to slow you down. Also the boss fights are extremely easy, but they are &lt;del>the best&lt;/del> the most efficient way to clear an area out of BT&amp;rsquo;s.&lt;/p></description></item><item><title>Why Learn About Old Technology</title><link>https://jamiam.dev/posts/why-learn-about-old-technology/</link><pubDate>Wed, 25 Sep 2019 20:24:19 -0400</pubDate><guid>https://jamiam.dev/posts/why-learn-about-old-technology/</guid><description>&lt;p>I wanted to make some points on why I think it can be worth it to look at older technology compared to what is more current.&lt;/p>
&lt;ul>
&lt;li>You get to learn from the mistakes/success of the greats.&lt;/li>
&lt;li>You can see the limitations of technology from a certain time period compared to now and how it would be different today?&lt;/li>
&lt;li>As software and hardware gets more mature, more people and more projects come to depend on it.&lt;/li>
&lt;li>The new becomes the old and vice versa. Many ideas are perpetually rehashed and adapted to fit current needs.&lt;/li>
&lt;/ul>
&lt;p>I would encourage everyone to think about all the technology they use everyday and base their opinions on it&amp;rsquo;s merit instead of it&amp;rsquo;s age or popularity.&lt;/p></description></item><item><title>Mosh the Mobile Shell</title><link>https://jamiam.dev/posts/mosh-the-mobile-shell/</link><pubDate>Tue, 20 Aug 2019 08:02:28 -0400</pubDate><guid>https://jamiam.dev/posts/mosh-the-mobile-shell/</guid><description>&lt;h3 id="do-you-have-a-low-speed-or-spotty-network-connection">Do you have a low speed or spotty network connection&lt;/h3>
&lt;p>If you have ever tried using ssh from a device with a spotty Wi-Fi connection, you know that the experience can range from
less than ideal to downright infuriating.&lt;/p>
&lt;p>Sometimes keystrokes are not sent, the latency can be brutal, and your connection may timeout.&lt;/p>
&lt;h3 id="mosh-to-the-rescue-metal">Mosh to the rescue :metal:&lt;/h3>
&lt;p>&lt;a href="https://mosh.org/" target="_blank">Mosh&lt;/a> is the mobile shell that alleviates the responsiveness problems that plague ssh.
Instead of using TCP, it uses UDP so your connection can persist across network changes or putting your laptop to sleep.&lt;/p></description></item><item><title>First Gen AMD Ryzen Kernel Freezing Bug</title><link>https://jamiam.dev/posts/first-gen-amd-ryzen-kernel-freeze-bug/</link><pubDate>Tue, 06 Aug 2019 16:07:01 -0400</pubDate><guid>https://jamiam.dev/posts/first-gen-amd-ryzen-kernel-freeze-bug/</guid><description>&lt;p>&lt;img src="https://jamiam.dev/images/posts/first-gen-amd-ryzen-kernel-freeze-bug/small-glacier.jpg" alt="Penguins">&lt;/p>
&lt;blockquote>
&lt;p>Image by &lt;!-- raw HTML omitted -->enriquelopezgarre&lt;!-- raw HTML omitted --> from &lt;!-- raw HTML omitted -->Pixabay&lt;!-- raw HTML omitted -->&lt;/p>&lt;/blockquote>
&lt;h2 id="the-problem">The Problem&lt;/h2>
&lt;p>I have been experiencing a hard freeze on my first gen Ryzen 1700x system
which has been very annoying.
This is the kind of freeze where I can&amp;rsquo;t even drop into a virtual terminal
or do an Alt-SysRq.&lt;/p>
&lt;p>This happens on both my Debian 10 and Ubuntu 19.04 installs running kernel
versions 4.19 and 5.0.0 respectively.
It would happen almost randomly but prominently when my CPU was idle and not
doing much.&lt;/p></description></item><item><title>Prettyprinting JSON with Python</title><link>https://jamiam.dev/posts/prettyprinting-json/</link><pubDate>Sun, 21 Jul 2019 18:45:29 -0400</pubDate><guid>https://jamiam.dev/posts/prettyprinting-json/</guid><description>&lt;p>There are a number really awesome tools that can be used to view and validate JSON
files right from the command line. As it turns out, one such tool is built right
into Python as the json.tool module. Usage is as follows:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-sh" data-lang="sh">&lt;span style="display:flex;">&lt;span>python -m json.tool &lt;span style="color:#f92672">[&lt;/span>-h&lt;span style="color:#f92672">]&lt;/span> &lt;span style="color:#f92672">[&lt;/span>--sort-keys&lt;span style="color:#f92672">]&lt;/span> &lt;span style="color:#f92672">[&lt;/span>infile&lt;span style="color:#f92672">]&lt;/span> &lt;span style="color:#f92672">[&lt;/span>outfile&lt;span style="color:#f92672">]&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>If a single argument is given, it will validate the file and (pretty) print it to stdout.&lt;/p>
&lt;hr>
&lt;p>This is all good and dandy, but what if I want to edit this JSON file now. I
could always write it to an output file and edit that, but that&amp;rsquo;s just extra
steps to take.
To bring this trick to another level of handiness, I added this mapping to
my vimrc.&lt;/p></description></item><item><title>Help! I'm rsync-ing</title><link>https://jamiam.dev/posts/rsync/</link><pubDate>Fri, 05 Jul 2019 18:08:42 -0400</pubDate><guid>https://jamiam.dev/posts/rsync/</guid><description>&lt;h2 id="what-is-rsync">What is rsync&lt;/h2>
&lt;p>We can run the &lt;code>whatis rsync&lt;/code> command to get a short description without opening the man page&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-man" data-lang="man">&lt;span style="display:flex;">&lt;span>rsync (1) - a fast, versatile, remote (and local) file-copying tool
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Rsync is the ultimate tool for copying files and is loved by many people.
It offers many advantages over traditional methods like SCP or FTP which are linear file transfer tools.
Rsync checks the delta of files between the source and the destination and only transfers the difference.
Additionally it allows an option for easy compression of files before they are sent over the network.&lt;/p></description></item></channel></rss>