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:
Have you ever found yourself frustrated when copying and pasting commands in the Apple terminal no longer behaves as expected? If you used to work with Bash on older macOS versions, you might recall that pasting a command into the terminal automatically executed it—no extra steps required. However, with the switch to Zsh as the […]
First, enable Developer mode via the Safari menu -> Settings… -> Advanced Tab Then, disable Cross-Origin Restrictions on the Developer Tab Finally, be sure to refresh the page you are having issues with. As always, YMMV!
To disable all automatic WordPress updates, just edit your WordPress/wp-config.php file and locate the line that says: /* That’s all, stop editing! Happy blogging. */ Add the following line ABOVE that line, then save and exit: