Skip to content

Instantly share code, notes, and snippets.

View McFateM's full-sized avatar

Mark McFate McFateM

View GitHub Profile
@McFateM
McFateM / server-info Script
Last active January 26, 2021 15:11
The bash script for my "server-info" command
#!/bin/bash
# Modified: Tuesday, January 26, 2021 9:10 AM
#
# This is server-into, formerly 'dynmotd'.
# This script reqiures 'figlet' and 'mdv'
#
# Park this script in /usr/local/bin and give it rwxr-xr-x (755) file protection.
# Create a symbolic link 'ln -s /usr/local/bin/server-info server' in /usr/local/bin if you like.
# Try to get the client IP address (important for debugging remotely in some cases).
@McFateM
McFateM / Digital-Grinnell-MODS-Master-Rev21.twig
Last active January 7, 2021 09:55
Canonical MODS MASTER Twig template - Rev 21
<?xml version="1.0" encoding="UTF-8"?>
{# Digital_Grinnell_MODS_Master.twig Revision 21
THE official copy of this Twig template can be found as a Gist at
https://gist.github.com/McFateM/5921942b162cfa232683754763adc4ce
This TWIG template for IMI import is intended to serve as a general-purpose
starting point for MODS import into Digital Grinnell.
@McFateM
McFateM / gist:271cbd668331f9c863a685da3d1ebe3f
Created August 31, 2020 15:20
Output from /utility-scripts/isle_drupal_build_tools && ./isle_islandora_installer.sh - August 31, 2020
╭─markmcfate@MAD25W812UJ1G9 ~/GitHub/dg-isle ‹ruby-2.3.0› ‹master›
╰─$ docker-compose up -d
Starting isle-portainer-ld ... done
Starting isle-mysql-ld ... done
Starting isle-proxy-ld ... done
Starting isle-solr-ld ... done
Starting isle-fedora-ld ... done
Starting isle-apache-ld ... done
Starting isle-images-ld ... done
╭─markmcfate@MAD25W812UJ1G9 ~/GitHub/dg-isle ‹ruby-2.3.0› ‹master›
@McFateM
McFateM / change-filenames.py
Last active July 22, 2020 18:40
Used in the Rootstalk project to sanitize filenames
import os
"""
Renames the filenames within the same directory to be Unix friendly
(0) Removes "Volume V, Issue 1, "
(1) Makes lowercase (not a Unix requirement, just looks better ;)
(2) Changes spaces, colons, apostrophes, underscores and exclaimation points to hyphens
(3) Removes commas and semi-colons
(4) Replaces doubled hyphens and doubled periods with singles
(5) Replaces ".-" with "-" and "-." with "."
@McFateM
McFateM / gist:16bbddb184e7e24ded70d12999ff1be1
Created June 10, 2020 00:34
5" Raspberry Pi Display QuickStart - Driver Installation
sudo rm -rf LCD-show
git clone https://github.com/goodtft/LDC-show.git
chmod -R 755 LCD-show
cd LCD-show
sudo ./LCD5-show
@McFateM
McFateM / server-info.md
Last active May 19, 2020 19:20
Template .md file for my "server-info" bash script and command

This is /etc/server-info.md. lifted from server Digital7.

  • Edit this file to include reminders and important information.

Created: Tuesday, March 5, 2020 1:10 PM

Significant History -------------------------------------------------

3cfe5f13cc1f2c9334c2283c909e6cfc111305597b6ddbf369e93464d935746a
Creating landing-page ... done
Creating traefik ... done
Attaching to traefik, landing-page
traefik | time="2020-05-19T11:20:32-04:00" level=info msg="Configuration loaded from file: /traefik.yml"
Dumping traefik.log...
time="2020-05-19T11:20:32-04:00" level=info msg="Traefik version 2.2.1 built on 2020-04-29T18:02:09Z"
time="2020-05-19T11:20:32-04:00" level=debug msg="Static configuration loaded {\"global\":{\"checkNewVersion\":true},\"serversTransport\":{\"maxIdleConnsPerHost\":200},\"entryPoints\":{\"http\":{\"address\":\":80\",\"transport\":{\"lifeCycle\":{\"graceTimeOut\":10000000000},\"respondingTimeouts\":{\"idleTimeout\":180000000000}},\"forwardedHeaders\":{},\"http\":{}},\"https\":{\"address\":\":443\",\"transport\":{\"lifeCycle\":{\"graceTimeOut\":10000000000},\"respondingTimeouts\":{\"idleTimeout\":180000000000}},\"forwardedHeaders\":{},\"http\":{}}},\"providers\":{\"providersThrottleDuration\":2000000000,\"docker\":{\"watch\"
@McFateM
McFateM / gist:bcc9bfcd79ba5f54d569cad4aaf30457
Created May 18, 2020 19:03
DGDocker3 Test 8 - DNS-01 Challenge with LE Production
3da51144c36469a9c714933a972f38e388476094da4959e9161b575036601b6c
Pulling traefik (traefik:2.2.1)...
2.2.1: Pulling from library/traefik
cbdbe7a5bc2a: Pull complete
f16506d32a25: Pull complete
2be216d464d0: Pull complete
aed51f08b610: Pull complete
Digest: sha256:ad4442a6f88cf35266542588f13ae9984aa058a55a518a87876e48c160d19ee0
Status: Downloaded newer image for traefik:2.2.1
Creating traefik ... done
@McFateM
McFateM / gist:b525152c822cdb3dd85d5214c06b1d8e
Last active May 18, 2020 18:55
DGDocker3 Test 7 - DNS-01 Challenge with LE Staging
b10d0e21122445a899dfe3fdbfef73a5982adcfd2ba8d8946b8dde124e098303
Pulling traefik (traefik:2.2.1)...
2.2.1: Pulling from library/traefik
cbdbe7a5bc2a: Pull complete
f16506d32a25: Pull complete
2be216d464d0: Pull complete
aed51f08b610: Pull complete
Digest: sha256:ad4442a6f88cf35266542588f13ae9984aa058a55a518a87876e48c160d19ee0
Status: Downloaded newer image for traefik:2.2.1
Creating traefik ... done
@McFateM
McFateM / gist:d504088f8df79ebf28bb70eec03500d8
Created May 18, 2020 17:57
Static Test 6 Log - HTTP-01 Challenge with LE Production
5956e1cf7a42c83691fc0e3fec04267b42e7860603c2b060804ea5e057d3e78b
Pulling traefik (traefik:2.2.1)...
2.2.1: Pulling from library/traefik
cbdbe7a5bc2a: Pull complete
f16506d32a25: Pull complete
2be216d464d0: Pull complete
aed51f08b610: Pull complete
Creating traefik ...
Pulling traefik (traefik:2.2.1)...
Creating traefik ... done