<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Automation on Wijnand Baretta</title><link>https://wijnandbaretta.com/tags/automation/</link><description>Recent content in Automation on Wijnand Baretta</description><image><title>Wijnand Baretta</title><url>https://wijnandbaretta.com/images/og-default.png</url><link>https://wijnandbaretta.com/images/og-default.png</link></image><generator>Hugo -- 0.152.2</generator><language>en</language><lastBuildDate>Tue, 31 Aug 2021 00:00:00 +0000</lastBuildDate><atom:link href="https://wijnandbaretta.com/tags/automation/index.xml" rel="self" type="application/rss+xml"/><item><title>Create post via shell script</title><link>https://wijnandbaretta.com/posts/create-post-via-shell-script/</link><pubDate>Tue, 31 Aug 2021 00:00:00 +0000</pubDate><guid>https://wijnandbaretta.com/posts/create-post-via-shell-script/</guid><description>&lt;p&gt;I want to write posts via the command line and I want it to be as effortless as possible.
Every time I want to start writing, I end up in a loop:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;let&amp;rsquo;s create a site to publish my writing&lt;/li&gt;
&lt;li&gt;what are the possibilities?&lt;/li&gt;
&lt;li&gt;Django or static site?&lt;/li&gt;
&lt;li&gt;which static site generators are there?&lt;/li&gt;
&lt;li&gt;This one&amp;rsquo;s nice!&lt;/li&gt;
&lt;li&gt;it&amp;rsquo;s perfect for what I want&lt;/li&gt;
&lt;li&gt;can I change the theme/templates?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;After a while, I have yet another nice static site. Sometimes all the way down to a published site, sometimes stuck somewhere half-way. But all of the time, the writing of content stops, doesn&amp;rsquo;t get started, never happens. No matter what the reason for this is, I need to get out of this loop.&lt;/p&gt;</description></item><item><title>Creating a new Git repository on Github and synching to it</title><link>https://wijnandbaretta.com/posts/creating-a-new-git-repository-on-github-and-synching-to-it/</link><pubDate>Tue, 31 Aug 2021 00:00:00 +0000</pubDate><guid>https://wijnandbaretta.com/posts/creating-a-new-git-repository-on-github-and-synching-to-it/</guid><description>&lt;p&gt;I want to create a new Git repo and write down the commands to add new content or create a script which does that for me.&lt;/p&gt;
&lt;p&gt;First, I go to the root directory of my (local) project and initiate a new Git repository:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$ git init
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;We now have an empty git repository. Add all files to it with&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$ git add .
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Setting up a repo on Github:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$ gh repo create project-name
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;I need to set the upstream branch on Github and get the .gitignore and the LICENSE that were created when setting up the repo on Github:
repository:&lt;/p&gt;</description></item><item><title>Creating a new post from the command line</title><link>https://wijnandbaretta.com/posts/creating-a-new-post-from-the-command-line/</link><pubDate>Tue, 31 Aug 2021 00:00:00 +0000</pubDate><guid>https://wijnandbaretta.com/posts/creating-a-new-post-from-the-command-line/</guid><description>&lt;p&gt;Ok, that worked. I can now create new posts from the command line by simply calling the bash script I have created.
Calling ./new-post.sh asks for a title and keywords (tags) and creates a new post for me in the desired directory (~/15-a-day/posts).&lt;/p&gt;
&lt;p&gt;This is a good beginning, there are however some steps left. First, let me document what I have created by adding the contents of the bash script to this post.&lt;/p&gt;</description></item><item><title>Automate the Boring Stuff with Python, 2nd Edition: Practical Programming for Total Beginners</title><link>https://wijnandbaretta.com/books/automate-the-boring-stuff-with-python-2nd-edition-practical-programming-for-total-beginners/</link><pubDate>Wed, 30 Mar 2016 00:00:00 +0000</pubDate><guid>https://wijnandbaretta.com/books/automate-the-boring-stuff-with-python-2nd-edition-practical-programming-for-total-beginners/</guid><description>&lt;h2 id="overview-of-automate-the-boring-stuff-with-python-2nd-edition-practical-programming-for-total-beginners"&gt;Overview of &lt;em&gt;Automate the Boring Stuff with Python, 2nd Edition: Practical Programming for Total Beginners&lt;/em&gt;&lt;/h2&gt;
&lt;h3 id="summary"&gt;Summary&lt;/h3&gt;
&lt;p&gt;&lt;em&gt;Automate the Boring Stuff with Python, 2nd Edition&lt;/em&gt; by Al Sweigart provides a practical introduction to Python programming for beginners. This book focuses on automating everyday tasks such as organizing files, managing spreadsheets, scraping websites, and working with online forms through clear-cut explanations and robust examples. It aims to make programming accessible, providing readers with the skills to automate repetitive tasks and improve efficiency in various aspects of work and personal life.&lt;/p&gt;</description></item><item><title>Automation and the Future of Work</title><link>https://wijnandbaretta.com/books/automation-and-the-future-of-work/</link><pubDate>Tue, 03 Nov 2015 00:00:00 +0000</pubDate><guid>https://wijnandbaretta.com/books/automation-and-the-future-of-work/</guid><description>&lt;h1 id="automation-and-the-future-of-work-by-aaron-benanav"&gt;Automation and the Future of Work by Aaron Benanav&lt;/h1&gt;
&lt;h2 id="summary"&gt;Summary&lt;/h2&gt;
&lt;p&gt;&amp;ldquo;Automation and the Future of Work&amp;rdquo; by Aaron Benanav challenges the common narrative that automation and technological advances are predominantly responsible for the loss of jobs in contemporary economies. Instead, Benanav argues that the real culprit is economic stagnation, exacerbated by industrial overcapacity and insufficient demand. The book examines the historical and economic factors that contribute to this stagnation, shedding light on how the economy&amp;rsquo;s structural dynamics shape employment patterns and societal impacts. Benanav&amp;rsquo;s analysis critiques the optimism surrounding technological determinism and proposes a more nuanced understanding of the challenges and possibilities facing the workforce.&lt;/p&gt;</description></item></channel></rss>