A simple script to reduce hours of "doom scrolling" on GLP


Task Completion Strategies

[20250106] Not Yet Started

Inspiration and Motivation

[20250106] Not Yet Started

Neurodivergence and Creativity


CherishSolutions.com
Simple Solutions to Complex Problems Free of Charge
TeachLearnShare.org
What Would You Like to Learn Today?  (This Website)
OneCordThreeStrands.com
What Would You Like to Pray About Today?
PickSix.fit
What Would You Like to Automate Today?
Slide left if on iPhone or Android

Historical Journal

[20210410] Purchased domain name teachlearnshare.org
[20250106] Created default index.html homepage (this page)
[20250106] Added Task Completion Strategies and Inspiration and Motivation sections
[20250109] Added Neurodivergence and Creativity and Historical Journal sections
[20250110] Reformatted index.html page (this page
[20250110] Added first draft copy of the GLP reduce doom scrolling page

Friday, January 10, 2025 - Steve Losh

If you're anything like me, the first thing I generally do when I wake up iin the morning is reach over for my phone on the nightstand and pull up the "news" to see what all might have gone on in the world while I was sleeping.  And, for me at least, the website I like to check first is an "alternative news" website called "Godlike Productions" which can be found at https://www.godlikeproductions.com/.

The only problem is, after I've glanced over the list of forum topics posted on the first page by members as as well "Anonymous Coward"s, I typically - meaning always - would find myself refreshing the webpage over-and-over again to see if anything "new" had popped up since the last time I reloaded the page just a few minutes prior.  As I'm sure you can already tell, this adds up to minutes if not hours of endless "doom scrolling" skimming over older posts that I've already looked at or chosen to ignore in most cases.  Let's be honest, there's a lot of things that people post on online forums that is not worth the merit of "checking out" and can be "tossed out" of our minds the first time we see them.

Yet, human nature - or maybe in this case, "insanity", as in doing the same thing over and over again and expecting different results - often has us repeating stored behaviors whenever we're expecting a "reward" (dopamine rush) by the off chance we find some new "hidden nugget" of a forum post that interests us the next time we refresh the page.

My answer to the problem...


Due to my Computer Science major, and overall love of coding - again, dopamine rush, I periodically like to try scripting something out that I often find myself doing repetitively day-in and day-out.  Essentially, "script automation" often with just a few lines of basic Bash code (native to MacOS and Linux) to offload some of these items.

Please keep in mind this script is tailored for MacOS running on Macbooks or Mac desktops, but the code could be easily enough modified slightly - as in taking out the built-in MacOS "pbpaste" and "pbcopy" clipboard commands - to run on Ubuntu, RHEL or your own favorite flavor of Linux.  I'm sure it could also be modified or rewritten to work in PowerShell on Windows machines, etc.  But at least for this exercise, I'll be focusing on MacOS.

So, first, let me introduce you to "the code" and then I'll break down what it does, as well as how to get it working on your own Macbook.  Keep in mind this is a first iteration proof-of-concept/"POC" version that I'll be cleaning up later and repost here in place of what's listed below.

#!/bin/bash
# Currently cleaning up the script
echo In Progress

Copyright 2025, TeachLearnShare.org
Feel free to use, modify and share anything on this site freely!