#!/bin/bash -e
# default args
TEST_MODE=FALSE
ENDPOINT_HOSTNAME=""
AUX=""
FLAG_LIST=(
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var logdna_ingestion_key = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'; | |
var http = require("http"); | |
var Logger = require('logdna'); | |
var options = { | |
hostname: 'myHostname', | |
app: 'testJavascript', | |
env: 'dev' | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# vim:fenc=utf-8 | |
# To fix this issue in terraform: | |
# Failed to unlock state: failed to retrieve lock info: unexpected end of JSON input | |
# Python does what Terraform cannot do! | |
"""Delete terraform lock | |
Usage: | |
terralock.py --list --table TABLE_NAME |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* FORWARD: | |
TL;DR : The poor mans circleCI pattern. | |
this Jenkinsfile is like .circle/config.yml but it lives in .jenkins/Jenkinsfile and is groovy 💔 not YaML 💖 | |
you want to create a Workflow Multibranch pipeline job that can build off many tags/branches with this scripted DSL in git | |
this pattern is unique as it can spawn multi-container pipelines from your intermediate container using an INCEPTION technique | |
a jenkins community first? yay im first at something! maybe that's bad. | |
-- | |
why do it? because CircleCI rocks, jenkins sucks, but it sucks less now. maybe? | |
-- | |
::TODO:: Provide Jenkins Job Builder template to build many Workflow jobs off many github repos, sorta like Circle |
aws sts assume-role --role-arn arn:aws:iam::1234567890:role/assumed_role_or_user --role-session-name session_name --profile developer
Then use the tokens you get from the command output.
export AWS_ACCESS_KEY_ID=aaaaaabbbbbcccccddddddd
export AWS_SECRET_ACCES_KEY=aaaaaabbbbbcccccddddddd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# usage: ./lint-dockerfile.sh <path-to-dockerfile> | |
# purpose: lints dockerfile for common errors | |
# requires: docker to be installed | |
DOCKERFILE_PATH=$1 | |
echo "Linting dockerfile : DOCKERFILE_PATH" | |
docker run -it --rm --privileged -v `pwd`:/root/ projectatomic/dockerfile-lint dockerfile_lint -f ${DOCKERFILE_PATH} | grep ERRORS > dockerfile-lint.out |
configure {
I hereby claim:
- I am jondkelley on github.
- I am jondkelley (https://keybase.io/jondkelley) on keybase.
- I have a public key ASCFZQZREFgmJFVe_RYCwP5WlKXg6FcHspzlIFaeIV3QAQo
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
# pip3 install dnspython3 | |
# pip3 install dnspython | |
import json | |
import dns.resolver | |
import requests | |
import os |