Add this little bit of code to your script:
Modify your server IP and player ID as needed: It’s run in my Crontab to restart the player because of wierd audio buffering issues.
Quick one-liner to read in Redshift’s current transition period value and assign it to a variable. (Redshift adjusts the color temperature of your screen when it gets dark.) Or assign to a variable:
When working on a Laravel project, I needed a quick way to seed in some random (but still coherent) sentences. The ultimate for PHP/Laravel projects is fzaninotto’s Faker, which can generate everything, from addresses to credit cards. If you’re in … Continued
I’ve been looking for this one FOREVER. Love how easy it is to migrate home dirs and config files to a new Mint installation, but one of the things that I could never get right was moving the custom keyboard … Continued
Wanted to listen to past episodes of Laurie Brown’s CBC The Signal, but unfortunately they don’t have (many) past episodes available for download or stream. Here’s how I got around it.. September 2016 Update at bottom. Found a listing of … Continued
Here’s a bit of code running on my Raspberry Pi that detects if the current Squeezelite player is playing or is paused. Replace 192.168.1.10:9000 with the IP address of the server and replace 62:74:01:10:10:40 with your player ID. Note, you … Continued
Getting the error message: Lynx file “/etc/lynx.lss” is not available.
Repairing a MySQL table that was over 4Gb in size would have taken days without this command:
I needed a bash script to quickly update the ownership of a bunch of files, based on what directoy I’m currently in. The username is pulled from the present working directory (pwd): /home/SOMEUSER/the/rest/of/the/path