Skip to content

Instantly share code, notes, and snippets.

Avatar
🦃

Sam sammcj

🦃
View GitHub Profile
View uBlock_Github_copycat.txt
! https://raw.githubusercontent.com/arosh/ublacklist-github-translation/master/uBlacklist.txt
! Github fake
*://bleepcoder.com/*
*://githubja.com/*
*://*.gitmemory.com/*
*://giters.com/*
*://githubmemory.com/*
*://*.wenyanet.com/*
*://issueexplorer.com/*
*://opensourcelibs.com/*
@sammcj
sammcj / LICENSE
Created Dec 13, 2021 — forked from garethr/LICENSE
A script for customers to use the Snyk API to get a list of projects impacted by the Log4Shell vulnerability
View LICENSE
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 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
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