4

Share your SOTD for Monday!

you are viewing a single comment's thread
view the rest of the comments
[-] walden@sub.wetshaving.social 6 points 1 week ago

March 31, 2025

  • Brush: Wolf Whiskers – "Gianmaria" w/Maggard 26mm Synthetic
  • Razor: Merkur 34C HD
  • Blade: Personna 74 (57)
  • Lather: House of Mammoth - You & I (Will Die) - Soap
  • Post Shave: Old Spice - Hawkridge - Aftershave
  • Post Shave: Goodfellow & Co. - Face Lotion - Kelp & Sea Mineral

This is the first daily post made by cronjob using a little script I put together. It worked!

It was too difficult to figure out how to get it to say "31st" instead of "31", for example, but other than that it's cool. We still have that counter, plus I'm also able to mention the day of the week in the body, as well as the title. It's the little things, right?

Great shave. You & I (Will Die) is a horrible name for a soap, but it's a great scent.

[-] snooting@sub.wetshaving.social 5 points 1 week ago* (last edited 1 week ago)

Something like this would probably work (untested):

# Get the day of month as a number
day=$(date +%-d)

# Determine the correct suffix
case $day in
    1|21|31) suffix="st";;
    2|22) suffix="nd";;
    3|23) suffix="rd";;
    *) suffix="th";;
esac

# Print the date with the ordinal suffix
formatted_date=$(date +"%B %-d$suffix, %Y")

Another way scripting in bash kinda sucks: you can’t call off to nice easy to use libraries that make this sort of thing trivial :)

[-] walden@sub.wetshaving.social 5 points 1 week ago

I found maybe that exact same thing but not as refined as yours and sort of gave up on it. I had to focus on making everything else work first haha.

This sort of makes sense to me, though. I'll try to incorporate it.

[-] walden@sub.wetshaving.social 5 points 1 week ago

Update - tested and working. Thanks!

this post was submitted on 31 Mar 2025
4 points (100.0% liked)

WetShaving

766 readers
24 users here now

This is a community of enthusiasts, hobbyists and artisans who enjoy a traditional wet shave: brush, soap, and safety or straight razor. We are a part of the WetShaving community found on Reddit, Discord, and IRC.

New subscribers welcome!

Please visit our wiki, which is always and forever a work in progress.

🪒 Check out these alternative front-ends for this server:

https://gem.wetshaving.social/ - a nice modern interface

Our sister Mastodon instance is https://wetshaving.social/.

🪒 Track the uptime of our various services here:

https://uptime.selfhost.ing/status/wetshaving

🪒 Community Rules

Rule 1 - Behaviour and Etiquette
Rule 2 - Content Guidelines
Rule 3 - Reviews and Disclosure
Rule 4 - Advertising
Rule 5 - Inappropriate Content
Rule 10 - Moderator Discretion

founded 2 years ago
MODERATORS