Have a Perl script that just gives you a blank page and can’t figure out what error it’s giving? You can run it on the command line, including GET params like so: http://something.com/cgi-bin/x.pl?x=y&t=j becomes ./x.pl x=y t=j
For some reason, they took away the ability to change the title of bash within a gnome-terminal window in the new Linux Mint 18 Sarah. I needed it to identify certain windows. Add this bit to your .bashrc to get … Continued
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.