10pm.ca – Tidbits for the wandering Googler

bash

How to Refresh the Browser from a Bash Script

Cats: bash, command line

By PJ on February 29, 2020


xvkbd -window chromium-browser -text “\Cr” Thanks: https://stackoverflow.com/questions/12026953/automatic-web-page-refresh-using-xdotool-not-sending-key-after-window-focus

Script to Set Window Opacity in Linux Mint/Cinnamon

Cats: bash, command line, linux mint

By PJ on October 28, 2019


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

Email a Low Disk Space Alert With Mailgun API

Cats: bash, command line, web development

By PJ on March 5, 2019


Here’s how to monitor disk space on your server and use the Mailgun API to send an email alert:

Simple Pomodoro Timer Bash Script

Cats: bash, command line, keyboard shortcuts, linux, linux mint, pomodoro

By PJ on September 7, 2018


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

Appending to the Bash Title in a Gnome Terminal Window in Linux Mint 18

Cats: bash, command line, keyboard shortcuts, linux, linux mint

By PJ on November 3, 2016


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

Getting notify-send to Work in Cron-Jobs and Over SSH on Linux Mint 17/18 Cinnamon

Cats: bash, command line, linux, linux mint, Uncategorized

By PJ on November 1, 2016


Add this little bit of code to your script:

Bash Script to Restart SqueezeLite If Not Playing Audio

Cats: bash, command line, squeezebox

By PJ on January 21, 2016


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.

Reading Redshift’s Current Transition Period Value for Bash Scripts or Conky or Whatever

Cats: bash, command line, linux

By PJ on February 24, 2015


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:

Quick Way to Get Random Sentences for Seed-Data on Linux

Cats: bash, command line, laravel, linux

By PJ on February 19, 2015


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

Simple Bash Script to Detect if Squeezeplayer is Playing or Paused

Cats: bash, command line, raspberry pi, squeezebox

By PJ on February 22, 2014


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

  • ← Older posts

Recent Posts

  • Flash Custom Firmware onto Iris
  • GIMP – Save for Web Plugin
  • PHP GD Auto Crop Image – Four Sides w/ Threshold
  • Satellite Crown Land
  • Greasemonkey Discogs Helper Script

Archives

  • May 2022
  • April 2022
  • February 2022
  • August 2021
  • June 2021
  • March 2021
  • October 2020
  • April 2020
  • February 2020
  • January 2020
  • November 2019
  • October 2019
  • September 2019
  • April 2019
  • March 2019
  • September 2018
  • August 2018
  • June 2018
  • May 2018
  • March 2018
  • January 2018
  • December 2017
  • March 2017
  • February 2017
  • January 2017
  • November 2016
  • September 2016
  • August 2016
  • January 2016
  • July 2015
  • March 2015
  • February 2015
  • October 2014
  • August 2014
  • February 2014
  • December 2013
  • October 2013
  • September 2013
  • August 2013
  • July 2013
  • June 2013
  • May 2013
  • April 2013
  • March 2013
  • February 2013
  • January 2013
  • December 2012

Categories

© 2023 10pm.ca – Tidbits for the wandering Googler