I went to send a private message on Twitter for the first time in probably 6+ years, and was made to do some human verification thing through a third party service.
Continue reading post "#4268"WWW posts
Web development, my site, server, career, programming, the world wide web, and related topics
Vim terminal mode config
Vim has a couple ways to run terminal commands from the editor. From ex command mode, :!
will allow running a single command before breaking back to Vim, while :term
will open a new terminal window within Vim, by default in a split, to run as many commands as you want. There are several settings in my vimrc
that I add to make working with these terminal modes easier and nicer. I will share some of them below.
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.
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"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.
Homebrew `composer` 2.6.x failing
For some reason, the Homebrew version of composer
hasn’t been working recently, either 2.6.1 or 2.6.2. So I’ve manually grabbed the phar from getcomposer.org and replaced the file it was getting. I’m running the latest MacOS and up to date Homebrew, PHP, and Composer on an Intel Macbook Air. When I would run composer
, I would get an exception
I had a weird work incident yesterday. It involved a car crash (not me), internet outage, and me going home early from work.
Continue reading post "#4124":wq Bram Moolenaar
Sad to hear of Bram Moolenaar’s recent death. RIP. He was the creator and main developer of vim, the common and influential *NIX text editor. I encountered the editor in the early aughts from a CS professor who used it and was very quick with it. I’ve used it over the years on Linux servers, where it is one of the few command line editors always installed. It has a learning curve, but I’ve gotten comfortable with it over the years. With the death of the Atom editor, I’ve been moving toward vim as my primary editor.
Bram continued to steer the development of the editor up to its death, so it will be interesting to see where it goes without him. Some complained he kept the editor from modern features, resulting in a fork called neovim. We’ll see if vim modernizes more without Bram, if the project slows or dies without him, if neovim takes over, or if perhaps some efforts to re-merge the projects are made.
Also annoying with T-Mobile, their “post-paid” account site seems to be pretty broken in Firefox.
Continue reading post "#4102"