Things, life and stuff, mostly code.

planetOzh

A per-repo, untracked `.gitignore-local`

You have files that you want to ignore, but that have no business being in the project's .gitignore: a a local test script, some draft assets. Adding them to .gitignore would mean committing your personal clutter for everyone. Leaving them alone means git status keeps nagging about untracked files. Git has a built-in answer for this, .git/info/exclude, but it's tucked…

Allowing weird characters in YOURLS short URLs

One of the most recurring support requests we get for YOURLS goes like this: "How do I get a – (or a /, or a :) into my keywords?" People want pretty customshort URLs like sho.rt/my-talk or sho.rt/v2:final, and by default YOURLS won't let them. The short answer is "use the get_shorturl_charset filter." The long answer is that, depending on…

Open PHP files in the right editor, automatically.

This is one of those cases when, viewing a file in your window manager, you see a .php file you want to quickly inspect. You double click on it, and… It quickly opens Geany, or your default quick file editor, but PHPStorm is already running right there… Or the opposite: you just want a quick peak for a single little…

YOURLS now speaks PostgreSQL

YOURLS is my cherished project: I'm proud of it, and I'm also clear-eyed about its limitations. For instance, PostgreSQL support has been one of the frequently requested features for at least six years. There have been a few YOURLS PostgreSQL forks that tried to address this, but keeping a fork in sync is quite a task and they didn't keep…

Migrated to Linux and still under the process of recreating an enviro where I'm as productive as I was on Windows. Almost there with Git. Still got to find a simple yet rather complete graphic editing tool to replace a SUPER old version of Paint Shop Pro. So far my go-to solution is photopea.com

#

So, after a 10 year hiatus (ten years !!), I'm rebooting this blog. New WP theme, no new topics except less (much less) WordPress. Cya soon :)

#

Revisiting WordPress smilies in a pure CSS way

Last night I was reading something interesting then stumbled, in the comments, on a WordPress smiley. Bleeeh. There's a reason one of the first things I do when I setup a new site is uncheck "Convert emoticons like :-) and :-P to graphics on display": 90's phpBB'esque blocky gifs are *ugly*. WordPress 4.2 Roadmap Wish: update those ugly smilies that…