Skip to content

Instantly share code, notes, and snippets.

View ecliptik's full-sized avatar
🏠
Working from home

Micheal Waltz ☁️ ecliptik

🏠
Working from home
View GitHub Profile
@ecliptik
ecliptik / kube-update-secret.sh
Created September 13, 2018 16:37
Exmaple k8s Secret Script
#!/bin/sh
#Simple script to demonstrate how to read a key=value namespace from vault and generate a Kubernete secret
#Requires Vault server and Vault CLI (http API will also work with modifications)
#Setup app name and namespace that will match what's in the app deployment manifest
# example:
# envFrom:
# - secretRef:
# name: myappname
@ecliptik
ecliptik / bucketbench-output-docker.md
Last active September 16, 2017 21:44
Bucketbench on Packet.net Type 2A Instance with Docker v17.07.0-ce

Results

./bucketbench --log-level=debug run -b examples/docker.yaml threads: 3

SUMMARY TIMINGS/THREAD RATES           

                      Iter/Thd    1 thrd   2 thrds   3 thrds   4 thrds   5 thrds   6 thrds   7 thrds   8 thrds   9 thrds  10 thrds                           
               Limit      1000    218.64    314.52    353.42    354.66    347.47    318.98    302.99    289.11    282.92    273.01                           
@ecliptik
ecliptik / jest-results.md
Created September 15, 2017 22:17
Jest multi-thread results on ARM64

jest --coverage --verbose --maxWorkers=24

Test Suites: 569 passed, 569 total
Tests:       3 skipped, 4901 passed, 4904 total
Snapshots:   456 passed, 456 total
Time:        169.055s
Ran all test suites.

=============================== Coverage summary ===============================
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: aci-connector
namespace: default
spec:
replicas: 1
template:
metadata:
labels:
@ecliptik
ecliptik / aci-connector-k8s-armhf-dockerfile
Last active September 12, 2017 06:10
Dockerfile for aci-connector-k8s armhf image
### Base Image
# Setup up a base image to use in Build and Runtime images
FROM ecliptik/node:8.4.0-alpine-armhf AS base
WORKDIR /app
COPY package.json .
### Build Image
# Installs build dependencies and npm packages
# Creates artifacts to copy into Runtime image
@ecliptik
ecliptik / Dockerfile
Created March 21, 2017 23:03
superset-dockerfile
FROM python:3.6
#Set environment vars
ENV LANG=en_US.UTF-8 \
LC_ALL=C.UTF-8 \
LANGUAGE=en_US.UTF-8 \
DEBIAN_FRONTEND=noninteractive \
SUPERSET_VERSION=0.17.1
# Install
version: '2'
volumes:
data:
driver: local
services:
worker1:
image: worker1
stdin_open: true
volumes:
- data:/db/files
@ecliptik
ecliptik / keybase.md
Created June 15, 2016 04:44
keybase.md

Keybase proof

I hereby claim:

  • I am ecliptik on github.
  • I am ecliptik (https://keybase.io/ecliptik) on keybase.
  • I have a public key whose fingerprint is 5F70 F2AC BD58 F580 DF15 3D1F 4FA2 70F5 CD36 71F9

To claim this, I am signing this object:

@ecliptik
ecliptik / tmux.md
Created November 11, 2015 17:45
Introduction to Tmux

Introduction to tmux

Show a list of tmux sessions:

  tmux ls
  desk: 3 windows (created Fri Apr  3 09:38:32 2015) [104x30]

Detach from other "desk" session and re-attach, the session will re-configure based on your environment, ie going from portrait to landscape:

tmux attach -d -t desk

@ecliptik
ecliptik / Dockerfile
Last active March 28, 2023 22:36
Executable Perl Docker Container
#This Dockerfile uses a Multi-Stage Build: https://docs.docker.com/develop/develop-images/multistage-build/
FROM debian:stable-slim AS base
LABEL maintainer="Micheal Waltz <dockerfiles@ecliptik.com>"
# Environment
ENV DEBIAN_FRONTEND=noninteractive \
LANG=en_US.UTF-8 \
LC_ALL=C.UTF-8 \
LANGUAGE=en_US.UTF-8