A while back I heard someone talk about COVID statistics and how Seniors were the majority of COVID deaths. I tried to find a place to look up this information, but it was really hard to find. Most data dashboards out there usually would list cases with “rolling averages” or “7-day averages” and all sorts…
Category: Scripts
Python: Show your friends playing games on Steam
This requires the following: A Steam account (set to “public”) A Steam API Key Your SteamID64 ID Friends (public, online, and playing a game) Simply replace “YOUR_STEAM_API_KEY” with your Steam API key and “YOUR_STEAM_UID64” with your SteamID64 ID. Copy the script below and save it as “steam_snake.py”, then run the file: $python3 steam_snake.py It should…
Wi-Fi persistence
I’ve noticed that sometimes I come home and my iMac has lost its connection to my Wi-Fi network. I’ve had enough, so I wrote a script (which I wrapped with a LaunchDaemon to keep it running), to check and make sure the Wi-Fi card is on and joined to my preferred network. Caution: Use this…
Give your Mac users temporary admin
Lately I saw a post on JAMF’s user forums with someone wanting to give temporary admin access to their users for a set amount of time. This reminded me that I had such a script and that I should share it with the world. So here you go! The script basically takes an argument with…
How I downloaded a video from Twitter using Curl
Update 1: It appears that Twitter has changed their scheme in how they display videos. They are now using a JavaScript method that obfuscates the video URL via a blob mechanic. The URL is only able to be decoded by the user’s web browsing device and cannot be “CURL’d” by a command line. For reasons…
Download Media: An OS X/macOS bash script to download files from a few popular websites
I made this script so I could download the MP4 versions of Imgur GIFs and Gfycat MP4s because I like to make a lot of funny images for some online communities. I expanded to incorporate the YouTube-DL binary, ffmpeg, NHL videos, and Instagram videos and jpegs. Feel free to copy and write to this file in /usr/local/bin, or…