This file contains hidden or 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
--- | |
# ^^^ YAML documents must begin with the document separator "---" | |
# | |
#### Example docblock, I like to put a descriptive comment at the top of my | |
#### playbooks. | |
# | |
# Overview: Playbook to bootstrap a new host for configuration management. | |
# Applies to: production | |
# Description: | |
# Ensures that a host is configured for management with Ansible. |
This file contains hidden or 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
# basic makefile for D language - made by darkstalker | |
DCC = dmd | |
DFLAGS = -w | |
LIBS = | |
SRC = $(wildcard *.d) | |
OBJ = $(SRC:.d=.o) | |
OUT = $(shell basename `pwd`) | |
.PHONY: all debug release profile clean |
This file contains hidden or 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/ruby | |
# This script acts as a command-line filter to convert a BSON file (such as from mongodump) to an equivalent JSON file | |
# The resulting JSON file will be an array of hashes | |
# Any binary values from the BSON file are converted to base64 (such as Mongo's _id fields) | |
# I originally wrote this script so that Mongo files can be easily used with jsawk for | |
# offline data processing -- https://github.com/micha/jsawk | |
# | |
# To invoke, assuming mycollection.bson is a file from mongodump: | |
# ruby bson2json.rb < mycollection.bson > mycollection.json |
This file contains hidden or 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
log_level :info | |
log_location STDOUT | |
node_name 'solo' | |
client_key File.expand_path('../solo.pem', __FILE__) | |
cache_type 'BasicFile' | |
cache_options( :path => File.expand_path('../checksums', __FILE__)) | |
cookbook_path [ File.expand_path('../../cookbooks', __FILE__) ] |
This file contains hidden or 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
#!/bin/bash | |
# Extract subdirectory into a submodule. | |
if [ -z "$1" ]; then | |
echo "Usage: extract-submodule subdirectory" | |
echo "No trailing slash" | |
echo "Should be run from the root directory of repository" | |
echo "Everything should be clean prior to running this script" | |
echo "You need to manually copy submodule somewhere and update .gitmodules file appropriately" | |
exit 1; |