Skip to content

Instantly share code, notes, and snippets.

View gene1wood's full-sized avatar

Gene Wood gene1wood

View GitHub Profile
gene1wood / mount-netbird-nfs.bash
Last active July 20, 2023 21:35
Make Netbird umount all of the NFS mounts which point to other devices on the Netbird mesh network when the Netbird service stops
View mount-netbird-nfs.bash
if [ -z "$1" -o "$1" = "mount" ]; then
elif [ "$1" = "umount" ]; then
echo "missing action"
exit 1
gene1wood / Livermore Valley Craft Beer Festival - Brewery
Last active May 9, 2023 23:31
Livermore Valley Craft Beer Festival - Brewery Instructions
View Livermore Valley Craft Beer Festival - Brewery

Livermore Valley Craft Beer Festival - Brewery Instructions

gene1wood /
Last active April 24, 2023 16:25
Description of a proble updating the firmware of a Dell PowerEdge VRTX Storage Component (PERC8) and solution.

I went to update the Storage Comonent on my Dell PowerEdge VRTX from I uploaded the Dell Shared PERC8 firmware for Dell PowerEdge VRTX-Fault Tolerant version (filename VRTX_SAS-RAID_Firmware_THVJ9_WN64_23.14.06.0013_A08.EXE ). The upload completed successfully. I applied the update. The UI showed that the update was "in-progress" for the next 8 hours. After 8 hours I gave up and powered off the Chassis from the CMC.

I powered the Chassis back on and the storage firmware showed as still being

I uploaded the same file again and again initaited an update and this time it worked in farily short order.

gene1wood / first_and_third_thursday.ics
Created January 30, 2023 19:16
iCalendar ICS file with an event on the first and third Thursday of each month
View first_and_third_thursday.ics
PRODID:-//Google Inc//Google Calendar 70.9054//EN
gene1wood /
Last active January 4, 2023 23:48
A description of a bug in the CA Secretary of State bizfileonline system preventing users from editing their accounts.

There's a bug in the California Secretary of State bizfileonline site that prevents users from editing their account.

Steps to reproduce

  1. Browse to and click Login
  2. Login with as a valid user account
  3. Click your user's name/email address in the upper right to show the Logout / My Account drop down
  4. Click My Account which brings up the modal dialog titled "My Account"
  5. Click the Edit my account button


gene1wood /
Created November 29, 2022 20:03
Tool to generate postfix virtual map file based on a set of excluded usernames in a domain
#!/usr/bin/env python3
import yaml
import json
POSTFIX_VIRTUAL_FILENAME = '/etc/postfix/virtual'
def get_blocked_domain_string(blocked_domains):
gene1wood / mozilla-confluence-cloud-inline-code-style-like-github.user.js
Last active November 17, 2022 02:06
A userscript to change the appearance of inline code in Mozilla's Confluence Cloud wiki so that it looks like GitHub inline code
View mozilla-confluence-cloud-inline-code-style-like-github.user.js
// ==UserScript==
// @name Confluence Cloud Inline Code Styling like GitHub
// @namespace
// @include*
// @grant GM_addStyle
// @version 1.0
// @author Gene Wood
// @description Cause inline code in Confluence Cloud to be styled like inline code in GitHub
// ==/UserScript==
gene1wood / robocopy-example.cmd
Created August 18, 2022 00:51
Example of how to run Robocopy to sync files
View robocopy-example.cmd
REM /E : recursive including empty directories
REM /R:1 : retry once on failure
REM /W:1 : wait 1 second between tries
REM /LOG+ : append to a log file
REM /TEE : output to the log file and the screen
robocopy C:\source C:\destination /E /R:1 /W:1 /LOG+:C:\robocopy-2022-01-01.txt /TEE
gene1wood / chef-stacktrace.out
Created June 27, 2022 05:55
Chef stacktrace showing bug in Chef snap_package resource
View chef-stacktrace.out
Generated at 2022-06-26 22:26:03 -0700
ArgumentError: snap_package[plex-htpc] (wendy::packages line 321) had an error: ArgumentError: wrong number of arguments (given 1, expected 2)
/opt/chef/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.3/lib/chef/provider/package/snap.rb:266:in `install_snaps'
/opt/chef/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.3/lib/chef/provider/package/snap.rb:69:in `install_package'
/opt/chef/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.3/lib/chef/provider/package.rb:120:in `block (3 levels) in <class:Package>'
/opt/chef/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.3/lib/chef/provider/package.rb:267:in `multipackage_api_adapter'
/opt/chef/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.3/lib/chef/provider/package.rb:119:in `block (2 levels) in <class:Package>'
/opt/chef/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.3/lib/chef/mixin/why_run.rb:51:in `add_action'
/opt/chef/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.3/lib/chef/provider.rb:293:in `converge_by'