Skip to content

Instantly share code, notes, and snippets.

View cmwylie19's full-sized avatar

Case Wylie cmwylie19

View GitHub Profile
@cmwylie19
cmwylie19 / ORAS_Pepr.md
Created April 16, 2025 14:59
demo pushing Pepr artifacts to an oras registry

Run a local zot registry

docker run --platform linux/amd64 -d -p 3333:5000 --name oras-quickstart ghcr.io/project-zot/zot-linux-amd64:latest

Build Pepr image and library

npm run build:image
@cmwylie19
cmwylie19 / OrganizeRelease.js
Last active April 14, 2025 14:15
organizes github release note
const fs = require('fs');
function reorganizeChangelog(filePath) {
const changelog = fs.readFileSync(filePath, 'utf8');
const lines = changelog.split('\n');
const whatsChangedIdx = lines.findIndex(line => line.trim() === '## What\'s Changed');
if (whatsChangedIdx === -1) {
console.error('No "## What\'s Changed" section found.');
return;
@cmwylie19
cmwylie19 / nmap.md
Created April 2, 2025 11:50
find vm - nmap
nmap -p 22 192.168.6.0/24 192.168.5.0/24

# Just the IPs
nmap -p 22 --open 192.168.6.0/24 192.168.5.0/24

# Use -T4 to speed it up (aggressive timing):
nmap -p 22 --open -T4 192.168.6.0/24 192.168.5.0/24

# Or output to a grep-friendly file:
@cmwylie19
cmwylie19 / REBASE.md
Created March 31, 2025 21:07
rebase new commits over top of old commits
git merge upstream/main --allow-unrelated-histories -X theirs
@cmwylie19
cmwylie19 / PEPR_UDS_CORE.md
Created March 31, 2025 20:00
RUN UDS CORE WITH PEPR CANDIDATE
PEPR_OVERRIDE_IMAGE="pepr:dev" uds run test:uds-core-e2e --set FLAVOR=upstream --no-progress
@cmwylie19
cmwylie19 / EKS.md
Last active February 20, 2025 22:38
eks
export AWS_ACCESS_KEY_ID=""
export AWS_SECRET_ACCESS_KEY=""
export AWS_SESSION_TOKEN=""

aws configure 
aws eks update-kubeconfig --region <AWS_REGION> --name <EKS_CLUSTER_NAME>
@cmwylie19
cmwylie19 / Hash.md
Created February 11, 2025 17:29
get the hashes of images
docker pull docker.io/library/node:22-bookworm
docker inspect --format='{{index .RepoDigests 0}}' docker.io/library/node:22-bookworm

# or 
skopeo inspect docker://docker.io/library/node:22-bookworm | jq -r '.Digest'
@cmwylie19
cmwylie19 / Workflow.md
Created February 11, 2025 17:12
Run a github workflow locally to test
gh workflow run container-scan.yaml --ref 1375   
on:
  workflow_dispatch:
    
@cmwylie19
cmwylie19 / WatchWorkshop.md
Last active March 13, 2025 21:37
Kubernetes Watch Workshop

Kubernetes Watch

Kubernetes Watch reports changes on the resource defined by the URL and is configured through the query string.

  • It is the mechanism that backs Pepr Watch and Reconcile.
  • It is how Kubernetes Controllers and Informers track changes to resources
  • It can return several content-types like JSON, YAML, protobuf, CBOR and probably more

URL Construction

@cmwylie19
cmwylie19 / Keybase.md
Created January 11, 2025 13:43
Proof for keybase

Keybase proof

I hereby claim:

  • I am cmwylie19 on github.
  • I am cmwylie19 (https://keybase.io/cmwylie19) on keybase.
  • I have a public key ASDGJ04T0MCyz9rzIMD6FmYjHh9Nc3vE_QFDgoKfXAXwjAo

To claim this, I am signing this object: