Skip to content

Instantly share code, notes, and snippets.

View dekimsey's full-sized avatar

Daniel Kimsey dekimsey

View GitHub Profile
@dekimsey
dekimsey / failed-equals-batch-kills-playbook.yml
Last active June 20, 2016 22:05
Demonstrate Ansible not completing all Plays when failures are found
---
- name: Play 0 (all is good)
hosts: all
become: false
connection: local
gather_facts: no
tasks:
- name: Task 1 -- Runs OK
command: date
@dekimsey
dekimsey / git-ignore
Last active December 19, 2015 13:19 — forked from afontaine/git-ignore
now with saner listing as well as not requiring git directory to just list.
#!/bin/sh
USAGE="list | list-single | <types> ..."
LONG_USAGE="Generate/Append the repo's .gitignore file using the gitignore.io api
`curl -s http://gitignore.io/api/`"
SUBDIRECTORY_OK=
NONGIT_OK=1
OPTIONS_SPEC=
@dekimsey
dekimsey / gollum.rb
Created April 8, 2013 14:35
This code snippet assumes you are using the Rack style bootstrapping as detailed in Gollum's Readme. This code must go AFTER the require libraries and before any objects are first created.
##
# This is an example of how one might go about monkey-patching custom syntax
# into the gollum wiki engine.
##
# Monkey Patch the gollum library to support {.css-class} syntax
# Mechanics derived from http://stackoverflow.com/questions/4470108/when-monkey-patching-a-method-can-you-call-the-overridden-method-from-the-new-i
class Gollum::Markup
# Add our class variable, cssmap.