Skip to content

Instantly share code, notes, and snippets.

View cmwylie19's full-sized avatar

Case Wylie cmwylie19

View GitHub Profile
@cmwylie19
cmwylie19 / controller.md
Last active February 10, 2025 16:06
docker run

Pepr IB Controller

docker run -it --entrypoint sh pepr:dev  
docker pull registry1.dso.mil/ironbank/opensource/defenseunicorns/pepr/controller:v0.24.1

docker run -d --name controller registry1.dso.mil/ironbank/opensource/defenseunicorns/pepr/controller:v0.24.1 tail -f /dev/null

docker run -it --name controller registry1.dso.mil/ironbank/google/distroless/nodejs-20:nonroot ls
@cmwylie19
cmwylie19 / PeprDashboard.md
Last active January 24, 2024 21:45
Pepr Dashboard

Grafana Dashboard

Deploy the Grafana Operator and create a dashboard.

Demo

Deploy the Grafana helm chart

@cmwylie19
cmwylie19 / ScrapePepr.md
Last active December 11, 2023 19:33
Scrape Pepr quick n' dirty. Prometheus instance is not recommended for prod

Prometheus Operator and Pepr

This deploys the prometheus manifests to the default namespace and is not intended for production, just as a means to show how to quickly scrape Pepr metrics. The kube prometheus stack provides a more production suitable way of deploying Prometheus in prod.

Demo

Deploy Prometheus operator controller manager

@cmwylie19
cmwylie19 / uncheck.js
Last active October 2, 2023 13:46
uncheck
javascript:document.getElementsByName("viewed").forEach(ch => {if(ch.checked) {ch.click()}})
@cmwylie19
cmwylie19 / Get-WiFiProfiles.ps1
Created September 25, 2023 22:40 — forked from Noxsios/Get-WiFiProfiles.ps1
Get-WiFi-Profiles using netsh and store in a TOML file for easy reading.
if (!(Test-Path "./profiles.toml")) {
New-Item -ItemType File "./profiles.toml" | Out-Null
}
"#####`n[profiles]" | Out-File -Append -Encoding utf8 "./profiles.toml"
(netsh wlan show profiles) |
Select-String "\:(.+)$" |
ForEach-Object {
$name = $PSItem.Matches.Groups[1].Value.Trim()
@cmwylie19
cmwylie19 / launch.json
Last active January 29, 2025 22:49
Go debugger for Kubernetes
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Launch Package",
"type": "go",
"request": "launch",
@cmwylie19
cmwylie19 / Rebase.md
Last active June 12, 2023 18:07
Update fork with Git Rebase
git remote add upstream https://github.com/user/repo.git

git fetch upstream

git rebase upstream/main 1806 

git push origin main --force
@cmwylie19
cmwylie19 / certificates.md
Last active December 30, 2024 16:22
Create openSSL certs

Certificates

Generate a new private key and certificate signing request

openssl req -out CSR.csr -new -newkey rsa:2048 -nodes -keyout privateKey.key

Generate a self-signed certificate