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…

My favorite Git alias

My favorite git alias: gcm to git checkout main|master, fetch, and pull < View plain text > bash # checkout to default branch gcm() {     git fetch && git checkout $(git remote show origin | sed -n '/HEAD branch/s/.*: //p') } (Put this in your .bashrc or something)

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 :)

#