Skip to content

Instantly share code, notes, and snippets.

View pop's full-sized avatar

Elijah Voigt pop

View GitHub Profile
@pop
pop / IAM-Meeting-Plan-2016-06-30.md
Last active July 28, 2016 16:22
Meeting Roadmaps
@pop
pop / Dockerfile
Last active February 5, 2016 07:51
"You got Firefox in my Docker!"
FROM debian:latest
RUN apt-get update
RUN apt-get -y install iceweasel
ENV DISPLAY :0
CMD iceweasel
@pop
pop / index.html
Last active November 20, 2015 04:43
A (hacked together) twine-like game engine (proof of concept)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>
<link rel='stylesheet' type='text/css' href='style.css'>
#/usr/bin/python3.5
import unittest
def add(x, y):
if x == y:
raise ValueError('X cannot equal Y because reasons')
else:
return x + y
class TestyTesterson(unittest.TestCase):
@pop
pop / .gitignore
Last active October 15, 2015 20:06
A quick Static Site Generator demo
venv/
@pop
pop / command.py
Last active September 18, 2015 19:04
A simple example of using dictionaries to replace if/elif/else chains for command calling.
"""
A simple example of calling commands with a dict instead of an if/elif/else
chain.
"""
import sys # used for argv, not really imprtant for the example
def main():
# Create a dictionary of commands and their corresponding function
# This function can be called by using the command as a keyword when
# accessing the dictionary.
@pop
pop / main.go
Last active September 15, 2015 21:00
Simple Golang requests program
// Build instructions:
// $ go build main.go
//
// Usage instructions:
// $ ./main --method=GET --url=http://example.com
// $ ./main --method=POST --url=http://api.example.com/v#/thing/ --content='{"foo": "bar", "baz": True}'
package main
import (
"bytes"
@pop
pop / README.md
Last active September 16, 2015 21:02
A *very* simple flask app script for DevOps DayCamp 2015

Python Flask App

Thiiiis far above hello world.

Installation/Usage

$ sudo apt install git 
$ git clone $THISURL 
@pop
pop / .gitignore
Last active September 19, 2015 23:31
a liveblog
.gitignore
.venv/
venv/
index.html
@pop
pop / bashrc.segment
Created July 8, 2015 19:55
bash history sync
### This block syncs up my bash history file in my tmux sessons.
# avoid duplicates..
export HISTCONTROL=ignoredups:erasedups
# append history entries..
shopt -s histappend
# After each command, save and reload history
export PROMPT_COMMAND="history -a; history -c; history -r; $@"