Skip to content

Instantly share code, notes, and snippets.

View DudeThatsErin's full-sized avatar
👽
Aliens are the future.

Erin Skidds DudeThatsErin

👽
Aliens are the future.
View GitHub Profile
@DudeThatsErin
DudeThatsErin / RunBlogUpdate.ps1
Last active February 14, 2025 15:54
Everything you need to create your own blog with Hugo!
# Put this file on your desktop so you can run the updateblog.ps1 file from your desktop.
# Set the blog directory path
$blogPath = "YOURHUGOINSTALLLOCATION"
# Change to the blog directory
Set-Location -Path $blogPath
# Run the update script
& "$blogPath\updateblog.ps1"
@DudeThatsErin
DudeThatsErin / BannerOnCreation.js
Last active May 7, 2025 13:15
Choose a random banner upon file creation
const fs = require('fs').promises;
const path = require('path');
async function getRandomImageFromFolder(folderPath) {
try {
const files = await fs.readdir(folderPath);
const imageFiles = files.filter(file => {
const ext = path.extname(file).toLowerCase();
return ext === '.jpg' || ext === '.jpeg' || ext === '.png' || ext === '.gif';
});
@DudeThatsErin
DudeThatsErin / README.md
Last active August 7, 2024 02:16
Erin's Copy of HiroMike's Timeline for Obsidian Daily Note

If you found this, you are probably wanting to add a timeline to your daily note that looks similar to the image below. Screenshot 2024-08-06 at 8 55 44 PM

The one above, is the version that is included in my daily note. For some reason it doesn't render well when created on mobile. So, as long as you create your files on desktop first, it will render perfectly.

All credit goes to HiroMike for originally creating this. I just changed the dates and I'm using an older version because I prefer the way it looks and functions. https://gist.github.com/ms3056/ebb6a7e175dcfd47f414a70addbd18c7