Skip to content

Instantly share code, notes, and snippets.

View sammcj's full-sized avatar
🦃

Sam sammcj

🦃
View GitHub Profile
@sammcj
sammcj / LICENSE
Created December 13, 2021 04:11 — forked from garethr/LICENSE
A script for customers to use the Snyk API to get a list of projects impacted by the Log4Shell vulnerability
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
@sammcj
sammcj / Makefile
Created January 15, 2020 02:04 — forked from mpneuried/Makefile
Simple Makefile to build, run, tag and publish a docker containier to AWS-ECR
# 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
sammcj / things_missing_from_rhel8.md
Last active August 6, 2019 07:30
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
sammcj / glustertop.py
Created March 14, 2019 23:06 — forked from fpytloun/glustertop.py
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
sammcj / openssl_build_so.sh
Last active July 20, 2018 04:35
build openssl with statically linked libraries for old software rebuilds on macOS x86_64 / iOS emulator (x86_64) (fork of many other scripts)
#!/bin/bash
# This script builds the Mac openSSL libraries with Bitcode enabled
# Download openssl http://www.openssl.org/source/ 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
sammcj / puppet-stats-slowest-functions.json
Created May 23, 2018 01:08
puppet stats slowest functions
{
"__inputs": [
{
"name": "DS_GRAPHITE-STATSD",
"label": "graphite-statsd",
"description": "",
"type": "datasource",
"pluginId": "graphite",
"pluginName": "Graphite"
}
@sammcj
sammcj / bmw_reflash_carsoft.md
Created May 10, 2018 00:41
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
sammcj / postmortem.md
Created October 17, 2017 01:20 — forked from mlafeldt/postmortem.md
Example Postmortem from SRE book, pp. 487-491

Shakespeare Sonnet++ Postmortem (incident #465)

Date

2015-10-21

Authors

  • jennifer
  • martym