Skip to content

Instantly share code, notes, and snippets.

View sw00's full-sized avatar

Sett sw00

View GitHub Profile
@sw00
sw00 / CloudCAFE Instructions
Last active December 24, 2015 09:49
Getting started with CloudCAFE, a testing framework for Openstack
You will first need to clone three repositories from github:
1. OpenCAFE: this is core driver for writing and running tests. It contains a lot of base classes and the `cafe-runner` script used to collect and run cloudcafe tests.
`git clone https://github.com/stackforge/opencafe.git`
2. CloudCAFE: the framework built on top of OpenCAFE. This consists of the API used to write tests and offers easy objects to access Openstack services.
`git clone https://github.com/stackforge/cloudcafe.git`
3. CloudRoast: the repository where the tests for Openstack are implemented. These make use of CloudCAFE as a framework and abstracts enough detail so you can focus on writing tests instead of Openstack internals.
`git clone https://github.com/stackforage/cloudroast.git`
@sw00
sw00 / Gerrit Patches and Dependency
Last active April 9, 2017 20:35
Controlling Dependency in new Gerrit Patches
## Checking out unmerged patches
So you've decided to work on a new patch that depends on another that's still under review. There's no need to wait for it to be merged. Gerrit allows you to check out any patch easily
[Imgur](http://i.imgur.com/7xqC5JH.png)
On each patch's page, there's a text-box with the commands to *checkout*, *pull*, *cherry-pick* and *patch* each particular patchset. You want to work on top of an existing patch so go ahead and check it out.
## Housekeeping
---
# ^^^ YAML documents must begin with the document separator "---"
#
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
#
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.
@sw00
sw00 / ansible.inventory_params
Created May 28, 2014 13:39
List of ansible inventory behaviour parameters.
ansible_ssh_host
The name of the host to connect to, if different from the alias you wish to give to it.
ansible_ssh_port
The ssh port number, if not 22
ansible_ssh_user
The default ssh user name to use.
ansible_ssh_pass
The ssh password to use (this is insecure, we strongly recommend using --ask-pass or SSH keys)
ansible_sudo_pass
The sudo password to use (this is insecure, we strongly recommend using --ask-sudo-pass)
"ansible_all_ipv4_addresses": [
"REDACTED IP ADDRESS"
],
"ansible_all_ipv6_addresses": [
"REDACTED IPV6 ADDRESS"
],
"ansible_architecture": "x86_64",
"ansible_bios_date": "09/20/2012",
"ansible_bios_version": "6.00",
"ansible_cmdline": {
@sw00
sw00 / chris-lea_nodejs_apt_key_problems
Created July 21, 2014 10:40
Problem provisioning nodejs from Chris Lea's PPA due to key error (2014-07-21)
vagrant@precise64:~$ apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 136221EE520DDFAF0A905689B9316A7BC7917B12
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /tmp/tmp.tWGG1sGWk1 --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 136221EE520DDFAF0A905689B9316A7BC7917B12
gpg: requesting key C7917B12 from hkp server keyserver.ubuntu.com
gpg: no writable keyring found: eof
gpg: error reading `[stream]': general error
gpg: Total number processed: 0
@sw00
sw00 / keybase.md
Last active November 15, 2015 21:16
Proof of authentication for keybase.io

Keybase proof

I hereby claim:

  • I am sw00 on github.
  • I am sw00 (https://keybase.io/sw00) on keybase.
  • I have a public key whose fingerprint is 92DF BE62 EBBD 1861 9CC1 B9ED F30F 2F27 F014 F286

To claim this, I am signing this object:

---
# ^^^ YAML documents must begin with the document separator "---"
#
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
#
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.
Verifying that +sw00 is my blockchain ID. https://onename.com/sw00
@sw00
sw00 / .macos
Created August 2, 2017 17:47
Reference gist of MacOS defaults copied directly from https://github.com/mathiasbynens/dotfiles/blob/master/.macos
#!/usr/bin/env bash
# ~/.macos — https://mths.be/macos
# Close any open System Preferences panes, to prevent them from overriding
# settings we’re about to change
osascript -e 'tell application "System Preferences" to quit'
# Ask for the administrator password upfront
sudo -v