When creating new posts for a video demonstration, I wanted to display a consistent date. While my first thought was to reset my system clock, this snippet overrides the date when the post is first created, which worked for me.
I spend a lot of time working in issue trackers (e.g. GitHub), which involves writing a lot of markdown. Sometimes, perhaps I write too much information and it would be nice to allow the person reading to optionally skip some details. Traditionally, I accomplish this with a “Summary” section but now with collapsible sections in GitHub Issues, I can write even tidier comments.
I setup a site for WordPress Core development with Local by Flywheel and documented the steps. If you’re trying to do the same, this might be helpful.
I came across a gif recently on a website that loaded fine in most browsers but failed to load in IE (Internet Explorer). Fortunately, I remembered a similar problem in the past (that I spent way too long figuring out).
On a recent project, I had to trigger a certain behavior when a native HTML5 video had completed playing (i.e. reached the end of the video, manually stopping it should not trigger the behavior).
When creating 301 redirects, I often want to check multiple URLs quickly from the command line (to avoid the manual clicking in the browser and browser caching of results). I’ve written this script to speed up my process.
Setting up your computer to allow you to SSH in using SSH keys in place of passwords is magical however there are times I want to SSH in without using the SSH keys I have setup. By setting the “PubkeyAuthentication” key to “no”, you can do this.
I’m a big fan of the Gravity Forms Form builder WordPress plugin. I came across an interesting issue on a project where I was using the default value functionality and I wanted to make some notes as a warning for others (and myself) in the future.
I see lots of people get themselves into trouble when using git cherry-pick. By removing the commit from the source branch after cherry-picking, I’ve been able to avoid many of these problems.