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:
If you’re using macOS 14.7.3 and experiencing an annoying issue where clicking a running app’s icon in the Dock doesn’t immediately make it active for typing, you’re not alone. Instead of the expected behavior—where the app comes to the forefront, ready for interaction—you might find yourself having to click inside the app’s window before you […]
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:
Edit your WordPress/wp-config.php file and locate the line that says: /* That’s all, stop editing! Happy blogging. */ Add the following three lines ABOVE that line, then save and exit:
1
2
3
define('FS_METHOD','direct');
define('FS_CHMOD_DIR',0775);
define('FS_CHMOD_FILE',0664);
Be sure to refresh your browser to get the new settings! BONUS To force the use of FTP, change FS_METHOD from direct to ftpext: […]
shell> vimdiff file1 file2 ~OR~ shell> vim file1 file2 Create a vertical split window: Control-w v Enable visual diff on the left side: :diffthis Move the cursor to the right side buffer: Control-w Right-arrow Enable visual diff on the left side: :diffthis You should now see the differences highlighted on both sides.