So glad the sun came out today. It was quite nice. There were many days of all gray in a row and it was starting to be a bit much.
Continue reading post "#4235"Toby's Log page 8
SSH to directory
I have been using SSH configuration a lot to make short hostname aliases for sites I SSH into frequently, but I recently figured out how to use it to change to a certain directory by default when logging in. At work, our sites each have their own user with their own site project directory. Most of the time when I log in, I want to go to the project directory instead of the default, the home directory. I cd
ed manually each time for a long time, but decided to look up a better option, and found a config option on ServerFault.
Bed frame
As a gift from my brother, I now have a bed frame for my bed. I previously had the mattress on a wooden slat thing on the floor.
Continue reading post "Bed frame"New tires
I got new tires for my car Wednesday. General Altimax RT45’s. Those are the new version of the ones I’ve gotten several times in the past. They are a good mix of rating well on snow, rating well overall, and a relatively decent price. And just in time. They showed their worth on the snowy roads on Friday, having little trouble where my previous tires it would’ve been more nerve racking.
Continue reading post "New tires"I’m pleased I don’t have to go to the BMV this year for my birthday, as I do on most. I got a 2 year plate sticker last year, and have a couple more on my license.
Bumping version tags with git
It is common to use git tags to manage software version numbers. Such tags are often done with a “v” followed by the version, eg “v1.2.3”. I decided I wanted to make managing these a little easier, so I made a git alias to make a new tag with the next version for me.
Continue reading post "Bumping version tags with git"I was not expecting this much snow. First of the year to require shoveling.
Continue reading post "#4201"Last weekend I bought myself some new clothes / shoes. I hadn’t in quite a while and was in need.
Continue reading post "#4199"Updating to MacOS 14.2 also meant I had to update to the latest VirtualBox version, apparently.
Continue reading post "#4196"Apache PHP FPM and “Primary Script Unknown”
A while back, I wrote about dealing with the Apache / FastCGI error ‘Primary script unknown’ when trying to access non-existent PHP files. Bots often do this trying to test for vulnerabilities, and it can fill up error logs and be annoying to look through. In that post, I fixed the problem through mod_rewrite and a RewriteCond
. For PHP 2.4+, there is a more broad and likely more efficient solution using the <If>
directive. It will work for all virtual hosts on a server.