WWW posts page 4

Annoying bot and Cloudflare free rate limiting

Some German bot(s) seemed to take interest in one of Cogneato’s sites, Rockin Houston. The aging site is fairly inefficient with a lot of data, and the bot was causing high load on our DB server. I have implemented a PHP blocker for certain IPs, but I wanted something more broadly applicable. I made a rate limiting rule on Cloudflare that should block this type of behavior and prevent it from even hitting our server once the rule triggers.

Continue reading post "Annoying bot and Cloudflare free rate limiting"

Vim autocomplete setup

After hours of playing and learning some details of vimscript, I have improved the autocomplete in vim almost to where I like it. I’ve made it work more like some GUI editors, eg Sublime and Atom, where it pops open automatically as I type and I can tab to apply the selected choice or otherwise type on and ignore it, and otherwise clean up the experience. The main thing I would like to add is fuzzy matching. I’d also like it to match more in-document words and work for more unknown file-types in a generic way.

Continue reading post "Vim autocomplete setup"

WordPress dark mode for admin, quick and dirty

I have been loving that so many apps and sites have been moving to supporting dark modes. I find it easier on my eyes, especially in the evening / night. One place that I frequently visit that I’m disappointed doesn’t support dark mode yet is WordPress’s admin area.

There is a Dark Mode plugin that can add this, but it is primarily for the front-end of the site, which in my case already has a dark mode and I didn’t want to touch. Plus it’s a lot of third party code for something that should be built in and probably will be at some point. I decided it was time to look into if I could just inject a quick and dirty stylesheet to change some colors and improve the situation for now.

Continue reading post "WordPress dark mode for admin, quick and dirty"

Porkbun DNS seems to be down and has been so for the last several hours at least. I have added Fastmail nameservers to my NS list so that things work for the moment, since I get that as part of my account there. Can’t for my client though, who I had recommended Porkbun to.


April Fools

I have made my first (I believe) April fools feature for my website. On April 1st, the page will spin around 360Β° on load and every time the user clicks. It’s a quick script I threw together this evening after deciding I wanted to finally do something for the day, as a number of websites do such things. It didn’t come together as smoothly as I hoped, which made me all the more determined to get something in place before the end of the day.

Continue reading post "April Fools"

Goodbye, Google G Suite

When I registered my domain “tobymackenzie.com” in 2009, Dreamhost offered the then free Google Apps to provide email for the domain. Already having a normal Gmail account and preferring the labels system over folders, I went with it. For 12 some years, it provided my email service for that domain. It changed names and eventually became “G Suite legacy free edition” after they started charging all new accounts. But this summer they are finally killing off the free version, requiring me to pay up or leave. I chose to leave, migrating over to my existing Fastmail account being used for other domains.

Continue reading post "Goodbye, Google G Suite"