<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Tech on</title><link>http://salopst.yearl.us/tags/tech/</link><description>Recent content in Tech on</description><generator>Hugo</generator><language>en</language><copyright>&lt;a href="https://creativecommons.org/licenses/by-nc/4.0/" target="_blank" rel="noopener"&gt;CC BY-NC 4.0&lt;/a&gt;</copyright><lastBuildDate>Tue, 21 Sep 2021 02:22:00 +0100</lastBuildDate><atom:link href="http://salopst.yearl.us/tags/tech/index.xml" rel="self" type="application/rss+xml"/><item><title>Fixing git oopsies</title><link>http://salopst.yearl.us/fixing-git-oopsies/</link><pubDate>Wed, 08 Sep 2021 10:43:08 +0100</pubDate><guid>http://salopst.yearl.us/fixing-git-oopsies/</guid><description>&lt;p&gt;I made an oopsies in &lt;code&gt;netlify.toml&lt;/code&gt; that caused the build to fail, so review the commit history with &lt;code&gt;git log&lt;/code&gt;:&lt;/p&gt;&#10;&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;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;❯❯ git log | rg netlify&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;1481e97 Wed Sep &lt;span style="color:#ae81ff"&gt;8&lt;/span&gt; 10:05:12 &lt;span style="color:#ae81ff"&gt;2021&lt;/span&gt; +0100 C T Added caching plugin; specified Hugo 0.80.0 to allow &lt;span style="color:#66d9ef"&gt;for&lt;/span&gt; easier tracking of errors and changes on netlify vs localhost; added content type headers&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;cb5842e Fri Aug &lt;span style="color:#ae81ff"&gt;27&lt;/span&gt; 16:56:36 &lt;span style="color:#ae81ff"&gt;2021&lt;/span&gt; +0100 C T reset netlify base to root&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;188065b Fri Aug &lt;span style="color:#ae81ff"&gt;27&lt;/span&gt; 16:20:53 &lt;span style="color:#ae81ff"&gt;2021&lt;/span&gt; +0100 C T First netlify.toml&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;And reset local head with&lt;/p&gt;</description></item><item><title>Diagrams and Maths in Hugo</title><link>http://salopst.yearl.us/drawing-diagrams-and-making-math-in-hugo/</link><pubDate>Tue, 07 Sep 2021 20:13:00 +0100</pubDate><guid>http://salopst.yearl.us/drawing-diagrams-and-making-math-in-hugo/</guid><description>&lt;h2 id="can-we-handle-flowcharts-using-flowchartjs-"&gt;Can we handle flowcharts using &lt;code&gt;flowchart.js&lt;/code&gt; ?&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;a href="http://flowchart.js.org/"&gt;flowchart.js&lt;/a&gt;?&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;Given a code-block of&lt;/p&gt;&#10;&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;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;```flow&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;q0=&amp;gt;condition: Does it move?&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;q1=&amp;gt;condition: Should it?&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;q2=&amp;gt;condition: Should it?&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;np=&amp;gt;end: No problem!&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;dt=&amp;gt;end: Duct Tape! No Problem&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;wd=&amp;gt;end: Wd40 Rien de problem!&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;q0(yes)-&amp;gt;q1&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;q0(no)-&amp;gt;q2&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;q1(yes)-&amp;gt;np&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;q1(no)-&amp;gt;dt&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;q2(yes)-&amp;gt;wd&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;q2(no)-&amp;gt;np&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;pre tabindex="0"&gt;&lt;code&gt;&#10;```flow&#10;q0=&amp;gt;condition: Does it move?&#10;q1=&amp;gt;condition: Should it?&#10;q2=&amp;gt;condition: Should it?&#10;&#10;np=&amp;gt;end: No problem!&#10;dt=&amp;gt;end: Duct Tape! No Problem&#10;wd=&amp;gt;end: Wd40 Rien de problem!&#10;&#10;q0(yes)-&amp;gt;q1&#10;q0(no)-&amp;gt;q2&#10;&#10;q1(yes)-&amp;gt;np&#10;q1(no)-&amp;gt;dt&#10;&#10;q2(yes)-&amp;gt;wd&#10;q2(no)-&amp;gt;np&#10;&lt;/code&gt;&lt;/pre&gt;&lt;h2 id="this-is-a-mermaid-example"&gt;This is a mermaid example:&lt;/h2&gt;&#10;&lt;p&gt;With the shortcode&lt;/p&gt;</description></item><item><title>pi-hole route del</title><link>http://salopst.yearl.us/pi-hole-route-del/</link><pubDate>Fri, 21 Sep 2018 11:42:50 +0000</pubDate><guid>http://salopst.yearl.us/pi-hole-route-del/</guid><description>&lt;p&gt;Sooo, my TP-Link Archer C8 AC1750 Gigabit router decided to not play nice after a short power outage. Didn&amp;rsquo;t do much anyway except keep a couple of machines in a their own little subnet in which the &lt;a href="http://stephen.yearl.us/pi-hole-dns-level-ad-blocker/"&gt;pi-hole&lt;/a&gt; was located.&lt;/p&gt;&#10;&lt;p&gt;Replaced it with a NETGEAR GS108Tv2 (link below) 8-Port Gigabit managed switch and flatten the network a little. Everything was peachy with that set up, but the pihole was still on &lt;code&gt;172.16.0.0/24&lt;/code&gt;&amp;hellip; reconfigured that with &lt;code&gt;pihole -r&lt;/code&gt; and all looked well except for the pi-hole could not ping outside of the LAN. Grrr! Much hair pulling until&amp;hellip;&lt;/p&gt;</description></item><item><title>Exploring Typora... and now Hugo</title><link>http://salopst.yearl.us/exploring-the-typora-markdown-editor/</link><pubDate>Tue, 17 Jul 2018 13:00:00 +0000</pubDate><guid>http://salopst.yearl.us/exploring-the-typora-markdown-editor/</guid><description>&lt;p&gt;This wee MD file was created back on &lt;code&gt;date: 2018-07-17 &lt;/code&gt; to explore a new x-platform markdown editor I had heard about called Typora, &lt;a href="https://typora.io/"&gt;https://typora.io/&lt;/a&gt;. I was using a Mac then, a mid-2012 MPB, that had at that point done sterling service for 6 years and 13 days.&lt;/p&gt;&#10;&lt;p&gt;The below is just a bunch of BS written back then to try out some of the splendid features it seemed to offer. Now the challenge is to see if some of the non-markdown features render under Hugo.&lt;/p&gt;</description></item><item><title>Join two or more videos on the command line</title><link>http://salopst.yearl.us/join-two-or-more-videos-on-the-command-line/</link><pubDate>Fri, 09 Mar 2018 07:25:54 +0000</pubDate><guid>http://salopst.yearl.us/join-two-or-more-videos-on-the-command-line/</guid><description>&lt;p&gt;Having just dropped a couple of 4TB Western Digital NAS drives in the &lt;em&gt;openmediavault&lt;/em&gt; box, I can now get around to adding more media. My &lt;em&gt;Moby Dick&lt;/em&gt; is split over two DVD disks&amp;hellip; that&amp;rsquo;s a pain. Let&amp;rsquo;s join them&amp;hellip;&lt;/p&gt;&#10;&lt;p&gt;The obvious, and lazy, and probably-will-not-work way:&lt;/p&gt;&#10;&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;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;~/MyRips/Moby Dick &lt;span style="color:#f92672"&gt;(&lt;/span&gt;1998&lt;span style="color:#f92672"&gt;)&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$ cat &lt;span style="color:#e6db74"&gt;&amp;#34;Moby Dick (1998) - CD 1.avi&amp;#34;&lt;/span&gt; &lt;span style="color:#e6db74"&gt;&amp;#34;Moby Dick (1998) - CD 2.avi&amp;#34;&lt;/span&gt; &amp;gt; &lt;span style="color:#e6db74"&gt;&amp;#34;Moby Dick (1998).avi&amp;#34;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Video will only play the length of the first file because this is where the avi header information is. Have to rebuild header information.&lt;/p&gt;</description></item><item><title>Terminal Colors</title><link>http://salopst.yearl.us/terminal-colors/</link><pubDate>Wed, 22 Oct 2014 03:47:44 +0000</pubDate><guid>http://salopst.yearl.us/terminal-colors/</guid><description>&lt;h2 id="before-and-after-coloration-of-the-pure-prompt"&gt;Before and after coloration of the pure prompt.&lt;/h2&gt;&#10;&#10; &lt;img src="http://salopst.yearl.us/uploads/terminal-color-before-after.jpg" alt="Before and after coloration of the pure prompt" class="center" style="border-radius: 50px;" /&gt;&#10;&#10;&#10;&lt;ul&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;#1. Get the &lt;a href="https://github.com/chriskempson/tomorrow-theme/blob/master/OS%20X%20Terminal/Tomorrow%20Night%20Eighties.terminal"&gt;Tomorow Night Eighties&lt;/a&gt; Theme, and&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;#2. &lt;a href="https://raw.githubusercontent.com/chriskempson/tomorrow-theme/master/OS%20X%20Terminal/Tomorrow%20Night%20Eighties.terminal"&gt;View Raw&lt;/a&gt;&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;#3. Saving this file locally, and then applying:&#10;&#10; &lt;img src="http://salopst.yearl.us/uploads/terminal-select-profile.jpg" alt="Terminal select profile" class="center" style="border-radius: 50px;" /&gt;&#10;&#10;&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;/ul&gt;</description></item><item><title>Enabling AirDrop on (certain) unsupported Macs</title><link>http://salopst.yearl.us/enabling-airdrop-on-certain-unsupported-macs/</link><pubDate>Mon, 20 Feb 2012 12:18:04 +0000</pubDate><guid>http://salopst.yearl.us/enabling-airdrop-on-certain-unsupported-macs/</guid><description>&lt;h4 id="macs-that-support-airdrop--must-have-os-x-lion"&gt;Macs that support AirDrop ( must have OS X Lion):&lt;/h4&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;MacBook Pro (Late 2008 or newer)*&lt;/li&gt;&#10;&lt;li&gt;MacBook Air (Late 2010 or newer)&lt;/li&gt;&#10;&lt;li&gt;MacBook (Late 2008 or newer)*&lt;/li&gt;&#10;&lt;li&gt;iMac (Early 2009 or newer)&lt;/li&gt;&#10;&lt;li&gt;Mac Mini (Mid 2010 or newer)&lt;/li&gt;&#10;&lt;li&gt;Mac Pro (Early 2009 with AirPort Extreme card, or Mid 2010)&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;The MacBook Pro (17-Inch Late 2008) and the white MacBook (Late 2008) do not support AirDrop.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;hr&gt;&#10;&lt;hr&gt;&#10;&lt;hr&gt;&#10;&lt;p&gt;My early 2008 Macbook pro does not but&amp;hellip;.&lt;/p&gt;</description></item><item><title>Apple Macbook Air USB "superdrive" on a non-Air</title><link>http://salopst.yearl.us/apple-macbook-air-usb-superdrive-on-a-non-air/</link><pubDate>Thu, 09 Feb 2012 08:35:01 +0000</pubDate><guid>http://salopst.yearl.us/apple-macbook-air-usb-superdrive-on-a-non-air/</guid><description>&lt;p&gt;So I borrowed a mate&amp;rsquo;s external USB superdrive in order to get some&#10;old files off of archived CDs, and the internal optical drive in my&#10;April &amp;lsquo;08 MacBook Pro has long since shit the bed. Requirements for the&#10;drive suggest that an Air is required (Apple website, original&#10;packaging and a call to an Apple store), and sure enough when plugged&#10;into the MBP running Lion (10.7.2)&amp;hellip; no dice.&lt;/p&gt;</description></item><item><title>Brokering with SIXXs</title><link>http://salopst.yearl.us/brokering-with-sixxs/</link><pubDate>Tue, 31 Jan 2012 06:51:00 +0000</pubDate><guid>http://salopst.yearl.us/brokering-with-sixxs/</guid><description>&lt;p&gt;Going to be changing ipv4 addresses a lot over the next little while, so I&amp;rsquo;ve decided to try a different v4-6 brokering arrangement. he.net&amp;rsquo;s tunnelbroker has been rock solid and I&amp;rsquo;ve been using it on and off since &amp;lsquo;08, but I think it time to try something else.&lt;/p&gt;&#10;&lt;p&gt;The ideal would be a self-monitoring client that identifies local ipv4 changes here (kind like a dynDNS client might), and renegotiate an ipv6 endpoint to tunnel through based on that change. he.net&amp;rsquo;s configureation is a little more static than that, and there is no API that I can see that I can hook into to write that client myself. I sure as hell am not going the &amp;lsquo;scrape screens&amp;rsquo; route for this.&lt;/p&gt;</description></item><item><title>Installing Ruby 1.9.2 with RVM fails on OS X Lion</title><link>http://salopst.yearl.us/installing-ruby-1-9-2-with-rvm-fails-on-os-x-lion/</link><pubDate>Fri, 28 Oct 2011 14:51:58 +0000</pubDate><guid>http://salopst.yearl.us/installing-ruby-1-9-2-with-rvm-fails-on-os-x-lion/</guid><description>&lt;p&gt;Remove RVM, thus making for a cleaner install later:&lt;/p&gt;&#10;&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;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$ RVM implode&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Remove XCode:&lt;/p&gt;&#10;&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;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$ sudo /Developer/Library/uninstall-devtools –mode&lt;span style="color:#f92672"&gt;=&lt;/span&gt;all&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;XCode is removed since in 4.2, at least, all references to gcc are linked to llvm-gcc (Apple&amp;rsquo;s) own fork of gcc. llvm will NOT compile ruby.&lt;/p&gt;&#10;&lt;p&gt;(One can always re-install from the AppStore later)&#10;download and install GCC-10.7-v2.pkg from &lt;a href="https://github.com/kennethreitz/osx-gcc-installer/downloads"&gt;https://github.com/kennethreitz/osx-gcc-installer/downloads&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;This will install just the bare-bones GCC compiler. It can safely be overwritten by XCode if you decide to reinstall it, or simple removed using the same command as that used for removing XCode.&#10;reinstall RVM: &lt;a href="http://beginrescueend.com/rvm/install/"&gt;http://beginrescueend.com/rvm/install/&lt;/a&gt;&#10;Install the package manager &amp;ldquo;homebrew&amp;rdquo; from &lt;a href="http://mxcl.github.com/homebrew/"&gt;http://mxcl.github.com/homebrew/&lt;/a&gt; and with it install libiconv.&lt;/p&gt;</description></item></channel></rss>