Skip to content

Instantly share code, notes, and snippets.

Avatar
🦃

Sam sammcj

🦃
View GitHub Profile
@sammcj
sammcj / github_repo_settings.md
Created November 20, 2022 00:36
trying out upg
View github_repo_settings.md

"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
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 {
allowsDeletions
allowsForcePushes
creator {
login
}
id
isAdminEnforced
requiredStatusCheckContexts
requiredApprovingReviewCount
@sammcj
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:\/\/aus.social\/@$2@$1.social",
"exampleURLs" : [
View docker-compose.yaml
---
version: "3.8"
x-restart: &restart
restart: unless-stopped
services:
scrutiny:
<<: *restart
container_name: scrutiny
@sammcj
sammcj / github-actions-notes.md
Last active November 11, 2022 05:16 — forked from br3ndonland/github-actions-notes.md
Getting the Gist of GitHub Actions
View github-actions-notes.md
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 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
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 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
sammcj / things_missing_from_rhel8.md
Last active August 6, 2019 07:30
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 March 14, 2019 23:06 — 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.