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'
@kcrouch
kcrouch / gist:e1299b4fe855ee9de18ef59c407adc7c
Last active July 17, 2017 18:58
openstack_lb_loadbalancer_v2 fails on apply when specifying a vip_address
(openstack-tf-testing) kcrouch@MacBook-Pro-3:~/code/cl-terraform/tf-test$ terraform plan
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.
The Terraform execution plan has been generated and is shown below.
Resources are shown in alphabetical order for quick scanning. Green resources
will be created (or destroyed and then created if an existing resource
exists), yellow resources are being changed in-place, and red resources
will be destroyed. Cyan entries are data sources to be read.