Skip to content

Instantly share code, notes, and snippets.

Sam McCollum kg6zvp

Block or report user

Report or block kg6zvp

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
kg6zvp / prometheus-deployment-kubernetes.yaml
Created May 30, 2019
Rudimentary Prometheus Deployment on Kubernetes
View prometheus-deployment-kubernetes.yaml
apiVersion: apps/v1
kind: Deployment
name: prometheus-deployment
app: prometheus
replicas: 1
kg6zvp /
Created Sep 12, 2018
Mirror a git repo up to github
# CI_REPOSITORY_URL: source repo
# DEST_REPO_URL: destination repo (ie: username/repo.git)
# GH_EMAIL: github e-mail
# GH_NAME: github name
# GITHUB_PERSONAL_ACCESS_TOKEN: github access token
# GH_USERNAME: github username
# SRC_BR: source branch
# DEST_BR: destination branch
kg6zvp /
Last active Oct 9, 2018
Build thorntail-v4 and install to local maven cache
#apk update && apk add openssl ca-certificates git # uncomment if you're using the maven:alpine image
git clone ''> /dev/null
cd thorntail/ && git checkout 4x_stable
# git checkout $COMMIT_HASH # uncomment this line if you want to lock CI down to a specific commit hash
mvn -DskipDocker -DskipTests install -pl '!docs,!howto/openshift,!howto/openshift-s2i'
cd .. && rm -rf thorntail

Keybase proof

I hereby claim:

  • I am kg6zvp on github.
  • I am kg6zvp ( on keybase.
  • I have a public key ASB1SwTBS2cDKuN1pyl5UP99dpy8C25cxlVTChqlLdHxYAo

To claim this, I am signing this object:

kg6zvp / persistence.xml
Last active Apr 28, 2018
Tutorial Database Part 2 persistence.xml gist
View persistence.xml
<?xml version="1.0" encoding="UTF-8"?>
<persistence-unit name="tutorial">
<property name="javax.persistence.schema-generation.database.action" value="create" />
<!-- Don't worry about these, they are there to make the tutorial easier to follow -->
<property name="hibernate.show_sql" value="true"/>
<property name="hibernate.format_sql" value="true"/>
<property name="hibernate.use_sql_comments" value="true"/>
kg6zvp /
Last active Apr 19, 2018
Calculator Class for Tutorial 12 - Business Logic and @Inject
package com.airhacks;
import java.util.Arrays;
import javax.enterprise.context.RequestScoped;
* @author smccollum
You can’t perform that action at this time.