Skip to content

Instantly share code, notes, and snippets.


Sam sammcj

Block or report user

Report or block sammcj

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
sammcj / Makefile
Created Jan 15, 2020 — forked from mpneuried/Makefile
Simple Makefile to build, run, tag and publish a docker containier to AWS-ECR
View Makefile
# import config.
# You can change the default config with `make cnf="config_special.env" build`
cnf ?= config.env
include $(cnf)
export $(shell sed 's/=.*//' $(cnf))
# import deploy config
# You can change the default deploy config with `make cnf="deploy_special.env" release`
dpl ?= deploy.env
include $(dpl)
sammcj /
Last active Aug 6, 2019
Things missing from RHEL 8.0 that I need / want

A list of things missing from RHEL 8 that I need or want that were available (as packages) in RHEL 7

Note: Some (most) of these may not be required as packages and can probably be part of containers running on the system(s).

Packages missing

sammcj /
Created Mar 14, 2019 — forked from fpytloun/
Real time GlusterFS top-like monitoring
#!/usr/bin/env python
Display gluster traffic
This tool uses gluster profiling feature, parsing cumulative statistics.
To understand correctly the results, you have to divide overall write statistics with number of replicas.
Also striped volumes needs to be taken in mind - overall statistics just print sum of all bricks
read/written bytes.
sammcj /
Last active Jul 20, 2018
build openssl with statically linked libraries for old software rebuilds on macOS x86_64 / iOS emulator (x86_64) (fork of many other scripts)
# This script builds the Mac openSSL libraries with Bitcode enabled
# Download openssl and place the tarball next to this script
# Modified and messed with by @sammcj
# Credits:
# Peter Steinberger, PSPDFKit GmbH, @steipete.
# Doron Adler, GlideTalk, @Norod78
sammcj / puppet-stats-slowest-functions.json
Created May 23, 2018
puppet stats slowest functions
View puppet-stats-slowest-functions.json
"__inputs": [
"label": "graphite-statsd",
"description": "",
"type": "datasource",
"pluginId": "graphite",
"pluginName": "Graphite"
sammcj /
Created May 10, 2018
bmw carsoft reprogram

Reprogram BMW after doing Automatic to Manual Conversion. (Based on my E36 experience)

written by Ross W, and Sam M.

This guide assumes the following:

  • You have programmed a BMW ECU/DME before using DIS or similar.
  • You are taking all the necessary safety precautions. (Fully charged battery etc…)
  • You have DIS working (We used EasyDIS 1.0, Base 44)
  • You have Ediabas (INPA, NCS Expert, IFH Serve) installed and working.

Effective Engineer - Notes

What's an Effective Engineer?

  • They are the people who get things done. Effective Engineers produce results.

Adopt the Right Mindsets

sammcj /
Created Oct 17, 2017 — forked from mlafeldt/
Example Postmortem from SRE book, pp. 487-491

Shakespeare Sonnet++ Postmortem (incident #465)




  • jennifer
  • martym
$ mco federation trace dev1-0.choria
Received response from dev1-0.choria in 24ms
Reported Route:
fb builder:1
You can’t perform that action at this time.