Skip to content

Instantly share code, notes, and snippets.

@vmadman
vmadman / packer-config.json
Last active August 1, 2017 17:12
Packer log: Error deleting VM
{
"variables" : {
"source_name" : "centos-7.3-x86_64-raw-r1",
"headless" : "false",
"http_proxy" : "{{env `http_proxy`}}",
"https_proxy" : "{{env `https_proxy`}}",
"memory" : "2048",
"metadata" : "packer/floppy/dummy_metadata.json",
"name" : "centos-7.3",
"no_proxy" : "{{env `no_proxy`}}",
@vmadman
vmadman / apache-json-log-format
Created April 27, 2013 06:59
An apache log format that allow access logs (but not error logs) to be output in JSON format. I found this here: http://untergeek.com/2012/10/11/getting-apache-to-output-json-for-logstash/ -- but modified it for my purposes a good bit.
# Access Logs
LogFormat "{ \
\"@vips\":[\"%v\"], \
\"@source\":\"%v%U%q\", \
\"@source_host\": \"%v\", \
\"@source_path\": \"%f\", \
\"@tags\":[\"Apache\",\"Access\"], \
\"@message\": \"%h %l %u %t \\\"%r\\\" %>s %b\", \
\"@fields\": { \
\"timestamp\": \"%{%Y-%m-%dT%H:%M:%S%z}t\", \
@vmadman
vmadman / gTile-Presets.txt
Last active October 13, 2022 16:12
gTile Resize Presets
Grid Sizes: 15x1,4x2,15x2
My Favorite Presets for gTile.
Featured/Focus
01: 15x1 1:1 4:1
02: 15x1 5:1 11:1
03: 15x1 12:1 15:1
4-Columns
04: 4x1 1:1 1:1,2:1 2:1,1:1 2:1