Skip to content

Instantly share code, notes, and snippets.

@kcrouch
kcrouch / bash_prompt.sh
Created September 23, 2021 21:16 — forked from insin/bash_prompt.sh
Set color bash prompt according to active virtualenv, git branch and return status of last command.
#!/bin/bash
#
# DESCRIPTION:
#
# Set the bash prompt according to:
# * the active virtualenv
# * the branch/status of the current git repository
# * the return value of the previous command
# * the fact you just came from Windows and are used to having newlines in
# your prompts.
@kcrouch
kcrouch / common.yaml
Created November 10, 2017 21:51 — forked from awaxa/common.yaml
using an array of hashes from hiera in a template with puppet
---
sockets:
- id: 'one'
address: '127.0.0.1'
port: '8001'
- id: 'two'
address: '127.0.0.2'
port: '8002'