Table of Contents
FILE SPACING: | |
# double space a file | |
sed G | |
# double space a file which already has blank lines in it. Output file | |
# should contain no more than one blank line between lines of text. | |
sed '/^$/d;G' |
sudo apt-get -y update | |
sudo apt-get -y install python | |
sudo easy_install pip | |
sudo pip install ansible | |
sudo pip install "pywinrm>=0.2.2" | |
# kerberos authentication support | |
#sudo apt-get install -y python-dev libkrb5-dev krb5-user | |
#sudo pip install pywinrm[kerberos] |
--- | |
# ^^^ 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. |
$ docker create --name gitlab-data --volume /d/docker/gitlab:/etc/gitlab gitlab/gitlab-ce:latest | |
# Make sure Bridging is set on the VM in VirtualBox | |
$ docker run --publish 8080:80 --publish 2222:22 --publish 4443:443 --name gitlab --restart always --volumes-from gitlab-data gitlab/gitlab-ce:latest | |
Using docker 1.13.1 |
I'm be using DreamCompute as my OpenStack provider, but there are dozens to choose from. I assume you already have Ansible and the OpenStack CLI tools installed.
With the proliferation of OpenStack public clouds offering free and intro tiers, it's becoming very easy to effectively run a simple application for free or nearly free. Also with the emergence of Ansible, you don't need to learn and deploy complicated tools to do configuration management.
#!/bin/bash | |
echo "[ build and install vim from source ]" | |
# Create directories... | |
sudo mkdir -p ~/fs/dev; | |
# This script needs "fpm". If you don't have it | |
# install ruby, etc. with: | |
sudo apt-get install ruby ruby-dev build-essential; |
When [Markdown][markdown] appeared more than 10 years ago, it aimed to make it easier to express ideas in an easy-to-write plain text format. It offers a simple syntax that takes the writer focus away from the formatting, thus giving her time to focus on the actual content.
The market abunds of editors to be used for help with markdown. After a few attempts, I settled to Sublime and its browser preview plugin, which work great for me and have a small memory footprint to accomplish that. To pass the results around to other people, less technical, a markdown file and a bunch of images is not the best approach, so converting it to a more robust format like PDF seems like a much better choice.
[Pandoc][pandoc] is the swiss-army knife of converting documents between various formats. While being able to deal with heavy-weight formats like docx and epub, we will need it for the more lightweight markdown. To be able to generate PDF files, we need LaTeX. On OSX, the s
How to figure out what the fuck is going on without social media.
#!/usr/bin/env ruby | |
# Generate a DOT file showing links between ActiveMQ brokers using | |
# a list of activemq.xml files passed as ARGV. | |
require 'rexml/document' | |
require 'erb' | |
broker_map = Hash.new |