Skip to content

Instantly share code, notes, and snippets.

View full-sized avatar

Sam sammcj

View GitHub Profile
sammcj /
Created November 20, 2022 00:36
trying out upg

"typescript" "manage and configure a list of Github repositories and their settings including branch protection rules"

$ upg

    __  ______  ____ _    UPG CLI
   / / / / __ \/ __ `/    Public Beta
  / /_/ / /_/ / /_/ /
 \__,_/ .___/\__, / 🇺🇸 Built by GPT Labs
sammcj / operations.graphql
Created November 15, 2022 23:57 — forked from duboisf/operations.graphql
Add branch protection to a repo using GitHub's Graphql API
View operations.graphql
fragment branchProtection on BranchProtectionRule {
creator {
sammcj / Example1.json
Created November 15, 2022 12:57
Mastodon Redirects
View Example1.json
"appVersion" : "3.1",
"bundleID" : "io.github.mshibanami.RedirectWebForSafari",
"createdAt" : "2022-11-15T12:28:49.242Z",
"kind" : "RedirectList",
"redirects" : [
"comments" : "",
"destinationURLPattern" : "https:\/\/\/@$2@$",
"exampleURLs" : [
View docker-compose.yaml
version: "3.8"
x-restart: &restart
restart: unless-stopped
<<: *restart
container_name: scrutiny
View uBlock_Github_copycat.txt
! Github fake
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
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 / 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
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 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 /
Created March 14, 2019 23:06 — 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.