Skip to content

Instantly share code, notes, and snippets.

View ctcampbell's full-sized avatar
Working from home

Chris Campbell ctcampbell

Working from home
View GitHub Profile
ctcampbell / pre-request.js
Last active January 26, 2023 02:13
Postman pre-request to add Veracode HMAC header
var url = require('url');
var { Property } = require('postman-collection');
const id = pm.variables.get('veracodeApiKeyId');
const key = pm.variables.get('veracodeApiKeySecret');
const authorizationScheme = 'VERACODE-HMAC-SHA-256';
const requestVersion = "vcode_request_version_1";
const nonceSize = 16;
ctcampbell / microk8s
Last active July 13, 2022 05:32 — forked from caglar10ur/microk8s
microk8s setup with istio and bookinfo
snap install microk8s --classic
sudo ufw default allow routed
sudo iptables -P FORWARD ACCEPT
microk8s.enable dns dashboard metrics-server
# grafana/dashboard
# http://IP:8080/api/v1/namespaces/kube-system/services/monitoring-grafana/proxy/
# http://IP:8080/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/#!/pod?namespace=default
microk8s.enable istio
apiVersion: v1
kind: ServiceAccount
name: cleaner
namespace: tekton-pipelines
kind: ClusterRole
ctcampbell /
Last active June 20, 2024 14:57 — forked from xalvarez/
Remove all GitHub code scanning analysis results for a given repository and organization
#!/bin/bash -e
# Remove all GitHub code scanning analysis results for a given repository and organization.
# The script assumes that github-cli ( is installed and that authentication has already been
# performed. You might still need to request additional permissions as follows:
# gh auth refresh -h -s admin:repo_hook
# gh auth refresh -h -s delete_repo