agnoster.zsh-theme
A ZSH theme optimized for people who use:
- Solarized
- Git
- Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
For Mac users, I highly recommend iTerm 2 + Solarized Dark
A ZSH theme optimized for people who use:
For Mac users, I highly recommend iTerm 2 + Solarized Dark
MIT License | |
Copyright (c) [spuder] 2022 | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
If you want to check whether a node run_list
includes a specific role (upon
expansion), then you could use role? method on the Node
object:
node.role?('name')
Alternatively, you can see whether either would work for you:
node.roles.include?('name')
node.run_list?('role[name]')
# | |
# This is an example of a knife.rb configuration that uses yml and a | |
# simple env var (CHEF_ENV) to manage multiple hosted Chef environments. | |
# | |
# Example usage: | |
# export CHEF_ENV=evnironment_01 | |
# knife status | |
# | |
# Based on: http://blog.blankpad.net/2010/09/28/multiple-knife-environments---the-return/ | |
# |
Add-PSSnapin iControlSnapin;
Api docs https://devcentral.f5.com/wiki/iControl.APIReference.ashx
Authenticate to F5
if ( (Get-PSSnapin -Name iControlSnapin -ErrorAction SilentlyContinue) -eq $null ) {Add-PsSnapin iControlSnapin -ErrorAction Stop}
$F5Connected = ((Get-F5.iControl).initialized -and (Get-F5.iControl).ConnectionInfo.hostname -eq $LoadBalancer)
if ($F5Connected) {
Write-Verbose "F5 connection already initialized"
# MANAGED VIA GIT https://gist.github.com/spuder/11360474 | |
# CHANGES MAY BE OVERWRITTEN | |
# Import the bash_ps1, adds dotted lines after every command | |
if [ -f "$HOME/.bash_ps1" ]; then | |
. "$HOME/.bash_ps1" | |
fi | |
export CLICOLOR=1 |
ttps://github.com/puppetlabs/modulesync | |
https://github.com/petems/puppet-doc-lint | |
http://puppet-analytics.org | |
http://www.slideshare.net/petems/puppet-module-anti-patterns | |
forge.puppetlabs.com/puppetlabs/tomcat | |
http://tech.opentable.co.uk/blog/categories/beaker/ | |
https://github.com/liamjbennett/beaker/tree/bitvise_hacks | |
https://github.com/theforeman/kafo | |
https://github.com/puppet-community |
#!/bin/bash | |
#Usage: Execute the following command: | |
<<COMMENT1 | |
curl -L https://gist.github.com/spuder/11360474/raw/ | bash -x | |
COMMENT1 |
Working cookbook for dashing
https://github.com/benbria/dashing-chef
First you need to install RVM. This installs sitewide as root, which really is a bad idea unless no one else uses this machine.
sudo apt-get update; apt-get install curl -y
command curl -sSL https://rvm.io/mpapis.asc | gpg --import -
\curl -sSL https://get.rvm.io | sudo bash