Twitter (aka “X” aka “Xitter”) individual tweet (aka “xeet”) page re-title-er (userscript workaround for Twitter broken-ness)

Categories
Contrivances HerpDerp JavaScript
To those amongst you who are active on Twitter (now known as X and colloquially to some as Xitter), even if you’re simply browsing and not actively posting/tweeting/xeeting, and who use browser bookmarks: today’s post ought to be right up your alley! First, some background. Note: I don’t use smartphone social media apps, so we’re […]

Adding duration info to video filenames using Mediainfo and Powershell

Categories
Contrivances Mucking About With Things Powershell The Diary of Lupin Pooter
Animated GIF showing Windows Explorer and a terminal window and the command being used and a video filename being updated with its duration. First, here’s a one-liner you can employ on Windows to add duration information to video filenames. It uses Powershell and assumes you’ve installed the command line version of MediaInfo for Windows. The […]

Improving my Powershell prompt with Reddit copypasta

Categories
Contrivances HerpDerp Mucking About With Things Powershell The Diary of Lupin Pooter
Date (as YYYYMMDD), time, and the preceding command’s run time. This is an animated GIF so that you can see how the time in the prompt updates when a command is run. Often, when I’ve been noodling around, or installing or updating software, or trying this or that at the command line, I select all […]

De-annoyancing the YouTube subscriptions page (UPDATE: added visual video duration indicators)

Categories
Contrivances JavaScript Mucking About With Things
I wrote a userscript to get rid of YouTube’s notifications tally and irritating fly-out on-hover overlays and gray-out upcoming vids and shorts: YouTube-Subscriptions-Better-er.user.js […].

Don’t you wanna watch me spill? Alerting when a container is nearly full of liquid.

Categories
Arduino C++ Contrivances The Diary of Lupin Pooter
There may come a time when you need to know if a container being filled with liquid that flows at a slow, variable rate is nearly full so that you can empty the contents or do something else with the stuff inside. Such a need recently arose here and I put something together using an Arduino (Cloneduino) Nano, a couple of non-contact capacitive water level sensors, a WS2812 LED breakout board, and a piezo buzzer.

Nightingale/Songbird: Moving your media without losing your metadata |OR| A Python script for updating content_url values in main@library.songbirdnest.com.db

Categories
Mucking About With Things Progging Python
If there’s a one-step means of notifying Nightingale or Songbird that all of your media files have moved to a different location via the music players’ UIs, I didn’t see it, so I solved my problem with a short (~150-line) Python script [Python 3.6 (Windows, 64-bit)] that, with input via a few prompts, connects to […]

Fixing ModuleNotFoundError: No module named '_sqlite3'

Categories
mod_wsgi Python Sysadminning
Today, I set up Flaskr (GitHub repository), one of the Flask demo apps, so that I could poke around Flask a bit. The only real speed bump was a ModuleNotFoundError for _sqlite3: Note that, to make the above lines from my flaskr error log more readable, I’ve removed the timestamps, process IDs, and requesting IP […]

Changing your default Python install: one tiny wrinkle that shouldn’t have tripped me up

Categories
HerpDerp Mucking About With Things Python Sysadminning
So you’ve installed a later and greater version of Python (Python 3.6.1 in my case) in /usr/local/bin and would like it to be used instead of your server’s default (and presumably older) python version when you type python at the shell prompt after logging in? The solution is widely documented. Add the following to the […]

How I got Python 3.6.1 and WSGI working on CentOS 7.3

Categories
HerpDerp mod_wsgi Mucking About With Things Python
I set out to get WSGI going, with Python 3.x, on my CentOS 7.3 VPS. Initially, I began by trying to follow the path laid out in a 2011 blog post (Building mod_wsgi with EasyApache for WHM/cPanel) but with current equivalents of Python and mod_wsgi. That’s a very lucidly written article and it’s apparent from […]