Skip to content

Instantly share code, notes, and snippets.

@gregwork
gregwork / Makefile
Created October 16, 2017 01:26 — forked from mpneuried/Makefile
Simple Makefile to build, run, tag and publish a docker containier to AWS-ECR
# import config.
# You can change the default config with `make cnf="config_special.env" build`
cnf ?= config.env
include $(cnf)
export $(shell sed 's/=.*//' $(cnf))
# import deploy config
# You can change the default deploy config with `make cnf="deploy_special.env" release`
dpl ?= deploy.env
include $(dpl)
@gregwork
gregwork / 1-readme.md
Last active August 29, 2015 14:04
Rakefile example

This example splits namespaces into different files, but that's likely overkill for most uses. Shoving everything in a Rakefile would work fine too.

To use this:

cd /tmp
mkdir raketest
cd raketest
touch Rakefile
mkdir rakelib
@gregwork
gregwork / Guardfile
Created September 28, 2012 07:27
auto puppet-lint/syntax check via guard-shell
# Uses guard and guard-shell for auto lint/syntax check on saving
#
# 'gem install guard guard-shell puppet' will get you the dependencies.
# Drop this in 'Guardfile' in the root of your puppet dev directory.
#
# Run 'guard' to get started.
# Disable Pry interactor; this blocks the filesystem change listenener
# https://github.com/guard/guard/issues/357
interactor :off