Bookmark

Safely Creating And Using Temporary Files

This is a great resource to highlight the difficulty of creating temporary files safely - something I've tried to share before but without these great examples.

Its especially bad if using a shared CI/CD server and putting downloaded files into /tmp as you don't know whether it'll be clobbered / stolen by others on the instance

Recommended read: Safely Creating And Using Temporary Files https://www.netmeister.org/blog/mktemp.html

 Reply

Reply to https://www.robinrendle.com/notes/improving-my-workflow

Although it doesn't help you, Hugo has Archetypes https://gohugo.io/content-management/archetypes/ to set up these repetitive and boring bits of metadata for new content types - it makes a huge difference in getting up and running with your boilerplate šŸ™ƒ

 Reply

Reply to https://ma.ttias.be/sysadmin-guide-move-content-new-website/

When doing similar with some changes on my own site, I utilised my RSS feed and sitemap, as they had a full list of my sites content, and then did some checks to validate that the url resolved with my locally built site. Hugely helpful, although the script I wrote was thrown away unfortunately