Home > Reflections | โฎ๏ธ โญ๏ธ

2026-01-03 | ๐Ÿ’‰ Addicted to ๐Ÿฉธ Blood for ๐Ÿ›ข๏ธ Oil ๐Ÿ“š๐Ÿ“บ๐Ÿ“ฐโŒจ๏ธ

addicted-to-blood-for-oil

๐Ÿ“š Books

๐Ÿ“บ Videos

๐Ÿ“ฐ News

โœ๐Ÿผ๐Ÿค– Blog Automation

  • ๐Ÿ“‚ I maintain several index pages for this site
  • โš™๏ธ The index on each of these pages is a dynamically computed dataview query
  • ๐Ÿ“ค When I publish updates, those files are not seen as having been changed, but they need to be published to update the indices
  • ๐Ÿ“‰ This led to a pattern where I manually publish the indices that need to be updated on some cadence, which is a bit tedious
  • ๐Ÿ“œ Now Iโ€™ve updated a script I run regularly to update a frontmatter timestamp in each of these files so that they will be marked as changed and ๐Ÿค– automatically published
  • ๐Ÿง  I had gemini-3-pro write the script, given the following prompt and it worked on the first try

๐Ÿ’ฌ Prompt

Here is an Obsidian templater script that I want to update. I want the script to set the value of an โ€œupdatedโ€ frontmatter field to the current timestamp (iso 8601) in the following files:
(List of files)
(Existing script)

โŒจ๏ธ New Code

// Update 'updated' timestamp in specific index files  
const filesToUpdate = [  
  "index.md",  
  "articles/index.md",  
  "books/index.md",  
  "bot-chats/index.md",  
  "people/index.md",  
  "products/index.md",  
  "reflections/index.md",  
  "software/index.md",  
  "topics/index.md",  
  "videos/index.md",  
];  
  
// ISO 8601 Timestamp (Local Time with Offset)  
// Use .toISOString() instead if you prefer UTC (Zulu) time.  
const timestamp = moment().format();  
  
for (const path of filesToUpdate) {  
  const targetFile = tp.app.vault.getAbstractFileByPath(path);  
  
  // Check if file exists and is actually a file (not a folder/null)  
  if (targetFile instanceof tp.obsidian.TFile) {  
    await tp.app.fileManager.processFrontMatter(targetFile, (frontmatter) => {  
      frontmatter["updated"] = timestamp;  
    });  
  }  
}  

๐Ÿค–๐Ÿฒ AI Fiction

๐ŸŒ‘ The mud didnโ€™t just coat the ๐Ÿ‘ž boots; it drank. It was a thick, ๐ŸŒ‘ black slurry, smelling of โ›“๏ธ iron and the ancient, oily ๐Ÿ•ณ๏ธ rot of the deep earth.

โš™๏ธ He felt the shift inside; the โ„๏ธ old, cold machine in his chest clicking into place. It was a ๐ŸŒ“ transition of the soul, a brutal changing of the guard where the man ended and the โš”๏ธ weapon began. He drove his ๐Ÿ—ก๏ธ spear through a ๐Ÿช– soldierโ€™s throat, a wet, mechanical thud that added another ๐Ÿ–‹๏ธ mark to a tally no one would ever read. One more ๐Ÿ‘ป soul spent; one more line of ๐Ÿ“œ history scraped clean and written over in ๐Ÿฉธ red.

โ›ฐ๏ธ On the ridge, the men in ๐Ÿ‘” silk stood behind ๐Ÿ”ญ glass lenses, watching the โš”๏ธ slaughter with the fevered eyes of a man whoโ€™s gone too long without a fix. They didnโ€™t see ๐Ÿฉธ blood; they saw a ๐Ÿ“– clearing of the books. They craved the ๐Ÿ›ข๏ธ black bile beneath the soil - the grease that would turn their new world - and they would ๐Ÿ”ฅ burn every village from here to the sea just to move a line on a ๐Ÿ—บ๏ธ map.

๐Ÿ—ฃ๏ธ To them, the screaming was just the โš™๏ธ friction of ๐Ÿ“ˆ progress.

๐Ÿช“ He swung a heavy cleaver, his vision narrowing to a ๐Ÿ”ด scarlet pulse. There was no room for the intelligence of ๐Ÿ•Š๏ธ mercy here. Only the rhythmic, grinding work of the strike, the heavy price of a ๐Ÿ‘‘ crown toppled into the ๐ŸŒซ๏ธ dirt, and the crushing weight of a ๐Ÿ“œ script that had been written long before he was born. He was just the ๐Ÿ–‹๏ธ ink, and the ๐Ÿ“„ page was thirsty.

๐Ÿฆ Tweet