Skip to content

Instantly share code, notes, and snippets.

View wmassingham's full-sized avatar

Webster Massingham wmassingham

View GitHub Profile
---
- name: enable automatic updates
hosts: all
tasks:
- name: rhel updates
ansible.builtin.package:
name: dnf-automatic
state: present
become: true
when: ansible_facts['os_family'] == "RedHat"
BIND=5:rush
OPTIONS=autodig
OPTIONS=autopickup
OPTIONS=autoquiver
OPTIONS=checkpoint
OPTIONS=nocmdassist
OPTIONS=color
OPTIONS=confirm
OPTIONS=DECgraphics
OPTIONS=symset:DECgraphics
# podman version 3.3.1
version: "3"
networks:
root_traefik-net:
name: root_traefik-net
external: false
services:
var CollapsibleTree = function(elt) {
var m = [20, 120, 20, 120],
w = 1280 - m[1] - m[3],
h = 580 - m[0] - m[2],
i = 0,
root,
root2;
var tree = d3.layout.tree()
#!/bin/bash
# blinkstick.sh - sets a Datto BlinkSticks color based on the zpool status
# wmassingham@gmail.com 2018-09-16
#
# Datto has something special about their BlinkSticks. They are both inverted
# (0x00=white, 0xff=black) and in BGR order. We wrap the blinkstick
# command-line tool to make it easier to set the correct color.
set_color() {
r=$3
@wmassingham
wmassingham / connectwise.css
Created March 8, 2017 20:57
Enhancements to CSS in Connectwise v2017_2
/* Set all fonts to sans-serif */
*, textarea, div, div div { font-family: sans-serif !important; }
/* Make client-responded tickets more visible */
.boldMultilineClickable { background-color: #93bdf1; }
/* Set text fields in configs to monospace */
.mm_textArea *,
.mm_textField * {
font-family: monospace !important;
@wmassingham
wmassingham / .bashrc
Last active May 15, 2021 12:26
.bashrc
#!/bin/bash
export PATH="$HOME/bin:/usr/share/bin:/usr/share/sbin:/usr/bin:/usr/sbin:/bin:/sbin:$PATH"
[[ -f /etc/bashrc ]] && . /etc/bashrc
[[ -f /etc/bash_completion ]] && . /etc/bash_completion
colordiff() {
sed -r -e 's/^-/\x1b[31m-/' \
-e 's/^\+/\x1b[32m+/' \
@wmassingham
wmassingham / sql-templates.php
Last active August 29, 2015 14:00
SQL query templates
<?php
/*
* SQL QUERY TEMPLATES
* Note: if there is ANY user input in a query string,
* ALWAYS use a parameterized query.
*/
// Non-parameterized query, no results:
$result = mysqli_query($dbc, '') or die('Failed to execute query:' . mysqli_error($dbc));