Skip to content

Instantly share code, notes, and snippets.

Avatar

Chris Campbell ctcampbell

View GitHub Profile
@ctcampbell
ctcampbell / microk8s
Last active Jul 13, 2022 — forked from caglar10ur/microk8s
microk8s setup with istio and bookinfo
View microk8s
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
@ctcampbell
ctcampbell / pre-request.js
Last active May 6, 2022
Postman pre-request to add Veracode HMAC header
View pre-request.js
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;