Skip to content

Instantly share code, notes, and snippets.

@jedi4ever
jedi4ever / gist:2726756
Created May 18, 2012 18:03
Strategy: Logic to determine if a commit (or series) has impact on a Puppet Role (class)

Problem:

Given a puppet tree (with manifest and modules) dir
When rspec-puppet tests and puppet lint tests pass Instead of re-running test on all possible roles I want to calculate what roles (classes) were impacted in between revision of the puppet tree

Roles would translate to classes in puppet tree with a special prefix f.i. role_

Usage

@andreyvit
andreyvit / tmux.md
Created June 13, 2012 03:41
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

@dvolker
dvolker / generate_transactions.py
Created November 29, 2012 20:03
Ledger transactions with image report
import ledger
journal = ledger.read_journal(" LEDGER FILE PATH HERE ")
print """<html>
<head>
<title>Rental Ledger</title>
<link rel="stylesheet" href="javascript/jquery.tablesorter/themes/blue/style.css" type="text/css" id="" media="print, projection, screen" />
<script type="text/javascript" src="javascript/jquery.js"></script>
<script type="text/javascript" src="javascript/jquery.tablesorter/jquery.tablesorter.js"></script>
<script type="text/javascript" id="js">
$(document).ready(function() {