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
kskewes / delete-dockerhub-images.sh
Last active Nov 13, 2018 — forked from jriguera/delete-dockerhub-images.sh
Delete Docker images on DockerHub
View delete-dockerhub-images.sh
#!/bin/bash
# TODO: Tidy up! - Karl
# Based on kizbitz/dockerhub-v2-api-organization.sh at https://gist.github.com/kizbitz/175be06d0fbbb39bc9bfa6c0cb0d4721
# Example for the Docker Hub V2 API
# Returns all images and tags associated with a Docker Hub organization account.
# Requires 'jq': https://stedolan.github.io/jq/
# set username, password, and organization
@kskewes
kskewes / genkeys.sh
Created Sep 27, 2018 — forked from jhamrick/genkeys.sh
Generate SSL certificates with IP SAN
View genkeys.sh
#!/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)
# https://github.com/cloudpipe/cloudpipe/pull/45/files#diff-15
#
# usage: sh ./genkeys.sh NAME HOSTNAME IP
set -o errexit
@kskewes
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 <jess@linux.com>
# Whom Last Updated: 2017-09-11 (and did all of the work).
#
# Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | 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 --image=gcr.io/kuar-demo/kuard-amd64:1 kuard
kubectl get pods
@kskewes
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.