<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://neil.mckillop.org/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://neil.mckillop.org/feed.php">
        <title>neil.mckillop.org geek</title>
        <description></description>
        <link>https://neil.mckillop.org/</link>
        <image rdf:resource="https://neil.mckillop.org/lib/tpl/dokuwiki/images/favicon.ico" />
       <dc:date>2026-04-25T18:17:49+0100</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://neil.mckillop.org/geek/cli?rev=1716465351&amp;do=diff"/>
                <rdf:li rdf:resource="https://neil.mckillop.org/geek/dokuwiki?rev=1578414879&amp;do=diff"/>
                <rdf:li rdf:resource="https://neil.mckillop.org/geek/grafana?rev=1587339264&amp;do=diff"/>
                <rdf:li rdf:resource="https://neil.mckillop.org/geek/linux?rev=1628769535&amp;do=diff"/>
                <rdf:li rdf:resource="https://neil.mckillop.org/geek/macos?rev=1569594009&amp;do=diff"/>
                <rdf:li rdf:resource="https://neil.mckillop.org/geek/passwordless_ssh?rev=1586611321&amp;do=diff"/>
                <rdf:li rdf:resource="https://neil.mckillop.org/geek/php?rev=1591004939&amp;do=diff"/>
                <rdf:li rdf:resource="https://neil.mckillop.org/geek/ssh?rev=1745351566&amp;do=diff"/>
                <rdf:li rdf:resource="https://neil.mckillop.org/geek/vim?rev=1569593430&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://neil.mckillop.org/lib/tpl/dokuwiki/images/favicon.ico">
        <title>neil.mckillop.org</title>
        <link>https://neil.mckillop.org/</link>
        <url>https://neil.mckillop.org/lib/tpl/dokuwiki/images/favicon.ico</url>
    </image>
    <item rdf:about="https://neil.mckillop.org/geek/cli?rev=1716465351&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-05-23T12:55:51+0100</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>geek:cli</title>
        <link>https://neil.mckillop.org/geek/cli?rev=1716465351&amp;do=diff</link>
        <description>Command Line Hacks

Image metadata

This shows me the EXIF time/date of every image in a directory, useful when I'm sorting:

Needs the debian package 'exif'.


for i in *; do echo $i; exif -t 0x0132 $i  | grep Value; done;


Xargs and Find

Performing operations on multiple files using xargs and find:</description>
    </item>
    <item rdf:about="https://neil.mckillop.org/geek/dokuwiki?rev=1578414879&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-01-07T16:34:39+0100</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>geek:dokuwiki</title>
        <link>https://neil.mckillop.org/geek/dokuwiki?rev=1578414879&amp;do=diff</link>
        <description>Dokuwiki

I like the simplicity of this wiki.  I've started to use it in a number of projects.

Interwiki

This is a useful feature that allows you to write shortcuts like Glasgow and have it directly link to the Wikipedia page.  You can create your own custom shortcuts by adding them to the</description>
    </item>
    <item rdf:about="https://neil.mckillop.org/geek/grafana?rev=1587339264&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-04-20T00:34:24+0100</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>geek:grafana</title>
        <link>https://neil.mckillop.org/geek/grafana?rev=1587339264&amp;do=diff</link>
        <description>Grafana

Kilobytes per second

From my load logger project I collect the number of bytes in/out of my network devices.  If I want to graph that in grafana using my MySQL data source (as KB/s) then I have to use SQL to munge the numbers.  This gets what I need in SQL:</description>
    </item>
    <item rdf:about="https://neil.mckillop.org/geek/linux?rev=1628769535&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-08-12T12:58:55+0100</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>geek:linux</title>
        <link>https://neil.mckillop.org/geek/linux?rev=1628769535&amp;do=diff</link>
        <description>Linux Tweaks

Timezone


sudo timedatectl set-timezone Europe/London


Revert window decorations

Reverting window decorations in Ubuntu Lucid (moving the window buttons from the unintuitive left side, back to the right, restoring the context menu and reverting the order):</description>
    </item>
    <item rdf:about="https://neil.mckillop.org/geek/macos?rev=1569594009&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-09-27T15:20:09+0100</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>geek:macos</title>
        <link>https://neil.mckillop.org/geek/macos?rev=1569594009&amp;do=diff</link>
        <description>Mac OS X Hackers

Full path in Finder title bar

Show full path in Finder title bar

From the terminal type:


defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES


Then restart Finder with:


killall Finder


To reverse the change use:</description>
    </item>
    <item rdf:about="https://neil.mckillop.org/geek/passwordless_ssh?rev=1586611321&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-04-11T14:22:01+0100</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>geek:passwordless_ssh</title>
        <link>https://neil.mckillop.org/geek/passwordless_ssh?rev=1586611321&amp;do=diff</link>
        <description>Passwordless SSH

Check if you already have a public key


ls .ssh/id_rsa.pub


If not, generate one


ssh-keygen -t rsa


Make sure the .ssh directory exists on the remote host, then append the key to the authorized_keys file (from the client, to the remote host):</description>
    </item>
    <item rdf:about="https://neil.mckillop.org/geek/php?rev=1591004939&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-06-01T10:48:59+0100</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>geek:php</title>
        <link>https://neil.mckillop.org/geek/php?rev=1591004939&amp;do=diff</link>
        <description>PHP Code

Convert a British date

Converting British dates to the ISO standard and back again.

The very useful strtotime() function works on pretty much everything except the British date format. This function works around that. i.e. 31/01/2010 becomes 2010-01-31. With the 'reverse' parameter set to true it converts an ISO date to the British format (mainly for display purposes).</description>
    </item>
    <item rdf:about="https://neil.mckillop.org/geek/ssh?rev=1745351566&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-04-22T20:52:46+0100</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>geek:ssh</title>
        <link>https://neil.mckillop.org/geek/ssh?rev=1745351566&amp;do=diff</link>
        <description>SSH Tunnels

Bypassing firewalls

If only HTTP (port 80) or HTTPS (port 443) is allowed out of the network. This is also useful for obfuscating traffic from your machine.

You'll need to have server1 listening for ssh connections on port 80 or 443, we'll assume 443 here. From there you can create a SOCKS proxy using ssh. The '-g' parameter allows remote machines to share this proxy.</description>
    </item>
    <item rdf:about="https://neil.mckillop.org/geek/vim?rev=1569593430&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-09-27T15:10:30+0100</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>geek:vim</title>
        <link>https://neil.mckillop.org/geek/vim?rev=1569593430&amp;do=diff</link>
        <description>Vim Hacks

Search&amp;Replace n lines

Search and replace over next n lines

If I copy and paste code in a windows/putty environment it often replaces tabs with space characters and I'd prefer to change these back. For example, to replace spaces with a tab in the next 20 lines:</description>
    </item>
</rdf:RDF>
