Skip to content

Instantly share code, notes, and snippets.

View robin-a-meade's full-sized avatar

Robin A. Meade robin-a-meade

View GitHub Profile
@robin-a-meade
robin-a-meade / response.md
Last active February 5, 2019 19:17
Response to "Writing Secure Shell Scripts"
@robin-a-meade
robin-a-meade / README.md
Last active May 2, 2020 17:43
A patch to make vpn-indicator-shell-extension work for SNX
@robin-a-meade
robin-a-meade / unofficial-bash-strict-mode.md
Last active November 15, 2024 11:51
Unofficial bash strict mode

Unofficial Bash Strict Mode

Sometimes a programming language has a "strict mode" to restrict unsafe constructs. E.g., Perl has use strict, Javascript has "use strict", and Visual Basic has Option Strict. But what about bash? Well, bash doesn't have a strict mode as such, but it does have an unofficial strict mode:

set -euo pipefail

set -e

@robin-a-meade
robin-a-meade / README.md
Last active June 24, 2024 02:31
fonts.config to switch from DejaVu to Liberation

Switch to Liberation from DejaVu for better font-handling in Firefox

Test page: https://en.wikipedia.org/wiki/User:Kaldari/Font_test

Firefox defaults to the system defaults, so it's best to make the change at the system level than in Firefox preferences.

First, check current defaults

for family in serif sans-serif monospace Arial Helvetica Verdana "Times New Roman" "Courier New"; do
@robin-a-meade
robin-a-meade / 'Using maven as a downloader.md
Last active February 23, 2022 19:51
Using maven as a downloader

Using maven as a downloader

I needed to download Oracle JDBC jar files for use with my database query tool. Oracle JDBC drivers have been available in the public official Maven repository since September 15, 2019. They extended it to include all supported releases in February, 2020. (link1 [link2] [link3] [link4]).

@robin-a-meade
robin-a-meade / !Test_case_for_pasting_into_GDoc.md
Last active March 11, 2023 21:36
Test case for pasting into GDoc

GDoc bug?

I've found that pasting into a Google Document produces an unexpected result.

Minimal test case

Copy the following minimal test case:

A link

and paste it into a GDoc.

@robin-a-meade
robin-a-meade / 'Minimal config for shell and vim.md
Last active February 24, 2023 01:18
Minimal config for shell and vim

Quick minimal config for shell and vim

For when a full dotfiles setup is overkill.

Installation Instructions

curl https://gist.githubusercontent.com/robin-a-meade/b83dd635076993c4c25b7115d0b5da32/raw/install.sh | bash
@robin-a-meade
robin-a-meade / Readme.md
Last active January 7, 2022 02:58
Bash script to lookup the creation date of a reddit post or comment

reddit_created — A bash script to lookup the creation date of a reddit post or comment

Example

[robin@laptop ~] $ reddit_created https://www.reddit.com/r/redditisfun/comments/48dk3e/see_actual_date_of_comment_instead_of_2_months/
Mon Feb 29 02:41:34 PM HST 2016
Tue Mar  1 12:41:34 AM GMT 2016
@robin-a-meade
robin-a-meade / Icons.md
Last active February 27, 2023 19:50
'Icons

Icons

Site Icon
Google image
Gmail image
Cal image
Drive image
Meet image