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)