<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Os X on</title><link>http://salopst.yearl.us/tags/os-x/</link><description>Recent content in Os X 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/os-x/index.xml" rel="self" type="application/rss+xml"/><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>Create root SSH keys OS X (MacOS High Sierra)</title><link>http://salopst.yearl.us/create-root-ssh-keys-os-x-macos-high-sierra/</link><pubDate>Fri, 18 May 2018 10:19:13 +0000</pubDate><guid>http://salopst.yearl.us/create-root-ssh-keys-os-x-macos-high-sierra/</guid><description>&lt;p&gt;In all the years I&amp;rsquo;ve been running OS X (or MacOS as it is now called) I&amp;rsquo;ve never had the need to &lt;code&gt;su&lt;/code&gt;,&lt;code&gt;sudo&lt;/code&gt; was always good enough. And this is as it should be.&lt;/p&gt;&#10;&lt;p&gt;Until now. Obvs, &amp;ldquo;root&amp;rdquo; is disabled in High Sierra. So&amp;hellip;&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;$ cd /System/Library/CoreServices/Applications/&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$ ls&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Some cool apps here&amp;hellip;&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;drwxr-xr-x &lt;span style="color:#ae81ff"&gt;3&lt;/span&gt; root wheel 96B Mar &lt;span style="color:#ae81ff"&gt;30&lt;/span&gt; 12:48 About This Mac.app&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;drwxr-xr-x &lt;span style="color:#ae81ff"&gt;3&lt;/span&gt; root wheel 96B Mar &lt;span style="color:#ae81ff"&gt;30&lt;/span&gt; 12:48 Archive Utility.app&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;drwxr-xr-x &lt;span style="color:#ae81ff"&gt;3&lt;/span&gt; root wheel 96B Mar &lt;span style="color:#ae81ff"&gt;30&lt;/span&gt; 12:48 Directory Utility.app&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;drwxr-xr-x &lt;span style="color:#ae81ff"&gt;3&lt;/span&gt; root wheel 96B Mar &lt;span style="color:#ae81ff"&gt;30&lt;/span&gt; 12:48 Feedback Assistant.app&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;drwxr-xr-x &lt;span style="color:#ae81ff"&gt;3&lt;/span&gt; root wheel 96B Mar &lt;span style="color:#ae81ff"&gt;30&lt;/span&gt; 12:48 Folder Actions Setup.app&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;drwxr-xr-x &lt;span style="color:#ae81ff"&gt;3&lt;/span&gt; root wheel 96B Mar &lt;span style="color:#ae81ff"&gt;30&lt;/span&gt; 12:48 Network Utility.app&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;drwxr-xr-x &lt;span style="color:#ae81ff"&gt;3&lt;/span&gt; root wheel 96B May &lt;span style="color:#ae81ff"&gt;2&lt;/span&gt; 10:03 RAID Utility.app&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;drwxr-xr-x &lt;span style="color:#ae81ff"&gt;3&lt;/span&gt; root wheel 96B Mar &lt;span style="color:#ae81ff"&gt;30&lt;/span&gt; 12:48 Screen Sharing.app&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;drwxr-xr-x &lt;span style="color:#ae81ff"&gt;3&lt;/span&gt; root wheel 96B Mar &lt;span style="color:#ae81ff"&gt;30&lt;/span&gt; 12:48 Storage Management.app&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;drwxr-xr-x &lt;span style="color:#ae81ff"&gt;3&lt;/span&gt; root wheel 96B May &lt;span style="color:#ae81ff"&gt;2&lt;/span&gt; 10:03 System Image Utility.app&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;drwxr-xr-x &lt;span style="color:#ae81ff"&gt;3&lt;/span&gt; root wheel 96B Mar &lt;span style="color:#ae81ff"&gt;30&lt;/span&gt; 12:48 Wireless Diagnostics.app&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;strong&gt;Open Directory Utility&lt;/strong&gt; is the chappie we are interested in&lt;/p&gt;</description></item><item><title>Installing Solus linux on a Macbook Pro 9,1 (A1286): PART 2</title><link>http://salopst.yearl.us/installing-solus-linux-on-a-macbook-pro-91-a1286-part-2/</link><pubDate>Thu, 11 May 2017 09:35:12 +0000</pubDate><guid>http://salopst.yearl.us/installing-solus-linux-on-a-macbook-pro-91-a1286-part-2/</guid><description>&lt;ul&gt;&#10;&lt;li&gt;Part 1 simply booting the liveCD to even allow installation is here:&#10;&lt;a href="https://stephen.yearl.us/installing-solus-linux-on-a-macbook-pro-9"&gt;https://stephen.yearl.us/installing-solus-linux-on-a-macbook-pro-9&lt;/a&gt;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;Rebooting after install lead to, you guessed it, the Black Screen of Death again. Solus was installed, accepting all defaults (and therefore one humongous / paritiion), to /dev/sdb2, /dev/sda1 is the EFI partition on which &lt;a href="http://www.rodsbooks.com/refind/index.html"&gt;rEFInd&lt;/a&gt; was installed when running &lt;del&gt;OS X&lt;/del&gt; MacOS.&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;❯ lsblk&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sdb 8:16 &lt;span style="color:#ae81ff"&gt;0&lt;/span&gt; 477G &lt;span style="color:#ae81ff"&gt;0&lt;/span&gt; disk &#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;├─sdb2 8:18 &lt;span style="color:#ae81ff"&gt;0&lt;/span&gt; 473.2G &lt;span style="color:#ae81ff"&gt;0&lt;/span&gt; part /&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;└─sdb1 8:17 &lt;span style="color:#ae81ff"&gt;0&lt;/span&gt; 3.7G &lt;span style="color:#ae81ff"&gt;0&lt;/span&gt; part &lt;span style="color:#f92672"&gt;[&lt;/span&gt;SWAP&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;sdc 8:32 &lt;span style="color:#ae81ff"&gt;1&lt;/span&gt; 3.9G &lt;span style="color:#ae81ff"&gt;0&lt;/span&gt; disk &#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sda 8:0 &lt;span style="color:#ae81ff"&gt;0&lt;/span&gt; 465.8G &lt;span style="color:#ae81ff"&gt;0&lt;/span&gt; disk &#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;├─sda2 8:2 &lt;span style="color:#ae81ff"&gt;0&lt;/span&gt; 465G &lt;span style="color:#ae81ff"&gt;0&lt;/span&gt; part &#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;├─sda3 8:3 &lt;span style="color:#ae81ff"&gt;0&lt;/span&gt; 619.9M &lt;span style="color:#ae81ff"&gt;0&lt;/span&gt; part &#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;└─sda1 8:1 &lt;span style="color:#ae81ff"&gt;0&lt;/span&gt; 200M &lt;span style="color:#ae81ff"&gt;0&lt;/span&gt; part &#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h4 id="1-boot-back-into-macos-mount-efi-paritition"&gt;#1 Boot back into MacOS, mount EFI paritition:&lt;/h4&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 /Users/yearluk/Downloads/refind-bin-0.10.7/mountesp&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;❯ cd /Volumes/ESP/loader/entries&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;❯ nano Solus-lts-4.9.22-17.conf&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h4 id="2-change"&gt;#2 CHANGE:&lt;/h4&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;title Solus 2017.04.18.0&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;linux /EFI/com.solus-project/kernel-com.solus-project.lts.4.9.22-17&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;initrd /EFI/com.solus-project/initrd-com.solus-project.lts.4.9.22-17&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;options root&lt;span style="color:#f92672"&gt;=&lt;/span&gt;PARTUUID&lt;span style="color:#f92672"&gt;=&lt;/span&gt;c96bc351-b364-4c61-9fe6-8489f0ceec8f quiet ro splash resume&lt;span style="color:#f92672"&gt;=&lt;/span&gt;UUID&lt;span style="color:#f92672"&gt;=&lt;/span&gt;8f7d1509-fe95-4e47-8017-41611ad0a14c&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h4 id="to"&gt;TO:&lt;/h4&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;title Solus 2017.04.18.0&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;linux /EFI/com.solus-project/kernel-com.solus-project.lts.4.9.22-17&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;initrd /EFI/com.solus-project/initrd-com.solus-project.lts.4.9.22-17&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;options root&lt;span style="color:#f92672"&gt;=&lt;/span&gt;PARTUUID&lt;span style="color:#f92672"&gt;=&lt;/span&gt;c96bc351-b364-4c61-9fe6-8489f0ceec8f ro nomodeset nouveau.blacklist&lt;span style="color:#f92672"&gt;=&lt;/span&gt;&lt;span style="color:#ae81ff"&gt;1&lt;/span&gt; resume&lt;span style="color:#f92672"&gt;=&lt;/span&gt;UUID&lt;span style="color:#f92672"&gt;=&lt;/span&gt;8f7d1509-fe95-4e47-8017-41611ad0a14c text &lt;span style="color:#ae81ff"&gt;3&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h4 id="3-repeat-steps-3-through-8-from-part-1-7-this-time-was-modprobe-nvidia"&gt;#3 Repeat steps #3 through #8 from &lt;a href="http://stephen.yearl.us/installing-solus-linux-on-a-macbook-pro-91-a1286/"&gt;Part 1&lt;/a&gt; (#7 this time was &lt;code&gt;modprobe nvidia&lt;/code&gt;)&lt;/h4&gt;&#10;&lt;h4 id="4-update-entire-system"&gt;#4 update entire system&lt;/h4&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 eopkg up&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h4 id="5-using-the-apple-bootloader-hold-opt-key-whilst-booting-to-boot-boots-graphically-now"&gt;#5 using the Apple bootloader [hold opt key whilst booting] to boot&amp;hellip; boots graphically now.&lt;/h4&gt;</description></item><item><title>Installing Solus linux on a Macbook Pro 9,1 (A1286)</title><link>http://salopst.yearl.us/installing-solus-linux-on-a-macbook-pro-91-a1286/</link><pubDate>Mon, 08 May 2017 07:03:14 +0000</pubDate><guid>http://salopst.yearl.us/installing-solus-linux-on-a-macbook-pro-91-a1286/</guid><description>&lt;p&gt;I&amp;rsquo;ve been sunning[*] &lt;a href="https://getsol.us"&gt;Solus&lt;/a&gt; as guest in a Parallels virtual machine on a macOS Sierra 10.12.4 host for a couple of months now, and I am delighted and impressed, so impressed I &lt;del&gt;bought the company&lt;/del&gt;[**] wanted to install this on Apple iron. Solus installed beautifully on an 2010 Lenovo X201 and on a new and cheap and plastically Dell Inspiron 14-3452, so it should have no probs installing on a mid-2012, 15.4&amp;quot; Hi-Res MBP. Right? Right? Wrong!&lt;/p&gt;</description></item><item><title>Create a bootable ISO of macOS Sierra</title><link>http://salopst.yearl.us/create-a-bootable-macos-sierra-iso/</link><pubDate>Mon, 17 Apr 2017 03:38:31 +0000</pubDate><guid>http://salopst.yearl.us/create-a-bootable-macos-sierra-iso/</guid><description>&lt;p&gt;Playing with Solus recently got me to thinking that maybe I could live again in a Linux world, but rather than running Linux in a Virtual Machine (that would currently be Parallels 12 for me), what if I dit it the other way around? That is, run OS X 10.12.4 (macOS Sierra) as a guest and Linux as a host&amp;hellip;&lt;/p&gt;&#10;&lt;p&gt;Download MacOS Sierra from AppStore.&lt;/p&gt;&#10;&lt;p&gt;Reboot.&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;❯ hdiutil attach /Applications/Install&lt;span style="color:#ae81ff"&gt;\ &lt;/span&gt;macOS&lt;span style="color:#ae81ff"&gt;\ &lt;/span&gt;Sierra.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;❯ hdiutil create -o /tmp/Sierra.cdr -size 7316m -layout SPUD -fs HFS+J&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;❯ hdiutil attach /tmp/Sierra.cdr.dmg -noverify -nobrowse -mountpoint /Volumes/install_build&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;❯ asr restore -source /Volumes/install_app/BaseSystem.dmg -target /Volumes/install_build -noprompt -noverify -erase&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;❯ rm /Volumes/OS&lt;span style="color:#ae81ff"&gt;\ &lt;/span&gt;X&lt;span style="color:#ae81ff"&gt;\ &lt;/span&gt;Base&lt;span style="color:#ae81ff"&gt;\ &lt;/span&gt;System/System/Installation/Packages&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;❯ cp -rp /Volumes/install_app/Packages /Volumes/OS&lt;span style="color:#ae81ff"&gt;\ &lt;/span&gt;X&lt;span style="color:#ae81ff"&gt;\ &lt;/span&gt;Base&lt;span style="color:#ae81ff"&gt;\ &lt;/span&gt;System/System/Installation/&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;❯ cp -rp /Volumes/install_app/BaseSystem.chunklist /Volumes/OS&lt;span style="color:#ae81ff"&gt;\ &lt;/span&gt;X&lt;span style="color:#ae81ff"&gt;\ &lt;/span&gt;Base&lt;span style="color:#ae81ff"&gt;\ &lt;/span&gt;System/BaseSystem.chunklist&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;❯ cp -rp /Volumes/install_app/BaseSystem.dmg /Volumes/OS&lt;span style="color:#ae81ff"&gt;\ &lt;/span&gt;X&lt;span style="color:#ae81ff"&gt;\ &lt;/span&gt;Base&lt;span style="color:#ae81ff"&gt;\ &lt;/span&gt;System/BaseSystem.dmg&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;❯ hdiutil detach /Volumes/install_app&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;❯ hdiutil detach /Volumes/OS&lt;span style="color:#ae81ff"&gt;\ &lt;/span&gt;X&lt;span style="color:#ae81ff"&gt;\ &lt;/span&gt;Base&lt;span style="color:#ae81ff"&gt;\ &lt;/span&gt;System/&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;❯ hdiutil convert /tmp/Sierra.cdr.dmg -format UDTO -o /tmp/Sierra.iso&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;❯ mv /tmp/Sierra.iso.cdr ~/Desktop/Sierra.iso&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;I grabbed this off the internets somewhere, and I do not know whence. Thanks to the original author, whoever &lt;del&gt;she&lt;/del&gt; he may be.&#10;&lt;strong&gt;EDIT [2017-05-08]&lt;/strong&gt;: Found you: &lt;a href="https://gist.github.com/arobb/447a962af4f07ef81e79987d686275e5"&gt;https://gist.github.com/arobb/447a962af4f07ef81e79987d686275e5&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Remapping Macbook Pro eject key under Solus linux</title><link>http://salopst.yearl.us/remapping-macbook-pro-eject-key-under-solus-linux/</link><pubDate>Sun, 19 Mar 2017 12:35:43 +0000</pubDate><guid>http://salopst.yearl.us/remapping-macbook-pro-eject-key-under-solus-linux/</guid><description>&lt;h3 id="disable-eject-in-keyboard-settings-it-is-the-first-entry-under-sound-and-media"&gt;Disable &amp;ldquo;Eject&amp;rdquo; in keyboard settings. It is the first entry under &amp;ldquo;Sound and Media&amp;rdquo;&lt;/h3&gt;&#10;&lt;h3 id="create-a-file-xmodmap-adding-the-line"&gt;create a file, &lt;strong&gt;~/.Xmodmap&lt;/strong&gt;, adding the line:&lt;/h3&gt;&#10;&lt;p&gt;&lt;code&gt;keycode 151 = BackSpace&lt;/code&gt;&lt;/p&gt;&#10;&lt;h3 id="run"&gt;run&lt;/h3&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;xmodmap ~/.Xmodmap&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id="add-that-to-wherever-your-startup-scripts-are-for-persistence"&gt;add that to wherever your startup scripts are for persistence&lt;/h3&gt;&#10;&lt;p&gt;The keycode mappings I got from &lt;strong&gt;xev&lt;/strong&gt;, kind of like &amp;ldquo;keyboard viewer&amp;rdquo; in OS X. Its available in the Solus repo:&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 eopkg install xev&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description></item><item><title>Mounting an iOS 10.2 device in Solus OS</title><link>http://salopst.yearl.us/mounting-an-ios-10-2-device-in-solus-os/</link><pubDate>Tue, 07 Mar 2017 03:12:21 +0000</pubDate><guid>http://salopst.yearl.us/mounting-an-ios-10-2-device-in-solus-os/</guid><description>&lt;h2 id="tldr"&gt;tl;dr&lt;/h2&gt;&#10;&lt;p&gt;I feel that after ten years I can no longer countenance the purchase of a new Apple laptop should my existing machine shit the bed. All that nonsense associated with the race to thinness and the resultant lack of expandability of the newer machines, where everything is soldered or glued into place, has me pretty upset. Oh, and the OS itself has been getting more annoying with each release since Snow Leopard. So I am planning for a day without OS X/ MacOS. After a few distro trials (ongoing) I&amp;rsquo;ve come down to:&lt;/p&gt;</description></item><item><title>Fsked El Capitan home directory</title><link>http://salopst.yearl.us/fsked-el-capitan-home-directory/</link><pubDate>Mon, 23 May 2016 05:41:31 +0000</pubDate><guid>http://salopst.yearl.us/fsked-el-capitan-home-directory/</guid><description>&lt;p&gt;Not entirely sure how I managed to hose my user directory, but I did, and it followed a boot into safe mode (reboot and SHIFT) in order to update an ancient &lt;a href="https://www.macports.org/"&gt;MacPorts&lt;/a&gt; installation; &lt;a href="http://brew.sh/"&gt;homebrew&lt;/a&gt; sort of replaced that for my usage. OK, no biggie. I have back ups right? I do, but those back up in recent months have been based on Apple&amp;rsquo;s &lt;a href="https://en.wikipedia.org/wiki/Time_Machine_%28OS_X%29"&gt;Time Machine&lt;/a&gt;. I changed to this from &lt;a href="https://bombich.com/"&gt;Carbon Copy Cloner&lt;/a&gt; by means of experiment. CCC has been bullet-proof, and I have always used it for family members, but there was something enticing about the seeming simplicity of Time Machine&amp;hellip; something that is great for restoring files, but not so great, it turns out, for a full system restore. Suffice to say that a combination of backup solutions really is the way to go.&lt;/p&gt;</description></item><item><title>Customised OS X Keybindings…. with Karabiner.... 'correct' shift keys</title><link>http://salopst.yearl.us/customised-os-x-keybindings-with-karabiner-correct-shift-keys/</link><pubDate>Mon, 27 Jul 2015 05:59:42 +0000</pubDate><guid>http://salopst.yearl.us/customised-os-x-keybindings-with-karabiner-correct-shift-keys/</guid><description>&lt;p&gt;Like this fellow, &lt;a href="http://stevelosh.com/blog/2012/10/a-modern-space-cadet/#better-shifting"&gt;Steve Losh &amp;ndash; better shifting&lt;/a&gt;, I&amp;rsquo;ve been using the wrong shift keys for upper-case letters for as long as I&amp;rsquo;ve been using a keyboard&amp;hellip; as well as some even more egregious errors (right ring finger for &amp;lsquo;p&amp;rsquo;, right index for &amp;lsquo;b&amp;rsquo;&amp;hellip; the list is nigh endless). Lo, his Karabiner solution:&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;Arghh!&amp;hellip;.. It has only been a couple of hours and this is devilishly frustrating!!&lt;/strong&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-xml" data-lang="xml"&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; Use the correct shift keys.&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; private.correct_shift_keys&#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; --KeyToKey-- KeyCode::Q, ModifierFlag::SHIFT_L, KeyCode::VK_NONE&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; --KeyToKey-- KeyCode::W, ModifierFlag::SHIFT_L, KeyCode::VK_NONE&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; --KeyToKey-- KeyCode::E, ModifierFlag::SHIFT_L, KeyCode::VK_NONE&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; --KeyToKey-- KeyCode::R, ModifierFlag::SHIFT_L, KeyCode::VK_NONE&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; --KeyToKey-- KeyCode::T, ModifierFlag::SHIFT_L, KeyCode::VK_NONE&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; --KeyToKey-- KeyCode::A, ModifierFlag::SHIFT_L, KeyCode::VK_NONE&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; --KeyToKey-- KeyCode::S, ModifierFlag::SHIFT_L, KeyCode::VK_NONE&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; --KeyToKey-- KeyCode::D, ModifierFlag::SHIFT_L, KeyCode::VK_NONE&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; --KeyToKey-- KeyCode::F, ModifierFlag::SHIFT_L, KeyCode::VK_NONE&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; --KeyToKey-- KeyCode::G, ModifierFlag::SHIFT_L, KeyCode::VK_NONE&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; --KeyToKey-- KeyCode::Z, ModifierFlag::SHIFT_L, KeyCode::VK_NONE&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; --KeyToKey-- KeyCode::X, ModifierFlag::SHIFT_L, KeyCode::VK_NONE&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; --KeyToKey-- KeyCode::C, ModifierFlag::SHIFT_L, KeyCode::VK_NONE&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; --KeyToKey-- KeyCode::V, ModifierFlag::SHIFT_L, KeyCode::VK_NONE&#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; --KeyToKey-- KeyCode::Y, ModifierFlag::SHIFT_R, KeyCode::VK_NONE&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; --KeyToKey-- KeyCode::U, ModifierFlag::SHIFT_R, KeyCode::VK_NONE&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; --KeyToKey-- KeyCode::I, ModifierFlag::SHIFT_R, KeyCode::VK_NONE&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; --KeyToKey-- KeyCode::O, ModifierFlag::SHIFT_R, KeyCode::VK_NONE&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; --KeyToKey-- KeyCode::P, ModifierFlag::SHIFT_R, KeyCode::VK_NONE&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; --KeyToKey-- KeyCode::H, ModifierFlag::SHIFT_R, KeyCode::VK_NONE&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; --KeyToKey-- KeyCode::J, ModifierFlag::SHIFT_R, KeyCode::VK_NONE&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; --KeyToKey-- KeyCode::K, ModifierFlag::SHIFT_R, KeyCode::VK_NONE&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; --KeyToKey-- KeyCode::L, ModifierFlag::SHIFT_R, KeyCode::VK_NONE&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; --KeyToKey-- KeyCode::SEMICOLON, ModifierFlag::SHIFT_R, KeyCode::VK_NONE&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; --KeyToKey-- KeyCode::N, ModifierFlag::SHIFT_R, KeyCode::VK_NONE&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; --KeyToKey-- KeyCode::M, ModifierFlag::SHIFT_R, KeyCode::VK_NONE&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; --KeyToKey-- KeyCode::COMMA, ModifierFlag::SHIFT_R, KeyCode::VK_NONE&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; --KeyToKey-- KeyCode::DOT, ModifierFlag::SHIFT_R, KeyCode::VK_NONE&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; --KeyToKey-- KeyCode::QUOTE, ModifierFlag::SHIFT_R, KeyCode::VK_NONE&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description></item><item><title>Remapping CAPS LOCK with seil/karabiner</title><link>http://salopst.yearl.us/remapping-caps-lock-with-seil/</link><pubDate>Wed, 22 Jul 2015 04:27:20 +0000</pubDate><guid>http://salopst.yearl.us/remapping-caps-lock-with-seil/</guid><description>&lt;h3 id="for-the-longest-time-i-have-had-caps-lock-set-to-no-action-in-system-preferences--keyboard-modifier-keys"&gt;For the longest time I have had caps lock set to “no action” in System Preferences &amp;raquo; Keyboard&amp;raquo; Modifier Keys:&lt;/h3&gt;&#10;&#10; &lt;img src="http://salopst.yearl.us/uploads/caps-lock-no-action.png" alt="caps-lock-no-action" class="center" style="border-radius: 50px;" /&gt;&#10;&#10;&#10;&lt;p&gt;But recently I’ve been playing with Vim (and also finally getting around to learning how to touch type) a little more now that I have some time on my hands, and decided that I needed an escape key that wasn’t such a PITA to get to without risking breaking my left pinkie. Enter &lt;a href="https://pqrs.org/osx/karabiner/"&gt;Karibiner&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Window Managers for OS X</title><link>http://salopst.yearl.us/window-managers-for-os-x/</link><pubDate>Tue, 21 Jul 2015 21:35:37 +0000</pubDate><guid>http://salopst.yearl.us/window-managers-for-os-x/</guid><description>&lt;p&gt;Playing with &lt;a href="https://pqrs.org/osx/karabiner/"&gt;Karabiner&lt;/a&gt; and searching for others&amp;rsquo; keybindings has led me somewhat down the rabbit hole of window management on OS X. There seem to be a bunch, some light-weight, some heavy. Some under active development, others that seem to be abandoned.&lt;/p&gt;&#10;&lt;p&gt;Managing windows can be a PITA, lots of precision dragging and resizing and all to get the windows into the desired position. Several window managers exist for OS X, and a short, short list would include:&lt;/p&gt;</description></item><item><title>Installing hammerspoon</title><link>http://salopst.yearl.us/installing-hammerspoon/</link><pubDate>Wed, 24 Jun 2015 19:03:04 +0000</pubDate><guid>http://salopst.yearl.us/installing-hammerspoon/</guid><description>&lt;blockquote&gt;&#10;&lt;h3 id="what-is-hammerspoon"&gt;What is Hammerspoon?&lt;/h3&gt;&#10;&lt;/blockquote&gt;&#10;&lt;p&gt;A tool for powerful automation of OS X. At its core, Hammerspoon is just a bridge between the operating system and a Lua scripting engine. What gives Hammerspoon its power is a set of extensions that expose specific pieces of system functionality, to the user.&lt;/p&gt;&#10;&#10; &lt;img src="http://salopst.yearl.us/install_hammerspoon.png" alt="Install Hammerspoon" class="center" style="border-radius: 50px;" /&gt;</description></item><item><title>NPM, antigen and ZSH pure prompt</title><link>http://salopst.yearl.us/npm-and-zsh-pure-prompt/</link><pubDate>Wed, 24 Jun 2015 05:13:58 +0000</pubDate><guid>http://salopst.yearl.us/npm-and-zsh-pure-prompt/</guid><description>&lt;p&gt;So somehow I managed to mess up my install of the &lt;a href="https://github.com/sindresorhus/pure"&gt;pure prompt&lt;/a&gt; such that it was not loading async.&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;prompt_pure_setup:10: async: &lt;span style="color:#66d9ef"&gt;function&lt;/span&gt; definition file not found&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;prompt_pure_async_tasks:3: command not found: async_start_worker&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;prompt_pure_async_tasks:4: command not found: async_register_callback&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;How or why this happened I know not. Easy peasy to fix with npm, right?&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;❯ npm update &lt;span style="color:#f92672"&gt;&amp;amp;&amp;amp;&lt;/span&gt; npm install --global pure-prompt&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&amp;gt; pure-prompt@1.1.0 postinstall /Users/yearlus/node_modules/pure-prompt&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&amp;gt; dest&lt;span style="color:#f92672"&gt;=&lt;/span&gt;/usr/local/share/zsh/site-functions/; mkdir -p $dest &lt;span style="color:#f92672"&gt;&amp;amp;&amp;amp;&lt;/span&gt; ln -sf &lt;span style="color:#e6db74"&gt;&amp;#34;&lt;/span&gt;$PWD&lt;span style="color:#e6db74"&gt;/pure.zsh&amp;#34;&lt;/span&gt; $dest/prompt_pure_setup &lt;span style="color:#f92672"&gt;&amp;amp;&amp;amp;&lt;/span&gt; ln -sf &lt;span style="color:#e6db74"&gt;&amp;#34;&lt;/span&gt;$PWD&lt;span style="color:#e6db74"&gt;/async.zsh&amp;#34;&lt;/span&gt; $dest/async &lt;span style="color:#f92672"&gt;||&lt;/span&gt; echo &lt;span style="color:#e6db74"&gt;&amp;#39;Could not automagically symlink the prompt. Check out the readme on how to do it manually: https://github.com/sindresorhus/pure#manually&amp;#39;&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;pure-prompt@1.1.0 node_modules/pure-prompt&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;No problem. As the doco reads&lt;/p&gt;</description></item><item><title>Confusing iPhoto/Aperture and Photo libraries</title><link>http://salopst.yearl.us/confusing-iphoto-aperture-and-photo-libraries/</link><pubDate>Thu, 23 Apr 2015 08:46:06 +0000</pubDate><guid>http://salopst.yearl.us/confusing-iphoto-aperture-and-photo-libraries/</guid><description>&lt;p&gt;So, with Apple&amp;rsquo;s release of OS X 10.10.3 on Monday came the new Photo&amp;rsquo;s &amp;ldquo;app&amp;rdquo;. In their misguided wisdom our cousins in Cupertino have continued along the path of dumbing-down Mac programs that are inching ever closer to their iOS equivalents.&lt;/p&gt;&#10;&lt;p&gt;Their consumer editing program was iPhoto, the &amp;ldquo;pro&amp;rdquo; version, Aperture. Both are to be replaced with the very iOS/iCloud looking Photos, and whilst iPhoto and Aperture could happily share the same photo library, Photos will not.&lt;/p&gt;</description></item><item><title>SSH key pair authentication</title><link>http://salopst.yearl.us/ssh-key-pair-authentication/</link><pubDate>Sun, 14 Dec 2014 13:20:54 +0000</pubDate><guid>http://salopst.yearl.us/ssh-key-pair-authentication/</guid><description>&lt;p&gt;Well, flummery. It&amp;rsquo;s been a while since I had to do this, so here, future self, some awesome notes&amp;hellip;&lt;/p&gt;&#10;&lt;h3 id="local"&gt;LOCAL&lt;/h3&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;$ ssh-keygen -t rsa -b &lt;span style="color:#ae81ff"&gt;4096&lt;/span&gt; -f ~/.ssh/id_rsa_4096&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$ scp -P &lt;span style="color:#ae81ff"&gt;2222&lt;/span&gt; 192.168.0.108:/home/yearluk/.ssh/yearluk.ehecatl.pub&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id="ssh-to-remote"&gt;SSH to REMOTE&amp;hellip;&lt;/h3&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;$ cat ~/.ssh/yearluk.ehecatl.pub &amp;gt;&amp;gt; authorized_keys&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description></item><item><title>cleaning up a homebrew installation</title><link>http://salopst.yearl.us/cleaning-up-a-homebrew-installation/</link><pubDate>Tue, 23 Sep 2014 23:31:02 +0000</pubDate><guid>http://salopst.yearl.us/cleaning-up-a-homebrew-installation/</guid><description>&lt;p&gt;I keep meaning to get around to do this, but never do. This evening I took a look at &lt;a href="http://exercism.io"&gt;exercism.io&lt;/a&gt; and the installation of its CLI program had a Homebrew option, so then was a good a moment as any, that and with the imminent release of OS 42 (X.10.10)&amp;hellip;&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;$brew -v&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;==&amp;gt; 0.9.5&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 chown -R &lt;span style="color:#e6db74"&gt;`&lt;/span&gt;whoami&lt;span style="color:#e6db74"&gt;`&lt;/span&gt; /usr/local&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$cd /usr/local&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$git fetch origin&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$git reset --hard origin/master&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$brew cleanup&#10;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;$brew upgrade&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;==&amp;gt; ALL OK!&lt;/p&gt;</description></item><item><title>Automated file management with maid</title><link>http://salopst.yearl.us/automated-file-management-with-maid/</link><pubDate>Mon, 22 Jul 2013 23:05:50 +0000</pubDate><guid>http://salopst.yearl.us/automated-file-management-with-maid/</guid><description>&lt;p&gt;I&amp;rsquo;ve been playing with &lt;a href="http://www.noodlesoft.com/hazel.php"&gt;Hazel&lt;/a&gt; a bit recently, mostly so I can get a handle on it to support others&amp;rsquo; usage of a simple file automation/ housekeeping application. I like it, but it is somewhat limited in not allowed nested conditional and other basic logic statements. Anyway, what Hazel does is not much more&amp;ndash; and very frequently less&amp;ndash; that what I&amp;rsquo;ve been doing with ad hoc cron scripts. These are not very tidy having built built up over the years. And so I Googled and I found a x-platform, ruby based Hazel alternative in &lt;a href="http://rubygems.org/gems/maid"&gt;maid&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Alfred 2 workflows</title><link>http://salopst.yearl.us/alfred-2-workflows/</link><pubDate>Sat, 15 Jun 2013 21:12:16 +0000</pubDate><guid>http://salopst.yearl.us/alfred-2-workflows/</guid><description>&lt;h2 id="2016-05-23-update"&gt;2016-05-23 update:&lt;/h2&gt;&#10;&lt;p&gt;Due to &lt;a href="http://stephen.yearl.us/fsked-home-el-capitan-home-directory/"&gt;recent woes&lt;/a&gt; I had to revisit Alfred Workflows&amp;hellip; basically the below remains the same with the addition of:&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="http://www.packal.org/workflow/packal-updater"&gt;http://www.packal.org/workflow/packal-updater&lt;/a&gt;&#10;&lt;a href="http://www.packal.org/workflow/datetime-format-converter"&gt;http://www.packal.org/workflow/datetime-format-converter&lt;/a&gt;&#10;&lt;a href="http://www.packal.org/workflow/toggle-keyboard-viewer"&gt;http://www.packal.org/workflow/toggle-keyboard-viewer&lt;/a&gt;&#10;&lt;a href="http://www.packal.org/workflow/leo-dictionary"&gt;http://www.packal.org/workflow/leo-dictionary&lt;/a&gt;&#10;&lt;a href="http://www.packal.org/workflow/eggtimer-2"&gt;http://www.packal.org/workflow/eggtimer-2&lt;/a&gt;&#10;&lt;a href="http://www.packal.org/workflow/units"&gt;http://www.packal.org/workflow/units&lt;/a&gt;&lt;/p&gt;&#10;&lt;hr&gt;&#10;&lt;hr&gt;&#10;&lt;hr&gt;&#10;&lt;h2 id="wolfram-alpha"&gt;Wolfram Alpha:&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;Get Alfred 2, buy the Powerpack! &lt;a href="http://www.alfredapp.com/"&gt;http://www.alfredapp.com/&lt;/a&gt;&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;Get Wolfram Alpha workflow: &lt;a href="http://www.alfredforum.com/topic/655-wolframalpha-workflow/"&gt;http://www.alfredforum.com/topic/655-wolframalpha-workflow/&lt;/a&gt;&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;Get Wolfram Alpha appID: &lt;a href="https://developer.wolframalpha.com/portal/signin.html"&gt;https://developer.wolframalpha.com/portal/signin.html&lt;/a&gt;&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;And behold! Easy access to a wealth of information, unit conversions, values for scientific formulæ and constants and the&amp;hellip;&lt;/p&gt;&#10;&lt;p&gt;&lt;img src="http://salopst.yearl.us/uploads/wpid-Screen-Shot-2013-07-08-at-17.06.02-5.png" alt=""&gt;&lt;/p&gt;&#10;&lt;h2 id="timer"&gt;Timer:&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;a href="http://dbader.org/blog/alfred-timer-extension"&gt;http://dbader.org/blog/alfred-timer-extension&lt;/a&gt;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;&lt;img src="http://salopst.yearl.us/uploads/wpid-alfred-timer1.png" alt=""&gt;&lt;/p&gt;&#10;&lt;p&gt;Very simple countdown timer. Nothing fancy, practically zero overhead.&lt;/p&gt;</description></item><item><title>Odds and sods</title><link>http://salopst.yearl.us/odds-and-sods/</link><pubDate>Sun, 17 Feb 2013 04:11:39 +0000</pubDate><guid>http://salopst.yearl.us/odds-and-sods/</guid><description>&lt;h2 id="compile-of-kde4-keeps-failing-on-freebsd-91whether-by"&gt;Compile of KDE4 keeps failing on FreeBSD 9.1 whether by&lt;/h2&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;&lt;span style="color:#75715e"&gt;# cd /usr/ports/x11/kde4 # make install clean&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;or&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;&lt;span style="color:#75715e"&gt;# pkg_add -r kde4&lt;/span&gt;&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;after &lt;code&gt;STOP&lt;/code&gt;  tried&lt;/p&gt;&#10;&lt;p&gt;&lt;code&gt;# cd /usr/ports/x11/xorg # make install clean&lt;/code&gt; &amp;ndash;&amp;gt; OK. Then: &lt;code&gt;# cd /usr/ports/x11/kde4 # make install clean&lt;/code&gt;&lt;/p&gt;&#10;&lt;p&gt;Works like a charm!&lt;/p&gt;&#10;&lt;hr&gt;&#10;&lt;hr&gt;&#10;&lt;hr&gt;&#10;&lt;h3 id="maccy-icons"&gt;Maccy Icons&lt;/h3&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;⌘ – ⌘ – ⌘ – Cmd&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;⌥ – ⌥ – ⌥ – Opt / Alt&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;⇧ – ⇧ – ⇧ – Shift&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;⎋ – ⎋ – ⎋ – ESC&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;⇪ – ⇪ – ⇪ – Capslock&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;⏎ – ⏎ – ⏎ – Return&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;⌤ –  Enter (⇧ + ⏎)&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;⌫ – ⌫ – ⌫ – the Delete / Backspace symbol&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;⌦ – Forward-Delete (fn + ⌫)&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;⌃ – Control⇥ – Tab &lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;To enter unicode char point, select &amp;ldquo;Unicode Hex Input&amp;rdquo; in Input sources then, for e.g. ⌥+2318 for the ⌘ symbol.  Or double-click the relevant icon in Character Viewer.&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;ctrl+shift+ tab == cycle chrome tabs&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>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><item><title>Setting GCC 4.2 as the default compiler on Mac OS X Leopard</title><link>http://salopst.yearl.us/setting-gcc-4-2-as-the-default-compiler-on-mac-os-x-leopard/</link><pubDate>Thu, 27 Oct 2011 15:00:01 +0000</pubDate><guid>http://salopst.yearl.us/setting-gcc-4-2-as-the-default-compiler-on-mac-os-x-leopard/</guid><description>&lt;p&gt;Im my experience (limited), changing CC in .profile does not change Lion&amp;rsquo;s (10.7.2) defaulting to i686-apple-darwin11-llvm-gcc-4.2. I wonder if this has anything to do with Apple&amp;rsquo;s own sym linking:&#10;a partial: &lt;code&gt;$ls -la /usr/bin | grep .*gcc.*&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;lrwxr-xr-x &lt;span style="color:#ae81ff"&gt;1&lt;/span&gt; root wheel &lt;span style="color:#ae81ff"&gt;12&lt;/span&gt; &lt;span style="color:#ae81ff"&gt;25&lt;/span&gt; oct 19:31 cc -&amp;gt; llvm-gcc-4.2lrwxr-xr-x &lt;span style="color:#ae81ff"&gt;1&lt;/span&gt; root wheel &lt;span style="color:#ae81ff"&gt;12&lt;/span&gt; &lt;span style="color:#ae81ff"&gt;25&lt;/span&gt; oct 19:31 gcc -&amp;gt; llvm-gcc-4.2lrwxr-xr-x &lt;span style="color:#ae81ff"&gt;1&lt;/span&gt; root admin &lt;span style="color:#ae81ff"&gt;32&lt;/span&gt; &lt;span style="color:#ae81ff"&gt;25&lt;/span&gt; oct 19:31 llvm-gcc-4.2 -&amp;gt; ../llvm-gcc-4.2/bin/llvm-gcc-4.2&#10;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;I am wary about breaking these and adding my own to &lt;code&gt;usr/bin/gcc-4.2&lt;/code&gt; per Martin v. Löwis&amp;rsquo;s answer.&lt;/p&gt;</description></item></channel></rss>