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
sammcj / things_missing_from_rhel8.md
Last active Aug 6, 2019
Things missing from RHEL 8.0 that I need / want
View things_missing_from_rhel8.md

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 Mar 14, 2019 — forked from fpytloun/glustertop.py
Real time GlusterFS top-like monitoring
View glustertop.py
#!/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 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)
View openssl_build_so.sh
#!/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
puppet stats slowest functions
View puppet-stats-slowest-functions.json
{
"__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
bmw carsoft reprogram
View bmw_reflash_carsoft.md

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.
View Effective_Engineer.md

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 Oct 17, 2017 — forked from mlafeldt/postmortem.md
Example Postmortem from SRE book, pp. 487-491
View postmortem.md

Shakespeare Sonnet++ Postmortem (incident #465)

Date

2015-10-21

Authors

  • jennifer
  • martym
View z_network.md
$ mco federation trace dev1-0.choria
Received response from dev1-0.choria in 24ms
Reported Route:
client.choria
nats1.fed
nats3.fed
fb builder:1
nats2.choria
nats1.choria
@sammcj
sammcj / fuckihatexml.sh
Last active Jul 13, 2016
/etc/libvirt/qemu/windowsvm.xml and friends
View fuckihatexml.sh
#
~ # lsmod|grep vf
vfio_pci 40960 0
vfio_iommu_type1 20480 0
vfio_virqfd 16384 1 vfio_pci
vfio 28672 2 vfio_iommu_type1,vfio_pci
irqbypass 16384 2 kvm,vfio_pci
~ # virsh nodedev-dumpxml pci_0000_01_00_0
<device>
You can’t perform that action at this time.