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
@chiefy
chiefy / find_related.js
Created May 22, 2014
Find related properties inside object
View find_related.js
@chiefy
chiefy / github_buttons.rb
Last active Aug 29, 2015
Jekyll tag plugin for creating GitHub style social buttons: https://github.com/ntkme/github-buttons
View github_buttons.rb
# Jekyll tags to support GitHub buttons on your site
#
# For more info: https://github.com/ntkme/github-buttons
#
# Installation:
# 1. Copy this gist to Jekyll's `_plugins` folder
# 2. Include the following script tag in your default template:
# <script async defer id="github-bjs" src="//buttons.github.io/buttons.js"></script>
#
# Usage:
@chiefy
chiefy / errors.txt
Created Dec 14, 2015
vaulted test fails
View errors.txt
195 passing (3s)
3 pending
14 failing
1) auth/appid "before all" hook for "should resolve with file removed":
StatusCodeError: 307 - undefined
at new StatusCodeError (node_modules/request-promise/lib/errors.js:26:15)
at Request.RP$callback [as _callback] (node_modules/request-promise/lib/rp.js:68:32)
at Request.self.callback (node_modules/request-promise/node_modules/request/request.js:198:22)
at Request.<anonymous> (node_modules/request-promise/node_modules/request/request.js:1035:10)
@chiefy
chiefy / .dockerignore
Last active Jan 16, 2016
examples for a blog post
View .dockerignore
node_modules
.git
View wercker.yml
dev:
box:
id: quay.io/oddnetworks/alpine-nodejs-builder
tag: 4.2.6
registry: https://quay.io
services:
- elasticsearch
steps:
@chiefy
chiefy / index.js
Last active Feb 8, 2016
weird seneca thing
View index.js
var seneca = require('seneca')();
seneca
.use('plugin')
.add({role: 'plugin', name: 'poop'}, function onPoop(msg, respond) {
respond(null, {message: 'this is not from plugin poop!'});
});
seneca.act({role: 'plugin', name: 'poop'}, console.log);
View err.log
09:14:53 npm http GET https://registry.npmjs.org/get-stdin/3.0.2
09:14:53 npm http GET https://registry.npmjs.org/grunt-contrib-concat/0.5.1
09:14:53 npm http GET https://registry.npmjs.org/grunt/0.4.5
09:14:53 npm http GET https://registry.npmjs.org/grunt-contrib-copy/0.7.0
09:14:53 npm http GET https://registry.npmjs.org/grunt-contrib-uglify/0.6.0
09:14:53 npm http GET https://registry.npmjs.org/grunt-contrib-clean/0.6.0
09:14:53 npm http GET https://registry.npmjs.org/grunt-contrib-cssmin/0.12.3
09:14:53 npm http GET https://registry.npmjs.org/grunt-contrib-jshint/0.10.0
09:14:53 npm http GET https://registry.npmjs.org/grunt-img/0.1.8
09:14:53 npm http GET https://registry.npmjs.org/grunt-karma/0.9.0
@chiefy
chiefy / Dockerfile
Created Jun 25, 2016
vault example dockerfile
View Dockerfile
FROM alpine:latest
ENV \
VAULT_VERSION=0.6.0
RUN \
export VAULT_ZIP=vault_${VAULT_VERSION}_linux_amd64.zip; \
apk update &&\
apk add curl &&\
curl -s https://releases.hashicorp.com/vault/${VAULT_VERSION}/vault_${VAULT_VERSION}_SHA256SUMS | grep linux_amd64 > /tmp/vaultsum &&\
@chiefy
chiefy / keybase.md
Last active Jan 15, 2017
keybase proof
View keybase.md

Please publicly post the following Gist, and name it keybase.md

Keybase proof

I hereby claim:

  • I am chiefy on github.
  • I am chief (https://keybase.io/chief) on keybase.
  • I have a public key ASDiqtJlT0wAK0_8vXkcongNCcCuQ1x55q7_SQm4GC1hIgo
@chiefy
chiefy / test_cgi_args.sh
Created May 11, 2017
testing cmd.io stuff
View test_cgi_args.sh
#!/bin/bash
user=${1:-chiefy}
hostname=localhost
port=2223
ssh="ssh ${user}@${hostname} -p ${port}"
cmd_name=tester
test_cmd=$(cat <<'EOD'
#!cmd.io alpine bash
#!/bin/bash
You can’t perform that action at this time.