The EFF has a subdomain «fixitalready» about the privacy problems being long ignored by big tech companies. Do your part and make some noise where relevant. 👍
RC Logr 20190305 095019 - The EFF has a subdomain …Welcome
Rick’s short, technical tip microblog built with Hugo, powered by Deno Deploy. See also my fabulous repository at Github for this site.
05 Mar 2019
Making a bulk email template with the excellent and popular mjml, guess which mail client causes problems‽ Outlook, of course (smh)! I need to add exception code to have that POS render correctly. Burn it with FIRE! 🔥
RC Logr 20190305 092239 - Making a bulk email template …04 Mar 2019
Neat zsh trick which I understand works in bash too, replace text of your last issued command. Type caret then the text to find, and caret then the text to replace. «^findtext^replacetext
»
03 Mar 2019
I like keybase.io for secure file sharing, but bashupload.com also looks like a cool tool, because it appears to not need an account and it allows you to share up to 25GB. Check out dat project as well. 🗂
RC Logr 20190303 201422 - I like keybase.io for secure …I am tempted to try Nix over the fairly standard Homebrew on my Macs (anyone remember MacPorts?), because I am interested in NixOS and functional programming, but I wonder if it will end up being fragile. 🤔
RC Logr 20190303 080935 - I am tempted to try Nix over …01 Mar 2019
I integrated holiday name display in Logr, pulling the needed holiday data in json format from my ops db, then parsing it when building the site with Hugo. The gist is, with the post date in a format that is the same as one of the fields in the data, read the data in, and match the post date to the record that has that date, then pull the holiday text from that record and show it. 🏖
The json data looks like:
|
|
And the Hugo template that pulls it looks like:
|
|
The open source «fsnotes» is macOS and iOS only, but looks really solid! 📓
RC Logr 20190301 191149 - The open source «fsnotes» is …If you are using ssh
or rsync
, one important setup tip is to make sure your permissions are correct locally and on any remote. Home directory is at most 755, .ssh
directory is 700, public keys are 644, private keys are 600, and the authorized_keys
file is 644. 😎
I hate corporate email systems that tack on a massive disclaimer or insert [EXTERNAL]
or <EXT>
in the Subject line like a scarlet letter when someone replies to your email (seriously, who thought that was a good idea‽), or signatures with an inordinate number of attachments. 👿
Well, the month-based color palette changed as expected with the previous post, and my logr site is now rocking the 壺菫 «tsubosumire» color scheme for March. Sass and Hugo Pipes for the win! 💐
RC Logr 20190301 114354 - Well, the month-based color …Was pleasantly suprised at how easy it is to get syntax highlighting going in Hugo, since its inclusion of the fast Golang-based «Chroma» library, and even making it backward compatible with most pygments settings. My config.toml
contains the following:
|
|
… and to get it to work you just use a code fence (three backticks) specifying the language like:
|
|
28 Feb 2019
In bash or zsh, do cd -
to pop back to your previous location. Say you are deep in your file system and do a cd
to jump to $HOME
. If you want to jump back to the deep location, just do cd -
. 🚀
In bash or zsh, you can recall the last argument using !$
. For example, if you execute ls /crazy/path/to/some/remote/part/of/your/disk/file.txt
, to edit it you could just do vim !$
, instead of using your arrow keys to navigate all the way to the ls
. 👻 (thx Rudi)
Finally had time to experiment with the Hugo SSG pipeline feature for real, which lets you process sass easily, and without too much reliance on npm. Make /myproject/assets/main.scss
, import your scss
files at the top (say from a library like tachyons), and then use Hugo template code in it to do some interesting stuff. I tried pulling params from config.toml
, and a conditional month check to set colors per the season, and it works a treat!
In your <head>
(assumes postcss-cli
and autoprefixer
are installed via npm
):
|
|
In your main.scss
:
|
|
Then just use the classes in your templates.
RC Logr 20190228 074744 - Finally had time to experiment …27 Feb 2019
You can use the dd
command to write a downloaded .iso
file to a USB stick, for booting and installing and so on. You need to be careful when using dd
, because it is possible to overwrite an entire drive (hence the nickname: disk destroyer). A GUI alternative is «balenaEtcher», a cross-platform app written to make the OS flash-to-media process easy and safe. (It is an electron app, so I should say it is brought to you by 10,000 javascript files… 🙀)
On Mac, the non-GUI, old fashioned dd
style command sequence is something like:
|
|
On Linux:
|
|
26 Feb 2019
Today I saw the phrase «security theatre» used to describe not setting a passphrase on your private keys. Bruce Schneier coined the term to describe things like random searches on the subway, or what the TSA does in general. (But, we paid good money for it, so it must be effective right‽) 🕵🏻
RC Logr 20190226 172942 - Today I saw the phrase …If you use zsh «and you should», you can use many vim key bindings to edit the command line. Just chuck bindkey -v
in your .zshrc
and then source it to test. Esc, then b, b, b will jump the cursor back word by word for instance. 🤓
Linux distro comparison lists are misleading, for instance counting the number of packages. RPMs might have more bundled software than do debs for example. Rather, decide what you need to do, and then assess how easy or hard it will be to install what you need on your selected distro, or on a unix like BSD for that matter. 🔁
RC Logr 20190226 081429 - Linux distro comparison lists …25 Feb 2019
Want an easy way to reload your shell? Do: exec $SHELL --login
. Alias it with a shell function for easy remembering.
|
|
24 Feb 2019
macOS users, if you are using Hammerspoon for your windows management, be sure to check out the intuitive miro-window-manager module. This is available as a «spoon» meaning, the code is pre-written for you so you can easily install and use. Just a little configuration is needed in your lua.init. Once installed, you just repeatedly press ctrl-opt-cmd plus arrow key combinations to move your windows around. Really intuitive! 🥄🖼
RC Logr 20190224 214108 - macOS users, if you are using …