Skip to content

Instantly share code, notes, and snippets.

View cjimti's full-sized avatar

Craig Johnston cjimti

View GitHub Profile
@cjimti
cjimti / apk8s-nifi-demo-template.xml
Created April 18, 2020 16:57
NiFi Demo Template for apk8s.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<template encoding-version="1.2">
<description></description>
<groupId>0b45efb0-0171-1000-7cad-457ce8f223d5</groupId>
<name>Twitter Sentiment v2</name>
<snippet>
<connections>
<id>45c0992d-ba9e-3d80-0000-000000000000</id>
<parentGroupId>23f6c2f1-9874-3710-0000-000000000000</parentGroupId>
<backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold>
@cjimti
cjimti / themes.jupyterlab-settings
Created August 17, 2019 01:45
themes.jupyterlab-settings
{
"theme": "JupyterLab Dark"
}
@cjimti
cjimti / php:5.6-apache
Created August 7, 2018 01:57
php:5.6-apache Container
FROM php:5.6-apache
RUN apt-get update
RUN apt-get install -y libxml2-dev
RUN docker-php-source extract \
&& docker-php-ext-configure soap \
&& docker-php-ext-install -j$(nproc) soap \
&& docker-php-ext-enable soap \
&& docker-php-source delete
"\e\e[C": forward-word
"\e\e[D": backward-word
@cjimti
cjimti / Dockerfile
Created June 25, 2018 02:33
Golang Microservice Dockerfile boilerplate
FROM golang:1.10.2-alpine3.7 AS builder
ARG GITLAB_TOKEN
ARG GITLAB_DOMAIN
RUN apk update \
&& apk add git
RUN mkdir -p /go/src \
&& mkdir -p /go/bin \
postBan:
- \w*((\%27)|(\'))((\%6F)|o|(\%4F))((\%72)|r|(\%52))
- ((\%3D)|(=))[^\n]*((\%27)|(\')|(\-\-)|(\%3B)|(;))
- ((\%27)|(\'))union
- exec(\s|\+)+(s|x)p\w+
- ((\%3C)|<)((\%2F)|\/)*[a-z0-9\%]+((\%3E)|>)
- 3cscript
- 2fscript
- <script
- \(.+select
.gist{font-size: 18px}
.gist-meta,.gist-data, .gist-file,.gist-data, .octotree_toggle, ul.comparison-list > li.title,button.button, a.button, span.button, button.minibutton, a.minibutton,span.minibutton, .clone-url-button > .clone-url-link{background: linear-gradient(#202020, #181818) !important;border-color: #383838 !important;border-radius: 0 0 3px 3px !important;text-shadow: none !important;color: #b5b5b5 !important}
.markdown-format pre, .markdown-body pre, .markdown-format .highlight pre,.markdown-body .highlight pre, body.blog pre, #facebox pre, .blob-expanded,.terminal, .copyable-terminal, #notebook .input_area, .blob-code-context,.markdown-format code, body.blog pre > code, .api pre, .api code,.CodeMirror,.highlight{background-color: #1D1F21!important;color: #C5C8C6!important;font-size: 18px}.gist .blob-code{padding: 1px 10px !important;text-align: left;background: #000;border: 0}::selection{background: #24890d;color: #fff;text-shadow: none}::-moz-selection{background: #24890d;color: #fff;text-shadow:
@cjimti
cjimti / example-k8s-txtoken.yml
Created May 28, 2018 20:50
Example k8s Configuration for txToken
apiVersion: v1
kind: Service
metadata:
name: authtoken
namespace: default
labels:
app: authtoken
spec:
selector:
app: authtoken
@cjimti
cjimti / 00-kube-dns-upstream.yml
Created May 18, 2018 16:27
Kubernetes Upstream DNS Configuration
apiVersion: v1
kind: ConfigMap
metadata:
name: kube-dns
namespace: kube-system
data:
upstreamNameservers: |
["8.8.8.8", "8.8.4.4"]
@cjimti
cjimti / 10-cluster-issuer-letsencrypt-staging.yml
Last active May 18, 2018 05:23
Kubernetes cert-manager Let's Encrypt ClusterIssuer
apiVersion: certmanager.k8s.io/v1alpha1
kind: Issuer
metadata:
name: letsencrypt-staging
namespace: default
spec:
acme:
# The ACME server URL
server: https://acme-staging.api.letsencrypt.org/directory
# Email address used for ACME registration