<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>productivity · Alex Moreno</title><link>https://danielsada.github.io/hugo-breeze-plasma-inspired-theme/tags/productivity/</link><description>Alex Moreno writes about developer tools, calm software and the occasional home-lab adventure.</description><generator>Hugo</generator><language>en-US</language><managingEditor>hello@example.org (Alex Moreno)</managingEditor><lastBuildDate>Fri, 22 Mar 2024 00:00:00 +0000</lastBuildDate><atom:link href="https://danielsada.github.io/hugo-breeze-plasma-inspired-theme/tags/productivity/index.xml" rel="self" type="application/rss+xml"/><item><title>Shell one-liners I use every week</title><link>https://danielsada.github.io/hugo-breeze-plasma-inspired-theme/blog/shell-one-liners/</link><pubDate>Fri, 22 Mar 2024 00:00:00 +0000</pubDate><guid>https://danielsada.github.io/hugo-breeze-plasma-inspired-theme/blog/shell-one-liners/</guid><description>&lt;p&gt;A short list of commands I keep coming back to.&lt;/p&gt;&#10;&lt;h2 id="biggest-folders-first"&gt;Biggest folders first&lt;a class="anchor" href="#biggest-folders-first" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;du -sh -- */ &lt;span class="p"&gt;|&lt;/span&gt; sort -rh &lt;span class="p"&gt;|&lt;/span&gt; head -n &lt;span class="m"&gt;10&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="copy-repositories-without-their-dependencies"&gt;Copy repositories without their dependencies&lt;a class="anchor" href="#copy-repositories-without-their-dependencies" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;rsync -av --exclude &lt;span class="s1"&gt;&amp;#39;node_modules&amp;#39;&lt;/span&gt; --exclude &lt;span class="s1"&gt;&amp;#39;.venv&amp;#39;&lt;/span&gt; ~/code/ /mnt/backup/code/&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="what-changed-today"&gt;What changed today?&lt;a class="anchor" href="#what-changed-today" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;git log --since&lt;span class="o"&gt;=&lt;/span&gt;midnight --oneline --all&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="rename-files-in-bulk"&gt;Rename files in bulk&lt;a class="anchor" href="#rename-files-in-bulk" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="k"&gt;for&lt;/span&gt; f in *.jpeg&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;do&lt;/span&gt; mv -- &lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="nv"&gt;$f&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="si"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;f&lt;/span&gt;&lt;span class="p"&gt;%.jpeg&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;.jpg&amp;#34;&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;done&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description></item><item><title>What a year of journaling taught me about debugging</title><link>https://danielsada.github.io/hugo-breeze-plasma-inspired-theme/blog/journaling-and-debugging/</link><pubDate>Sat, 15 Jul 2023 00:00:00 +0000</pubDate><guid>https://danielsada.github.io/hugo-breeze-plasma-inspired-theme/blog/journaling-and-debugging/</guid><description>&lt;p&gt;For a year I kept a plain-text work journal. The most useful entries were not the summaries at the end of the day. They were the predictions.&lt;/p&gt;&#10;&lt;p&gt;Before running a command I wasn&amp;rsquo;t sure about, I wrote one line: &lt;em&gt;what I expect to happen&lt;/em&gt;. When reality disagreed, the gap between the two lines was almost always the bug.&lt;/p&gt;&#10;&lt;p&gt;It feels slow. It is faster.&lt;/p&gt;</description></item></channel></rss>