10pm.ca – Tidbits for the wandering Googler

linux

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

Export/Import Keyboard Shortcuts on Linux Mint 17 and Mint 18 (Cinnamon)

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

By PJ on February 10, 2015


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

Record or Rip a CBC Radio 2 Program Stream Daily on Linux (and probably Windows)

Cats: command line, linux

By PJ on October 18, 2014


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

Useful Easystroke Commands

Cats: linux, linux mint

By PJ on August 5, 2014


Here are some useful easystroke commands (especially for when the built-in ones don’t work). This is really for my own reference.

Linux Mint 16 (Saucy): Downgrade PHP 5.5 to 5.4.9 (and Apache too)

Cats: apache, linux, linux mint, php, web development

By PJ on December 5, 2013


After much searching, the solution was found by user marcinello at Super User. Why would someone want to downgrade PHP 5.5 to 5.4.9? Primarily it’s because PHP 5.5 is the first to deprecate the MySQL extension (suggesting either MySQLi or … Continued

Getting lynx to work on shared hosting after the error Lynx file “/etc/lynx.lss” is not available.

Cats: command line, linux, web development

By PJ on September 24, 2013


Getting the error message: Lynx file “/etc/lynx.lss” is not available.

Enable Image Placeholders in Firefox for Linux

Cats: firefox, linux, web development

By PJ on August 1, 2013


I think it’s a nice feature when browsing, but when developing websites, it’s kind of nice to know when an image isn’t loading properly. Internet Explorer has that big ugly image placeholder box and frankly I miss it sometimes. The … Continued

Bash Script: Pull the Username from the Path, or Determining Whose Home Directory We’re In

Cats: bash, command line, linux, web development

By PJ on August 1, 2013


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

Bash Script to Centre The Active Window for Ubuntu/Linux Mint

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

By PJ on June 17, 2013


I recently discovered that Linux Mint lets you use the Super/Win key plus left, right, up, down to control the current window size (window left, window right, maximize, unmaximize, respectively!), which is awesome. But I also like my windows centred … Continued

  • ← Older posts
  • Newer posts →

Recent Posts

  • Google Sheets – Getting the value from the last row
  • Ubuntu/Linux Mint and DYMO LabelWriter 4XL Drivers
  • Keyboard Shortcuts to Startpage via Greasemonkey
  • How to Refresh the Browser from a Bash Script
  • Hold the cloves…

Archives

  • 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

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