Marshall Rosenberg Quotes (@MBR_Quotes)
As time goes on I'll be gathering more quotes from various presentations by Marshall Rosenberg, along with links to content he references, and make sure this account can stay fresh for a long time. This message is too valuable for it to not be shared.
I made these to demonstrate autoposting to twitter using GitHub Actions.
The twitter quote bots were adapted the script found in this guide. I saved the secrets for the Marshall Rosenberg Quotes account as encrypted environment variables saved in this repository, which are pulled into a bash shell as part of the action, and then called into the python script. If you copy this code, you'll need to set your own.
Using the GitHub Action workflow file .github/workflows/quote.yml, this quotes.py runs every 5 hours at the 33rd minute:
- cron: '33 */5 * * *'Workflow Scheduler/Cron Syntax
quotes.py pulls a random quote from quotes.yaml and sends it as a status update to @MarshallRsnberg the Marshall Rosenberg Quotes twitter account.
I printed quotes onto images using quimg.py.
.github/workflows/quimg.yml sends an image quote status update every 9 hours at the 11th minute.
- cron: '11 */9 * * *'Aspect Ratio Calculator:
https://andrew.hedges.name/experiments/aspect_ratio/
Need Imagemagick for all this stuff:
https://imagemagick.org/index.php
http://www.fmwconcepts.com/imagemagick/aspectcrop/index.php
for f in * ;
./aspectcrop -a 1920:1080 $f cropped.$fAspectcrop only crops proportionally, if you want exact dimensions cropped, use convert.
for f in * ;
convert $f -crop 1080x1080+0+0 -gravity center insta.$fhttps://stackoverflow.com/questions/50985087/how-to-reduce-the-file-size-on-jpeg-images-in-batch-mac
mogrify -define jpeg:extent=300kb *.jpgThis app does not collect or store any user data.
Privacy Policy for MBR Quote Bot
With Love