How to Refresh the Browser from a Bash Script
xvkbd -window chromium-browser -text “\Cr” Thanks: https://stackoverflow.com/questions/12026953/automatic-web-page-refresh-using-xdotool-not-sending-key-after-window-focus
xvkbd -window chromium-browser -text “\Cr” Thanks: https://stackoverflow.com/questions/12026953/automatic-web-page-refresh-using-xdotool-not-sending-key-after-window-focus
Simple Usage: So, for example: Here’s the set-opacity.sh script: Modified from a script found in here: https://github.com/smurphos/nemo_actions_and_cinnamon_scripts
Here’s how to monitor disk space on your server and use the Mailgun API to send an email alert:
This is a simple timer script, implementing the pomodoro technique for time management. There are tons out there already but I didn’t like how they auto- started breaks. And most lacked shortcut abilities, so that was a dealbreaker. The script … Continued
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
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