Skip to content

Instantly share code, notes, and snippets.

View pop's full-sized avatar

Elijah Voigt pop

View GitHub Profile

Keybase proof

I hereby claim:

  • I am pop on github.
  • I am elijahcaine (https://keybase.io/elijahcaine) on keybase.
  • I have a public key whose fingerprint is 1009 B899 9401 526E 33C5 BA8B 694C A211 7443 799C

To claim this, I am signing this object:

#![feature(proc_macro_hygiene, decl_macro)]
#[macro_use] extern crate serde_derive;
#[macro_use] extern crate rocket;
extern crate rocket_contrib;
use rocket::State;
#[derive(Debug)]
pub struct Foo {
@pop
pop / notes.sh
Created April 6, 2018 19:56
A script for taking notes more easily.
#!/bin/sh
#
# Script: notes.sh
# Author: Elijah C. M. Voigt
# License: MIT
#
# Installation:
# Add this to your path, make it executable, and add this line to your ${SHELL}rc
# alias notes='. notes.sh'
# That will add the command `notes` to your shell.
@pop
pop / sd.sh
Created March 20, 2018 20:33
A script for printing out TODO files automatically.
#!/bin/sh
# Add this file to a direcotry in your $PATH
# Add the following line to your .bashrc:
# alias sd='. /path/to/sd.sh'
cat_todo() {
cat `ls {,.}{todo,TODO}* 2>/dev/null`
}
if [ $# -eq 1 ];
@pop
pop / workon.sh
Created March 16, 2018 16:48
workon
#!/bin/sh
# Put this script in your path.
# Add this line to your .bashrc:
# alias workon='. workon.sh'
PROJECTS_DIR="${PROJECTS_DIR:-$HOME/Source}"
DEPTH="${DEPTH:-6}"
goto_dir () {
d=`find $PROJECTS_DIR -maxdepth $DEPTH -name $1`
if [ ! -z $d ]; then
@pop
pop / Dockerfile
Last active May 3, 2017 02:04
A whirlwind introduction to LaTeX
FROM debian:latest
RUN apt update -y
RUN apt install -y texlive-latex-recommended
RUN apt install -y biber
RUN apt install -y texlive-latex-extra
WORKDIR /opt
CMD ["/opt/build.sh"]
@pop
pop / README.md
Last active December 19, 2019 18:10

A crashcourse for Kubernetes

Feel free to clone this Gist to follow along!

Pre-requisites

We will be running a local Kubernetes cluster. If you have an existing Kubernetes cluster you are fond of, feel free to use that instead!

First order of business is to install [Minikube][minikube].

@pop
pop / ci.md
Last active February 15, 2017 02:28
A talk about using CI

Continuous Integration

That thing you're not using that you really should.

What is CI?

In software engineering, continuous integration (CI) is the practice of merging all developer working copies to a shared mainline several times a day. Grady Booch first named and proposed CI in his 1991 method,[1] although he did not advocate integrating several times a day.

TLDR The process of telling a computer to run your software tests, builds, and anything else a computer can do automagically.

How do I do CI?

@pop
pop / README.md
Created November 18, 2016 22:03
Buildbot on K8s
@pop
pop / make-it-fit.py
Created October 21, 2016 00:29
This script has a very specific set of skills
"""
Title: make-it-fit.py
Description: Transforms a very specific csv into a very specific json format
Owner: Elijah C. Voigt <elijah.caine@coreos.com>
Usage: ``python make-it-fit.py > my-output-file.json``
CSV Format: ``Timestamp(optional),Name (First and Last),Start date at CoreOS,End date at CoreOS(optional),Github handle,Primary Coreos email,Other emails used for commits(optional)``
CSV Example Line: ``1/10/2016 12:00:00,Foo Bazington,1/10/2016,1/10/2017,bazington84,foo.bazington@coreos.com,foobazington@someschool.edu,foobazington@yahoo.net``
"""
import json
import datetime