Make a directory to install CentOS 7.2.1511 in
[root@localhost ~]# mkdir /centos_chroot
Make a directory for the rpm database
[root@localhost ~]# mkdir -p /centos_chroot/var/lib/rpm
[root@localhost ~]# mkdir /centos_chroot
[root@localhost ~]# mkdir -p /centos_chroot/var/lib/rpm
#!/bin/bash -e | |
# Setup a Root CA in vault | |
# Generate and sign an Intermediate cert | |
# | |
# Requires: | |
# * A running vault server already initialzed and unsealed | |
# * Environment variable VAULT_TOKEN is set | |
# * vault cli (https://www.vaultproject.io) | |
# * httpie (https://github.com/jkbrzt/httpie) |
The following guide are steps that can be used to generate GPG keys on a YubiKey, use the gpg keys to sign github commits, and publish the public gpg key to Keybase.
Why is this a good idea?
mkdir vault_demo && cd vault_demo | |
wget https://releases.hashicorp.com/vault/0.5.2/vault_0.5.2_darwin_amd64.zip | |
unzip vault_0.5.2_darwin_amd64.zip | |
export PATH=$(pwd):$PATH | |
cat > vault.conf <<EOF | |
backend "file" { | |
path = "file_backend" | |
} | |
listener "tcp" { |
def ec2 | |
Fog::Compute.new(:provider => 'AWS', | |
:aws_secret_access_key => ENV['EC2_SECRET_KEY'], | |
:aws_access_key_id => ENV['EC2_ACCESS_KEY']) | |
end | |
def tenured? (instance) | |
instance.created_at && (instance.created_at < Chronic.parse('50 minutes ago')) | |
end |
➜ datadog berks -v | |
Berkshelf (1.3.1) | |
Author:: Jamie Winsor (<reset@riotgames.com>) | |
Author:: Josiah Kiehl (<jkiehl@riotgames.com>) | |
Author:: Michael Ivey (<michael.ivey@riotgames.com>) | |
Author:: Justin Campbell (<justin.campbell@riotgames.com>) | |
Copyright 2012 Riot Games |
➜ ~ git clone git://github.com/blueboxgroup/razor-vagrant-lab.git 2357 | |
Cloning into 'razor-vagrant-lab'... | |
remote: Counting objects: 257, done. | |
remote: Compressing objects: 100% (120/120), done. | |
remote: Total 257 (delta 137), reused 231 (delta 111) | |
Receiving objects: 100% (257/257), 36.79 KiB, done. | |
Resolving deltas: 100% (137/137), done. | |
➜ ~ cd razor-vagrant-lab 2359 | |
direnv: loading ~/razor-vagrant-lab/.envrc | |
➜ razor-vagrant-lab git:(master) VBoxManage dhcpserver remove --netname vboxnet0 2360 |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env ruby | |
require 'aws-sdk' | |
ec2 = Aws::EC2::Client.new(region: 'us-west-1') | |
volumes = ec2.describe_volumes.volumes | |
volume_sizes = {} | |
volumes.each do |vol| |
I hereby claim:
To claim this, I am signing this object: