Skip to content

Instantly share code, notes, and snippets.

Karl kskewes

Block or report user

Report or block kskewes

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
kskewes /
Last active Nov 13, 2018 — forked from jriguera/
Delete Docker images on DockerHub
# TODO: Tidy up! - Karl
# Based on kizbitz/ at
# Example for the Docker Hub V2 API
# Returns all images and tags associated with a Docker Hub organization account.
# Requires 'jq':
# set username, password, and organization
kskewes /
Created Sep 27, 2018 — forked from jhamrick/
Generate SSL certificates with IP SAN
#!/usr/bin/env bash
# Generate a set of TLS credentials that can be used to run development mode.
# Based on script by Ash Wilson (@smashwilson)
# usage: sh ./ NAME HOSTNAME IP
set -o errexit
kskewes / boxstarter.ps1
Last active Aug 12, 2018 — forked from jessfraz/boxstarter.ps1
Boxstarter Commands for a new Windows box.
View boxstarter.ps1
# Description: Boxstarter Script
# Current Author: Karl
# Forked from: Jess Frazelle <>
# Whom Last Updated: 2017-09-11 (and did all of the work).
# Install boxstarter:
# . { iwr -useb } | iex; get-boxstarter -Force
# You might need to set: Set-ExecutionPolicy RemoteSigned
View gist:74b4a1061895b4ed6dd5626c73c2f22a
# This tells kubecfg to read its config from the local directory
export KUBECONFIG=./kubeconfig
# Looking at the cluster
kubectl get nodes
kubectl get pods --namespace=kube-system
# Running a single pod
kubectl run --generator=run-pod/v1 kuard
kubectl get pods
kskewes / logger.ps1
Last active May 3, 2018 — forked from barsv/logger.ps1
Logging in powershell with log rotation
View logger.ps1
# Logging settings
# $logFile = "c:\temp\log-$(gc env:computername).log"
$logFile = "log-$(gc env:computername).log"
$logLevel = "DEBUG" # ("DEBUG","INFO","WARN","ERROR","FATAL")
$logSize = 1mb # 30kb
$logCount = 10
# end of settings
function Write-Log-Line ($line) {
Add-Content $logFile -Value $Line
You can’t perform that action at this time.