<?xml version='1.0' encoding='UTF-8'?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://bultrowicz.com</id>
  <title>Butlablog - Posted in 2021</title>
  <updated>2024-11-02T21:37:58.935264+00:00</updated>
  <link href="https://bultrowicz.com"/>
  <link href="https://bultrowicz.com/blog/2021/atom.xml" rel="self"/>
  <generator uri="https://ablog.readthedocs.org/" version="0.10.33.post1">ABlog</generator>
  <entry>
    <id>https://bultrowicz.com/python-venv-zsh-functions/</id>
    <title>Some shell functions for working with Python virtualenvs</title>
    <updated>2021-03-31T00:00:00+02:00</updated>
    <author>
      <name>Michal Bultrowicz</name>
    </author>
    <content type="html">&lt;div class="ablog-post-excerpt docutils container"&gt;
&lt;p&gt;Finally doing some scripting today.
I noticed that there are some python-virtualenv-related commands I run often (in my tmux-based “IDE”),
so I automated them away to shave off some keystrokes.&lt;/p&gt;
&lt;/div&gt;
</content>
    <link href="https://bultrowicz.com/python-venv-zsh-functions/"/>
    <summary>Finally doing some scripting today.
I noticed that there are some python-virtualenv-related commands I run often (in my tmux-based “IDE”),
so I automated them away to shave off some keystrokes.</summary>
    <category term="CLI" label="CLI"/>
    <category term="Linux" label="Linux"/>
    <category term="Python" label="Python"/>
    <category term="ZSH" label="ZSH"/>
    <published>2021-03-31T00:00:00+02:00</published>
  </entry>
  <entry>
    <id>https://bultrowicz.com/moving_a_linux_install_to_a_new_drive_and_encrypting_it/</id>
    <title>Moving a Linux installation to a new drive and encrypting it</title>
    <updated>2021-08-28T00:00:00+02:00</updated>
    <author>
      <name>Michal Bultrowicz</name>
    </author>
    <content type="html">&lt;div class="ablog-post-excerpt docutils container"&gt;
&lt;p&gt;I needed to change out the drive in my light laptop for a bigger one.
Of course I didn’t want the hassle of OS reinstallation &lt;a class="footnote-reference brackets" href="#id9" id="id1" role="doc-noteref"&gt;&lt;span class="fn-bracket"&gt;[&lt;/span&gt;1&lt;span class="fn-bracket"&gt;]&lt;/span&gt;&lt;/a&gt;,
so I decided to move my Manjaro installation from the drive to the other.
My install was, regrettably, unencrypted &lt;a class="footnote-reference brackets" href="#id10" id="id2" role="doc-noteref"&gt;&lt;span class="fn-bracket"&gt;[&lt;/span&gt;2&lt;span class="fn-bracket"&gt;]&lt;/span&gt;&lt;/a&gt; - I wanted to fix that during the move.&lt;/p&gt;
&lt;/div&gt;
</content>
    <link href="https://bultrowicz.com/moving_a_linux_install_to_a_new_drive_and_encrypting_it/"/>
    <summary>I needed to change out the drive in my light laptop for a bigger one.
Of course I didn’t want the hassle of OS reinstallation 1,
so I decided to move my Manjaro installation from the drive to the other.
My install was, regrettably, unencrypted 2 - I wanted to fix that during the move.</summary>
    <category term="Linux" label="Linux"/>
    <category term="computer_maintenance" label="computer_maintenance"/>
    <category term="security" label="security"/>
    <published>2021-08-28T00:00:00+02:00</published>
  </entry>
  <entry>
    <id>https://bultrowicz.com/manjaro_tutorial__moving_an_install_and_encrypting_it/</id>
    <title>Manjaro tutorial - moving an install and encrypting it</title>
    <updated>2021-09-06T00:00:00+02:00</updated>
    <author>
      <name>Michal Bultrowicz</name>
    </author>
    <content type="html">&lt;div class="ablog-post-excerpt docutils container"&gt;
&lt;p&gt;I’ve put a tweaked version of my previous post (&lt;a class="reference internal" href="../../moving_a_linux_install_to_a_new_drive_and_encrypting_it/#moving_a_linux_install_to_a_new_drive_and_encrypting_it"&gt;&lt;span class="std std-ref"&gt;Moving a Linux installation to a new drive and encrypting it&lt;/span&gt;&lt;/a&gt;)
up on Manjaro forums as a tutorial.
You can check it out &lt;a class="reference external" href="https://forum.manjaro.org/t/moving-an-installation-to-a-different-drive-and-encrypting-it-with-luks-a-guide/80304"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;
</content>
    <link href="https://bultrowicz.com/manjaro_tutorial__moving_an_install_and_encrypting_it/"/>
    <summary>I’ve put a tweaked version of my previous post (moving_a_linux_install_to_a_new_drive_and_encrypting_it)
up on Manjaro forums as a tutorial.
You can check it out here.</summary>
    <category term="Linux" label="Linux"/>
    <category term="computer_maintenance" label="computer_maintenance"/>
    <category term="log" label="log"/>
    <category term="security" label="security"/>
    <published>2021-09-06T00:00:00+02:00</published>
  </entry>
  <entry>
    <id>https://bultrowicz.com/setup_and_sync_laptops/</id>
    <title>Setting up and syncing config on two laptops</title>
    <updated>2021-09-23T00:00:00+02:00</updated>
    <author>
      <name>Michal Bultrowicz</name>
    </author>
    <content type="html">&lt;div class="ablog-post-excerpt docutils container"&gt;
&lt;p&gt;I’ve created &lt;a class="reference external" href="https://github.com/butla/machine_setups"&gt;a script&lt;/a&gt; that should &lt;a class="footnote-reference brackets" href="#id3" id="id1" role="doc-noteref"&gt;&lt;span class="fn-bracket"&gt;[&lt;/span&gt;1&lt;span class="fn-bracket"&gt;]&lt;/span&gt;&lt;/a&gt; set up a fresh Manjaro
with all the software and configuration that I want in a workstation.
It can also update the setup on being rerun.
Now I have two laptops that behave and look the same &lt;a class="footnote-reference brackets" href="#id4" id="id2" role="doc-noteref"&gt;&lt;span class="fn-bracket"&gt;[&lt;/span&gt;2&lt;span class="fn-bracket"&gt;]&lt;/span&gt;&lt;/a&gt;, and it’s easy for me to maintain that state.
Oh I wanted that for a long time :)&lt;/p&gt;
&lt;/div&gt;
</content>
    <link href="https://bultrowicz.com/setup_and_sync_laptops/"/>
    <summary>I’ve created a script that should 1 set up a fresh Manjaro
with all the software and configuration that I want in a workstation.
It can also update the setup on being rerun.
Now I have two laptops that behave and look the same 2, and it’s easy for me to maintain that state.
Oh I wanted that for a long time :)</summary>
    <category term="Linux" label="Linux"/>
    <category term="Python" label="Python"/>
    <category term="journal" label="journal"/>
    <category term="system_administration" label="system_administration"/>
    <published>2021-09-23T00:00:00+02:00</published>
  </entry>
  <entry>
    <id>https://bultrowicz.com/enforcing_python_import_ordering_with_isort/</id>
    <title>Enforcing Python imports’ order with isort, Makefiles, and Vim</title>
    <updated>2021-12-27T00:00:00+01:00</updated>
    <author>
      <name>Michal Bultrowicz</name>
    </author>
    <content type="html">&lt;div class="ablog-post-excerpt docutils container"&gt;
&lt;p&gt;I finally integrated &lt;a class="reference external" href="https://pypi.org/project/isort/"&gt;isort&lt;/a&gt; into my toolbox.
I think that the job of changing code files belongs to the editor (or an IDE),
so I made Vim run &lt;code class="docutils literal notranslate"&gt;&lt;span class="pre"&gt;isort&lt;/span&gt;&lt;/code&gt; automatically,
while the import order enforcement in a project is done via Makefile
(which can be run the same way by developers and the CI/CD pipeline).&lt;/p&gt;
&lt;/div&gt;
</content>
    <link href="https://bultrowicz.com/enforcing_python_import_ordering_with_isort/"/>
    <summary>I finally integrated isort into my toolbox.
I think that the job of changing code files belongs to the editor (or an IDE),
so I made Vim run isort automatically,
while the import order enforcement in a project is done via Makefile
(which can be run the same way by developers and the CI/CD pipeline).</summary>
    <category term="CLI" label="CLI"/>
    <category term="Linux" label="Linux"/>
    <category term="Python" label="Python"/>
    <category term="Vim" label="Vim"/>
    <published>2021-12-27T00:00:00+01:00</published>
  </entry>
  <entry>
    <id>https://bultrowicz.com/simple_encrypted_folder_with_tar_and_gpg/</id>
    <title>Simple encrypted Linux folders with TAR and GPG</title>
    <updated>2021-12-27T00:00:00+01:00</updated>
    <author>
      <name>Michal Bultrowicz</name>
    </author>
    <content type="html">&lt;div class="ablog-post-excerpt docutils container"&gt;
&lt;p&gt;What’s the simplest way of encrypting a folder in Linux?
Combining &lt;code class="docutils literal notranslate"&gt;&lt;span class="pre"&gt;tar&lt;/span&gt;&lt;/code&gt; with &lt;code class="docutils literal notranslate"&gt;&lt;span class="pre"&gt;gpg&lt;/span&gt;&lt;/code&gt;, it seems.&lt;/p&gt;
&lt;/div&gt;
</content>
    <link href="https://bultrowicz.com/simple_encrypted_folder_with_tar_and_gpg/"/>
    <summary>What’s the simplest way of encrypting a folder in Linux?
Combining tar with gpg, it seems.</summary>
    <category term="CLI" label="CLI"/>
    <category term="Linux" label="Linux"/>
    <category term="security" label="security"/>
    <published>2021-12-27T00:00:00+01:00</published>
  </entry>
  <entry>
    <id>https://bultrowicz.com/continous_validation_with_make_and_entr/</id>
    <title>Make and entr for code validation during editing</title>
    <updated>2021-12-30T00:00:00+01:00</updated>
    <author>
      <name>Michal Bultrowicz</name>
    </author>
    <content type="html">&lt;div class="ablog-post-excerpt docutils container"&gt;
&lt;p&gt;For a while now, I’ve been wondering how to combine &lt;a class="reference external" href="https://github.com/eradman/entr"&gt;entr&lt;/a&gt;
(which automatically runs commands on file changes)
with the way I setup project validation (both for CI/CD and for local developer usage) with Makefiles.
The best thing I got so far is the &lt;code class="docutils literal notranslate"&gt;&lt;span class="pre"&gt;validate_continously&lt;/span&gt;&lt;/code&gt; target in
&lt;a class="reference external" href="https://github.com/butla/machine_setups/blob/master/Makefile"&gt;my Makefile&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;
</content>
    <link href="https://bultrowicz.com/continous_validation_with_make_and_entr/"/>
    <summary>For a while now, I’ve been wondering how to combine entr
(which automatically runs commands on file changes)
with the way I setup project validation (both for CI/CD and for local developer usage) with Makefiles.
The best thing I got so far is the validate_continously target in
my Makefile.</summary>
    <category term="CI/CD" label="CI/CD"/>
    <category term="CLI" label="CLI"/>
    <category term="Python" label="Python"/>
    <category term="quality_assurance" label="quality_assurance"/>
    <published>2021-12-30T00:00:00+01:00</published>
  </entry>
</feed>
