Skip to content

Instantly share code, notes, and snippets.

Avatar
🌈
statuses now?

Shaun Mouton moutons

🌈
statuses now?
View GitHub Profile
@moutons
moutons / secret.rb
Created Jan 3, 2020 — forked from jjasghar/secret.rb
Example Chef extension to extract secrets from HashiCorp's Vault
View secret.rb
# Please see the following blog post for more information:
#
# https://www.hashicorp.com/blog/using-hashicorp-vault-with-chef.html
#
resource_name :vault_secret
property :path, String, name_property: true
property :destination, String
@moutons
moutons / README.md
Created Sep 16, 2016 — forked from lusis/README.md
rundeck slack hubot integration
View README.md

This is a pretty opinionated solution that we use internally. It's strictly designed to post to slack via the API and it uses our notion of wrapping EVERYTHING with a role. All of our plugins automatically use brain storage as well. To be able to execute anything with hubot, you have to be a rundeck_admin role user.

You should be able to tease out the rundeck API stuff specifically.

It depends on a common format for your job defs in rundeck. We have two types of jobs in rundeck that we use via this plugin:

  • ad-hoc
  • predefined

ALL of our jobs have a common parameter called slack_channel. Hubot will automatically set this for you based on where/who it was talking to.

View 📶🔤📧.md

🎦🎦🎦🎦🎦🎦🎦👔🔡🔘💈🎳🐘🎏🐘👀🌉📹🍆🌷🌷🌷🚬🍷🍆🌷🚬💣🍷🚬🌷🌷🌷🎳💈👀🐰🐰🐰🔘🔘👟👀🐰🐰🌉📤📤🏢🏢🏢🏢🏢🏢🏢🏢🏢🏢🏢🏢🏢🏢🎡🎡🎡🏢🎡🎡🎡
🎦👔🎦👔👔🎦🎦🎦💨💈🎳🍆🌷🌷🎏📹💈🐘🌷🌷🌷🌷🌷🌷🌷🌷🍷💣💣💣🍷🌷🍆🍡💈🐰💈💈💈🐰🐰💈💈📹📹💈🔘📧🎦🏢🏢🏢🏢🏢🏢🏢🎡🎡🏢🏢🏢🏢🏢🏢🏢🏢🎡🎡🏢
🎦🎦🎦👔👔👔👔🎦💨💈🐘🌷🌷🌷🍆🐘🐘🐘🍆🌷🚬🌷🌷🌷🌷🌷🍷🍷🍷🍷🌷🌷🐘💻💈💈💈💈💈💈💈💈💼🎌🍆🎳🐰📧🎦🎦🎦🎦🏢🎦🎦🏢🏢🎡🏢🏢🏢🏢🏢🏢🏢🏢🏢🏢🏢🏢
🎦🎦🎦🎦🎦🎦👔👔💨💈🎌🍆🍆🌷🍆🐘🐘🌷🍷🍷💣🍷🌷🌷🍷🌷🌷🍆🎌🍆🍆🌷🎳💈🐰🐰💈💈💈💈💈💼🍡🍆🌷🍆💈📧🎦🎦🎦👔🎦🎦🎦👔👔👔🏢🏢🏢🏢🏢🏢🏢🏢🏢🏢🏢🎦
👔🎦🎦🎦🎦🎦🎦🎦💨🌉🍡🍆🌷🌷💣🍆🌷💣💣💣💣💣🚬🌷🚬🌷🎌🎌🍡🎌🎌🐘🍡💈👟💈🚓🚓💼🔮💈🚓🎌🍆🌷🍆🐰📧🎦👔🎦👔👔🎦👔👔👔👔👔🎦👔👔🏢🎦👔👔🎦🎦👔🎦
🎦🎦🎦🎦🎦🎦🎦🎦🔡🔲🐘🌷🌷🌷💣🍆🌷💣🎣🔻🔻🔻💣🌷🌷🌷🎌🎌🍡🎳🎌🐘🍡💈💈🚓🍆🍆🎌🔮👟💼🎌🍷🌷🍡🐰📧👔🎦👔👔👔👔👔👔👔👔👔🎦👔👔👔👔👔👔👔🎦👔🎦
🎦🎦🎦🎦🎦🎦🎦🎦💨💈🍆🌷🌷🚬🌷🌷💣💣🔻🎓🔻🔻🔻🔻🎓🔻🍷🍆🎌🐘🍆🎏🐘🍡🍡🍆🍆🍆🍆🐰📤👟🚓🍆🎌💈📱🔣👔👔👔👔🎦👔👔👔👔👔👔👔👔👔👔👔👔👔👔👔👔👔
🎦🎦🎦💨🔮🍆🌷🌷🌷🌷🌷💣💣🔨📍🔻🔻🍷💣🔻💣💣💣🍷🌷🍷💣🍷🌷🌷💣🍷🍷🎌📤🔤📧📤🐰📱📤📧🎦🎦👔👔🎦👔👔🎦🎦👔👔👔👔👔👔👔👔👔👔👔👔👔
📶📶📶💎📹🍆🌷🌷🌷🌷🌷💣🔻📍📍🎓🔻🍷💣🍆🎌💣💣💣💣💣💣💣💣🔻🔻💣🍷🍡📤🕕📧📧📧📧💨💨💨📧🎦🎦🎦🎦🎦🎦👔👔👔👔👔👔👔👔👔👔👔👔👔
📶📶📶📶📶📶💨💈🐘🐘🍆🍆🌷💣🔻🎓📍📍🎓🔻💣🍷🌷🍷🚏🎣🔻🔻💣🔻🔻🔻🔻🔻🔻🍷💈📧🔢🔣🔡📧👕💨🎦🎦🎦🎦🎦🎦🎦🎦🎦👔👔👔👔👔🎦👔👔👔

@moutons
moutons / washing-the-dishes.md
Last active Mar 11, 2016
An excerpt from Thich Nhat Hanh's [The Miracle of Mindfulness: An Introduction to the Practice of Meditation](http://www.amazon.com/The-Miracle-Mindfulness-Introduction-Meditation/dp/0807012394)
View washing-the-dishes.md

Washing the dishes to wash the dishes

by Thich Nhat Hanh

Thirty years ago, when I was still a novice at Tu Hieu Pagoda, washing the dishes was hardly a pleasant task. During the Season of Retreat when all the monks returned to the monastery, two novices had to do all the cooking and wash the dishes for sometimes well over one hundred monks. There was no soap. We had only ashes, rice husks, and coconut husks, and that was all. Cleaning such a high stack of bowls was a chore, especially during the winter when the water was freezing cold. Then you had to heat up a big pot of water before you could do any scrubbing. Nowadays one stands in a kitchen equipped with liquid soap, special scrubpads, and even running hot water which makes it all the more agreeable. It is easier to enjoy washing the dishes now. Anyone can wash them in a hurry, then sit down and enjoy a cup of tea afterwards. I can see a machine for washing clothes, although I wash my own things out by hand, but a dishwashing machine is going just a li

View keybase.md

Keybase proof

I hereby claim:

  • I am moutons on github.
  • I am moutons (https://keybase.io/moutons) on keybase.
  • I have a public key whose fingerprint is DF49 668D C423 BAE8 65B4 A530 E0CE 436B 0242 4956

To claim this, I am signing this object:

@moutons
moutons / google-chrome.repo
Last active Aug 29, 2015
/etc/yum.repos.d/google-chrome.repo as installed by https://tools.google.com/chrome/browser/desktop/index.html on F21 x86_64
View google-chrome.repo
[google-chrome]
name=google-chrome
baseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64
enabled=1
gpgcheck=1
@moutons
moutons / Vagrantfile
Created Jan 13, 2015
example Vagrantfile
View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "chef/ubuntu-14.04"
config.vm.network "public_network"
config.vm.provider "virtualbox" do |vb|
vb.memory = "2048"
end
config.vm.provision "shell", inline: <<-SHELL
sudo apt-get update
View beakerenv
moutons@localhost:~/git/beakerenv$ beaker --version
wWWWw
|o o|
| O | 1.20.1!
|(")|
/ \X/ \
| V |
| | |
Beaker completed successfully, thanks.
moutons@localhost:~/git/beakerenv$ gem list
@moutons
moutons / google-chrome.repo
Created Apr 14, 2014
google-chrome.repo for Fedora 20 x86_64
View google-chrome.repo
[google-chrome]
name=google-chrome
baseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64
enabled=1
gpgcheck=1
@moutons
moutons / centos6base.ks.cfg
Created Oct 1, 2012
kickstart for CentOS 6
View centos6base.ks.cfg
install
text
skipx
url --url http://example.com/centos/6/os/x86_64/
lang en_US.UTF-8
keyboard us
reboot
network --onboot yes --device eth0 --bootproto dhcp --noipv6
rootpw changeme
selinux --disabled
You can’t perform that action at this time.