If you’re running Apache 2.4 on Rocky Linux 9 and want to protect your web server against basic DoS, DDoS, or brute-force attacks, installing mod_evasive is a solid option. Unfortunately, the module isn’t included by default, and some manual work is required to get it running. Here’s a quick guide to getting it installed and […]
The included, MacOSX-native ssh binary does not support newer SHA2 keys, so it gets the dreaded “no hostkey alg” error. To fix that, install ssh via homebrew or macports and use that binary instead:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
shell>ssh myserver ls
no hostkey alg
shell>which ssh
/usr/bin/ssh
shell>find/opt-name ssh
/opt/local/bin/ssh
...
shell>/opt/local/bin/ssh-V
OpenSSH_9.9p2,OpenSSL3.4.111Feb2025
shell>/opt/local/bin/ssh myserver
The authenticity of host'myserver (1.2.3.4)'can't be established.
ED25519 key fingerprint is SHA256:Mmx6y1Z/example+/sbw.
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'myserver'(ED25519)tothe list of known hosts.
Activate the web console with:systemctl enable--now cockpit.socket
So you’ve finally admitted PHP 8.0 isn’t cutting it anymore. Maybe your Symfony app tripped over a new syntax. Maybe your vendor/ folder started speaking in tongues. Maybe you enjoy suffering and thought “hmm, what if I upgraded my production runtime on a Friday afternoon?” Whatever brought you here—regret, most likely—this guide walks you through […]
If you’re a Vim user and want to integrate Prettier for automatic code formatting, follow these steps to set it up on your system. Install Prettier Globally Before installing the Vim plugin, you need to have Prettier installed globally via npm:
1
2
sudo dnf install npm-y
npm install-gprettier
Install vim-prettier Plugin To use Prettier inside Vim, install the vim-prettier plugin. Clone […]
Bracketed paste is a feature in modern shells that helps prevent accidental execution of pasted commands by wrapping them in special escape sequences. However, some users find this behavior annoying, especially when pasting multi-line commands. Fortunately, it’s easy to disable bracketed paste in both BASH and ZSH. Disabling Bracketed Paste in BASH To turn off […]
If you’ve ever encountered a scenario where Safari on macOS Sonoma cannot reach a local or internal web service (while Firefox and curl work just fine), the issue may be due to Apple’s strict security features. Specifically, iCloud Private Relay and the Hide IP Address from Trackers option can interfere with certain local network connections. […]
If you have multiple ~/bin/ directories across different hosts and want to consolidate them into a single Git repository hosted on your own Git server, follow these steps. 1. Create a New Bare Git Repository on Your Git Server First, log in to your Git server and create a new repository:
With macOS Sonoma, Apple changed the way Mission Control displays virtual desktops, reducing them to small slivers that require hovering to expand. If you prefer the previous behavior—where the full desktop bar opened automatically—there’s a simple solution using a third-party tool. How to Restore the Full Desktop Bar in Mission Control Follow these steps to […]
I needed to get all files in a bucket readable by the public easily. Here is the S3 Bucket Policy I applied:
1
2
3
4
5
6
7
8
9
10
11
12
{
"Version":"2012-10-17",
"Statement":[
{
"Sid":"PublicReadGetObject",
"Effect":"Allow",
"Principal":"*",
"Action":"s3:GetObject",
"Resource":"arn:aws:s3:::BUCKET_NAME_HERE/*"
}
]
}
To do this via the aws cli command, create the file s3_read_policy.json containing the policy above, with your bucket name in place of BUCKET_NAME_HERE: