Skip to content

Instantly share code, notes, and snippets.


Sam Mingo slmingol

View GitHub Profile
slmingol /
Created Jul 7, 2020 — forked from orhun/
Random MOD player
# Plays a random MOD file from
# Depends on XMP (
rand=$(shuf -i 1-189573 -n 1)
tmp=$(mktemp /tmp/${rand}.XXXXXXXX.mod)
curl${rand} > ${tmp}
xmp ${tmp}
rm ${tmp}
slmingol /
Created Jun 16, 2020 — forked from tmckayus/
Running 'crc' on a remote server

Overview: running crc on a remote server

This document shows how to deploy an OpenShift instance on a server using CodeReady Containers (crc) that can be accessed remotely from one or more client machines (sometimes called a "headless" instance). This provides a low-cost test and development platform that can be shared by developers. Deploying this way also allows a user to create an instance that uses more cpu and memory resources than may be available on his or her laptop.

While there are benefits to this type of deployment, please note that the primary use case for crc is to deploy a local OpenShift instance on a workstation or laptop and access it directly from the same machine. The headless setup is configured completely outside of crc itself, and supporting a headless setup is beyond the mission of the crc development team. Please do not ask for changes to crc to support this type of deployment, it will only cost the team time as they politely decline :)

The instructions here were tested with F

View Byte Formatting for Google
slmingol / Github Flavored
Created May 23, 2020 — forked from stevenyap/Github Flavored
Github Flavored Markdown cheatsheet
View Github Flavored

Github Flavored Markdown (GFMD) is based on Markdown Syntax Guide with some overwriting as described at Github Flavored Markdown

Text Writing

It is easy to write in GFMD. Just write simply like text and use the below simple "tagging" to mark the text and you are good to go!

To specify a paragraph, leave 2 spaces at the end of the line


slmingol /
Created May 16, 2020 — forked from robocopAlpha/
Bash shell script to print stats about a Raspberry running pihole
# Define colors
View gist:984684b9b55029eb45468703ec6bf64f
# Blocklist for use with hosts files to block ads, trackers, and other nasty things
# For more information about this list, see:
# ----
# last updated: Sat, 16 May 2020 10:43:53 GMT
# entries: 3353
# format: hosts (hosts -- in hosts file format)
# credits: Peter Lowe - - -
# this URL:;showintro=0
# Patreon:
slmingol / proc_net_tcp_decode
Created Apr 23, 2020 — forked from jkstill/proc_net_tcp_decode
decode entries in /proc/net/tcp
View proc_net_tcp_decode
Decoding the data in /proc/net/tcp:
Linux 5.x /proc/net/tcp
Linux 6.x /proc/PID/net/tcp
Given a socket:
$ ls -l /proc/24784/fd/11
lrwx------ 1 jkstill dba 64 Dec 4 16:22 /proc/24784/fd/11 -> socket:[15907701]
slmingol / pi-hole_blacklist.txt
Last active Jun 27, 2020
pi-hole blacklist list
View pi-hole_blacklist.txt
# pi-hole blacklist v4.x (changes in v5.x)
You can’t perform that action at this time.