FYI, if you try to circumvent paying for support for a client’s product I work on by bombarding my personal email address, my contact page, or any other means that are not a proper support channel, I’m still not going to reply to your vague mess of a support request! πŸ‘Ώ

TIL: enabling boot.cleanTmpDir on NixOS can solve the most head-scratchy of head-scratchy things!

Yay, after a couple of days painting the landing I’m finally at podcast zero! πŸŽ‰ (there may have been a good bit of podcast culling and skipping too)

I just wrote about How I Use tmux For Local Development across on the Delicious Brains blog.

If you use the command line at all, you should check it out!

Me: Ooh, I have a great idea and it’ll have a sweet domain too!

… goes to register domain …

Me: Dammit, domain’s already taken, and not being used!

… later updating some DNS settings and spots … that sweet domain that I’ve had for years! …

Me: πŸ€¦β€β™‚οΈ

I love how the @phpstorm splash screen artwork changes for each major release. It’s always very striking.

TIL: The “rc” in things like .bashrc comes from “runcom”, which is a syllabic abbreviation of “run commands”.

Not something like “runtime configuration” like I’ve always thought.

I very much like the look of the Plasma desktop with the full Breeze Dark look and feel.

Snippet Pixie is now available as a snap. πŸŽ‰

sudo snap install snippetpixie --classic

I even tested it with Libre Office Writer and gedit on KDE Neon, but remember folks, Snippet Pixie is a GTK app, so your mileage will vary greatly.

Roof top terrace for the win!

Delicious Brains spent 4 hours walking Berlin on an alternate culture tour today, great way to see and learn about about a side Berlin often missed by tourists.

WP Offload Media 2.2 is out, with background offload, download, and download and remove tools, plus huge performance improvements in the admin area. πŸŽ‰

Just created 2k subsites on a @SpinupWP managed site, and thoroughly tested the queue feature of @wpoffloadses!

Now to create 300k+ posts/media for @wpoffloadmedia testing!

While mowing the lawn this afternoon I rescued this little fella that flew straight into a cobweb.

Notes on getting autostart working for a classic confined snap

Last night I finally managed to get a working build of the Snippet Pixie snap that pretty much works as hoped, but there were a couple of things I had to change in order to get autostart working that I thought it might help others to mention here.

There’s a couple of wrinkles due to naming.

The snap is called snippetpixie and uses that in the snapcraft.yaml apps: entry, but the binary and canonical name for the app (as used in meson build etc.) is com.github.bytepixie.snippetpixie, and that’s the app’s “ID” too. It’s a GTK app built with Vala, initially for elementary OS.

This means the .desktop file is usually called com.github.bytepixie.snippetpixie.desktop. So in the app it uses this as the desktop file name when trying to copy and fix it up to create an autostart version, but the DesktopAppInfo class failed to find the file by that name.

Turns out snapd/snapcraft takes that com.github.bytepixie.snippetpixie.desktop file and renames it to snippetpixie_snippetpixie.desktop at some point (I think install time by snapd), making some changes to the Exec line along the way.

This means the DesktopAppInfo class doesn’t recognize com.github.bytepixie.snippetpixie.desktop as valid.

In the end I had to add specific code for running as a snap to change the desktop file name to look for, and also be careful about the way the Exec line is changed for the new autostart version to carefully insert the required --start param in the altered command line instead of blindly changing it to com.github.bytepixie.snippetpixie --start.

You can see some of the altered (not very clever, but it works) code in snippetpixie’s update_autostart function.

Hope this helps someone else having troubles getting autostart to work for a snap.

One More Thing…

I guess I’m also offically announcing that there’s candidate availability of a snap for Snippet Pixie!

It can be installed from the candidate channel with…

sudo snap install snippetpixie --classic --candidate

Any feeback on the snap is warmly welcomed via either the Snapcraft forum’s “Call for testing” post, or Snippet Pixie’s GitHub Issues.

Get It!!!

Get it on AppCenter Get it from the Snap Store

Snippet Pixie 1.2 released with support for placeholders πŸŽ‰οΈ

I’m very proud to announce that Snippet Pixie now includes support for placeholders! πŸŽ‰οΈ

This release took an immense amount of work, with lots of thought taken in the design of the placeholders feature, hopefully you find these new super powers useful!

  • Date/Time: Insert the current or calculated date/time with configurable format.
  • Clipboard: Insert the text contents of the clipboard.
  • Snippets: Insert snippets in your snippets!
  • Cursor: Set where the cursor should end up after the snippet has expanded.

Read on for a summary of the placeholders feature and how to use the different types of placeholder.


All placeholders are delimited (wrapped) by $$, with the placeholder name starting with an @ symbol.

For example, today’s date can be inserted with $$@date$$.

Some placeholders allow for extra arguments when : follows their name and that is followed by the argument. For example a format for a date, or the abbreviation for a snippet. Check the following descriptions for each placeholder for more details.

To use $$ in your snippet body, escape the second $ with a backslash like so: $\$.


Quick Examples:

  • Today’s date with system format: $$@date$$
  • Today’s date with custom format: $$@date:%Y-%m-%d %H:%M:%S$$
  • Tomorrow’s date with system format: $$@date@+1D$$
  • Date 2 weeks from today with custom format: $$@date@+2W:%x$$
  • Time 3 hours from now: $$@time@+3H$$

@time is an alias for @date, with one important difference, the default output if no format specified is the default time format (%X) rather than default date format (%x).

The optional format specified after : can take a format string as detailed in the GLib.DateTime.format function’s docs.

The optional date calculation starts with an @ after the placeholder name, followed by a signed integer and unit. The unit types are as follows:

  • Y: Years
  • M: Months
  • W: Weeks
  • D: Days
  • h: Hours
  • m: Minutes
  • s: Seconds

You can apply more than one date calculation, for example +2h+30m adds 2 hours and 30 minutes to the current time.

You can use both positive (+) and negative calculations, for example -3D takes 3 days from the current date.


When $$@clipboard$$ is part of a snippet’s body, when its abbreviation is expanded the current text contents of the clipboard will replace the placeholder.


You can have up to three levels of embedded snippets with the @snippet placeholder.

The abbreviation for the snippet to be embedded is entered after :, for example $$@snippet:sigg;$$ expands the snippet with abbreviation sigg; in place of the placeholder.


Adding $$@cursor$$ to a snippet’s body will put the cursor in its place after expansion instead of at the end of the expanded text.

If $$@cursor$$ is entered more than once in a snippet’s body or via snippet embedding, then the last occurrence of the cursor placeholder wins.

Get It!!!

Get it on AppCenter

We often get asked whether WP Offload Media can work with this, that, or the other S3 API compatible storage provider, so I wrote about how I got MinIO working with WP Offload Media:…

This is what the snapcraft store’s usage map looks like for an app when you’re the only person that knows there’s a beta snap available. 😜

Snippet Pixie 1.1.1 released! πŸŽ‰

  • Improved performance, compatibility, and stability.
  • Added French translations. Huge thanks to @NathanBnm on GitHub! πŸ‡¨πŸ‡΅οΈ

Big thanks to everyone that has shown their appreciation for Snippet Pixie with donations via the @elementary AppCenter, or got in contact to say thanks, it means a lot to me and is very encouraging.

TIL: sudo apt install libreoffice-gtk3 and all of a sudden LibreOffice Writer is compatible with Snippet Pixie! πŸŽ‰οΈ

Snippet Pixie 1.1 adds snippets export and import

I’m super happy to announce that Snippet Pixie 1.1 has been released. πŸŽ‰

This release includes two features that go hand in hand, snippets export and import.

Snippet Pixie is a great way to build a library of time and keystroke saving short text abbreviations that automatically expand while you type, but up until this release you could only add snippets to your second machine by either manually adding them again or finding and copying the settings database.


It’s now possible to export your snippets to a JSON format file for the purpose of backup or transfer to another machine for import. Now when you add new snippets on one machine you can quickly add them to another machine.


When using the import feature Snippet Pixie by default will not overwrite existing snippets with the same abbreviation, but you can optionally do that if you’ve made changes to the abbreviations on one installation and want to apply them to another.

For safety, the import feature also does not delete any existing snippets.


The welcome screen in Snippet Pixie now includes an Import Snippets option to get new installations up and running quickly. If you’ve already got some snippets in Snippet Pixie then you can use the “Import snippets…” option from the cog menu.

The cog menu is where you’ll find the “Export snippets…” option too, it’s enabled if you have some snippets to export.


Want to script an automatic backup or import? Snippet Pixie has your back as it also has new command line options for export and import.

-e, --export=filename
Export snippets to file

-i, --import=filename
Import snippets from file, skips snippets where abbreviation already exists

If used in conjunction with import, existing snippets with same abbreviation are updated

File Format

Some people might be wondering why I picked JSON as the file format. The primary reason is flexability and general support for the format. There are something like eleventy million utilities for handling JSON, so if you want to manipulate or generate your own file of snippets you’ll be able to do it easily.

I’ll document the format properly at some point, but it’s very simple as this vastly trimmed down export of some of my snippets shows…

  "generator" : "com.github.bytepixie.snippetpixie",
  "version" : 101,
  "data" : [
      "snippets" : [
          "abbreviation" : "joy`",
          "body" : "πŸ˜‚"
          "abbreviation" : "ksig`",
          "body" : "Kind regards,\n\nIan"
          "abbreviation" : "shrug`",
          "body" : "Β―\\_(ツ)_/Β―"
          "abbreviation" : "sp`",
          "body" : "Snippet Pixie"
          "abbreviation" : "spu`",
          "body" : "[]("

The generator and version elements are very important, Snippet Pixie will not currently import a file that doesn’t have those two elements with those same values as they signify a format that it understands.

The data array contains a list of data types with data that can be imported, currently there’s only snippets.

Each of the objects in the snippets array contains only an abbreviation and body, on export they are ordered alphabetically by the abbreviation and if there are duplicates (it’s possible) then by a hidden id which typically means by order of addition unless entries have been renamed. Due to this ordering, if overwriting duplicates on import is allowed then last duplicate in the file will “win”, but by default first entry will “win” if the abbreviation does not exist in Snippet Pixie’s library already.

As you can see from the example, it’s UTF-8 and supports emoji and new lines (those \n bits), and characters like \ are escaped etc.

Get It!

As always, you can get Snippet Pixie from the elementary AppCenter.

Hope you like it, if you have any feature requests or problems with Snippet Pixie, please stop by the GitHub repository and share your thoughts!

A couple of years ago we had a support request regarding Chinese characters in offloaded files, I’ve used the example file name ever since for testing, including acceptance tests. I’ve only just now bothered to see what the file name translates too…

Snippet Pixie 1.0 has been released!

Now autostarts on login by default, and tabbing into the body entry field selects all text, making adding new items a little bit quicker.

Thanks for the Hacktoberfest t-shirt, stickers and coaster @digitalocean, @github and @twilio!