Skip to content

Instantly share code, notes, and snippets.

@josephholsten
josephholsten / gist:cea0f01d9d571065c5b8
Created June 18, 2015 23:30
terraform-repo-layout
README.md
scripts/bootstrap
_shared/cloud-init-template.sh
common_variables.tf.json
modules/reporting_hadoop/gateway.tf.json
modules/reporting_hadoop/main.tf.json
modules/reporting_hadoop/manager.tf.json
modules/reporting_hadoop/master.tf.json
modules/reporting_hadoop/slaves.tf.json
@josephholsten
josephholsten / json-log.conf
Created January 22, 2015 01:12
Complete JSON nginx log_format
# json-log.conf - log all useful nginx variables in json formatted log
# for details about these variables, see http://nginx.org/en/docs/http/ngx_http_core_module.html#variables
log_format json-log '{'
# $arg_*
# $args
# $binary_remote_addr
'"body_bytes_sent":"$body_bytes_sent",'
'"bytes_sent":"$bytes_sent",'
'"connection":"$connection",'
# $connection_requests
@josephholsten
josephholsten / README.md
Last active September 6, 2016 19:37
The Most Boring Standard Operating Procedure Template
@josephholsten
josephholsten / sizeup.lua
Last active June 4, 2022 11:41
SizeUp in Hammerspoon
-- === sizeup ===
--
-- SizeUp emulation for hammerspoon
--
-- To use, you can tweak the key bindings and the margins
local sizeup = { }
--------------
-- Bindings --
#!/usr/bin/python
# -*- coding: utf-8 -*-
DOCUMENTATION= '''
---
module: osx_defaults
short_description: set/retrieve user defaults on Mac OS X
description:
- Reads, writes, and delete Mac OS X user defaults, requires that
the defaults utility is present
---
- hosts: workstations
remote_user: j
sudo:
vars:
home_dir: /Users/j
share_dir: {{home_dir}}/Dropbox
npm_path: /usr/local/bin/npm
tasks:
# cat rundeck-config.properties
loglevel.default=INFO
rdeck.base=/var/lib/rundeck
rss.enabled=true
dataSource.dbCreate = update
dataSource.url = jdbc:mysql://rundeck-db.example/rundeck?autoReconnect=true
dataSource.username = rundeck
dataSource.password = sekret