<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Tingo's notes</title><link>http://tingo.homedns.org/</link><description>Just a collection of notes</description><atom:link href="http://tingo.homedns.org/rss.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><copyright>Contents © 2025 Torfinn Ingolfsen 
&lt;a rel="license" href="https://creativecommons.org/licenses/by-nc-sa/4.0/"&gt;
&lt;img alt="Creative Commons License BY-NC-SA"
style="border-width:0; margin-bottom:12px;"
src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png"&gt;&lt;/a&gt;</copyright><lastBuildDate>Sat, 11 Oct 2025 08:54:12 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Nikola - database error</title><link>http://tingo.homedns.org/posts/nikola-database-error/</link><dc:creator>Torfinn Ingolfsen</dc:creator><description>&lt;div&gt;&lt;p&gt;Once in a blue moon, Nikola throws a database error when I do build and deploy.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://tingo.homedns.org/posts/nikola-database-error/"&gt;Read more…&lt;/a&gt; (1 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>nikola</category><guid>http://tingo.homedns.org/posts/nikola-database-error/</guid><pubDate>Sat, 11 Oct 2025 08:50:43 GMT</pubDate></item><item><title>Formatting csv files in shell</title><link>http://tingo.homedns.org/posts/formatting-csv-files-in-shell/</link><dc:creator>Torfinn Ingolfsen</dc:creator><description>&lt;div&gt;&lt;p&gt;Often it is easier to read csv files if they are formatted as a table. One of my ansible playbooks outputs a list of machines o a csv file. &lt;/p&gt;
&lt;p&gt;&lt;a href="http://tingo.homedns.org/posts/formatting-csv-files-in-shell/"&gt;Read more…&lt;/a&gt; (2 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><guid>http://tingo.homedns.org/posts/formatting-csv-files-in-shell/</guid><pubDate>Sat, 15 Jul 2023 12:00:02 GMT</pubDate></item><item><title>scp and proxy</title><link>http://tingo.homedns.org/posts/scp-and-proxy/</link><dc:creator>Torfinn Ingolfsen</dc:creator><description>&lt;p&gt;With &lt;code&gt;scp&lt;/code&gt; you can use &lt;code&gt;-J&lt;/code&gt; directly. Like &lt;code&gt;scp -J user@proxyhost.example.org user@hiddenhost:/directory/some/file.zip .&lt;/code&gt; for example.
As usual, the 'user' part can be left out if the user is the same on the hosts in question.&lt;/p&gt;</description><category>proxy</category><category>scp</category><category>ssh</category><guid>http://tingo.homedns.org/posts/scp-and-proxy/</guid><pubDate>Mon, 22 May 2023 15:49:14 GMT</pubDate></item><item><title>sshfs with proxy</title><link>http://tingo.homedns.org/posts/sshfs-with-proxy/</link><dc:creator>Torfinn Ingolfsen</dc:creator><description>&lt;p&gt;The &lt;code&gt;ssh&lt;/code&gt; command has the useful '-J' option which allows you to connect via a proxy host. Very useful for hosts which are not directly reachable from the current network you are on.
Since '-J' corresponds to the ProxyJump directive, you can achive the same goal with sshfs like this: &lt;code&gt;sshfs hidden-host.example.org:/some/directory/ ~/mountpoint/ -o ProxyJump=proxy.example.org&lt;/code&gt;
this is &lt;em&gt;very&lt;/em&gt; useful.&lt;/p&gt;</description><category>proxy</category><category>ssh</category><category>sshfs</category><guid>http://tingo.homedns.org/posts/sshfs-with-proxy/</guid><pubDate>Sat, 12 Mar 2022 19:47:06 GMT</pubDate></item><item><title>Setting up ssh-agent from cmdline</title><link>http://tingo.homedns.org/posts/setting-up-ssh-agent-from-cmdline/</link><dc:creator>Torfinn Ingolfsen</dc:creator><description>&lt;p&gt;Sometimes I write content via a ssh connection, using vi as my editor. In order to deploy new content,
it is useful to have ssh-agent running. Ony way to do that is like this:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="o"&gt;[&lt;/span&gt;nikola&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;tingo@kg-core2:~/personal/projects/nikola&lt;span class="w"&gt; &lt;/span&gt;%&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nb"&gt;eval&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="sb"&gt;`&lt;/span&gt;ssh-agent&lt;span class="w"&gt; &lt;/span&gt;-c&lt;span class="sb"&gt;`&lt;/span&gt;
Agent&lt;span class="w"&gt; &lt;/span&gt;pid&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="m"&gt;65221&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;This command sets the environment variables SSH_AUTH_SOCK and SSH_AGENT_PID, and you are ready to add keys with &lt;code&gt;ssh-add&lt;/code&gt;. When you are finished, you just use &lt;code&gt;ssh-agent -k&lt;/code&gt; to kill the agent.&lt;/p&gt;</description><category>csh</category><category>sh</category><category>ssh-agent</category><guid>http://tingo.homedns.org/posts/setting-up-ssh-agent-from-cmdline/</guid><pubDate>Mon, 09 Aug 2021 09:23:46 GMT</pubDate></item><item><title>Nikola - beware of the slug!</title><link>http://tingo.homedns.org/posts/nikola-beware-of-the-slug/</link><dc:creator>Torfinn Ingolfsen</dc:creator><description>&lt;p&gt;Nikola uses the slug of a post or page to generate the output files and directories. So if you (for any reason) decide to rename a source file,
remember to rename the slug also. Or else you will spend frustrating time wondering why nikola persists in rendering something at an old location.
Perhaps you will try clearing the cache, removing the doit database, or even clearing the output directory and getting even more frustrated when it
doesn't help.&lt;/p&gt;</description><category>nikola</category><category>render</category><category>slug</category><guid>http://tingo.homedns.org/posts/nikola-beware-of-the-slug/</guid><pubDate>Thu, 24 Jun 2021 15:40:11 GMT</pubDate></item><item><title>Nginx - configuration problems</title><link>http://tingo.homedns.org/posts/nginx-configuration-problems/</link><dc:creator>Torfinn Ingolfsen</dc:creator><description>&lt;div&gt;&lt;p&gt;When I set up the webserver this very site is running on, I had trouble with Nginx at first.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://tingo.homedns.org/posts/nginx-configuration-problems/"&gt;Read more…&lt;/a&gt; (1 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>configuration</category><category>nginx</category><category>web server</category><guid>http://tingo.homedns.org/posts/nginx-configuration-problems/</guid><pubDate>Wed, 23 Jun 2021 17:23:38 GMT</pubDate></item><item><title>Deployment with Nikola</title><link>http://tingo.homedns.org/posts/deployment-with-nikola/</link><dc:creator>Torfinn Ingolfsen</dc:creator><description>&lt;div&gt;&lt;p&gt;I now have manual deployment working. So now I set up a series of deployment commands in conf.py and try the out&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;DEPLOY_COMMANDS = {
    'default': [
        'cd output; git add .',
        'cd output; git commit -q -m "content added"',
        'cd output; git push web',
    ]
}
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Will it work?
&lt;strong&gt;Update&lt;/strong&gt;: yes it works nicely. Nikola scores again!&lt;/p&gt;
&lt;p&gt;&lt;a href="http://tingo.homedns.org/posts/deployment-with-nikola/"&gt;Read more…&lt;/a&gt; (1 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>git</category><category>nikola</category><guid>http://tingo.homedns.org/posts/deployment-with-nikola/</guid><pubDate>Tue, 22 Jun 2021 20:40:23 GMT</pubDate></item><item><title>Working with Nikola</title><link>http://tingo.homedns.org/posts/working-with-nikola/</link><dc:creator>Torfinn Ingolfsen</dc:creator><description>&lt;div&gt;&lt;p&gt;Learning to work with Nikola, instead of against it. Sometimes it is better to go with the flow.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://tingo.homedns.org/posts/working-with-nikola/"&gt;Read more…&lt;/a&gt; (1 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>csh</category><category>nikola</category><category>venv</category><guid>http://tingo.homedns.org/posts/working-with-nikola/</guid><pubDate>Tue, 22 Jun 2021 19:53:33 GMT</pubDate></item><item><title>Pushing remote git repositories</title><link>http://tingo.homedns.org/posts/pushing-remote-git-repositories/</link><dc:creator>Torfinn Ingolfsen</dc:creator><description>&lt;div&gt;&lt;p&gt;I followed the &lt;a href="https://toroid.org/git-website-howto"&gt;Using git to manage a web site&lt;/a&gt; howto. But it didn't work at first. Since I'm not very familiar with git "bare repositories",
I started looking at that part. As it turns out, I should have started with the basics.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://tingo.homedns.org/posts/pushing-remote-git-repositories/"&gt;Read more…&lt;/a&gt; (1 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>git</category><guid>http://tingo.homedns.org/posts/pushing-remote-git-repositories/</guid><pubDate>Tue, 22 Jun 2021 17:08:56 GMT</pubDate></item></channel></rss>