Skip to content

Instantly share code, notes, and snippets.

View rm-you's full-sized avatar

Adam Harwell rm-you

  • Yahoo!
  • Bellingham, WA
View GitHub Profile

Keybase proof

I hereby claim:

  • I am rm-you on github.
  • I am rm_you (https://keybase.io/rm_you) on keybase.
  • I have a public key whose fingerprint is AC00 05CF EAF5 29F7 365C 3BF0 DF12 E3E3 0F79 A107

To claim this, I am signing this object:

@rm-you
rm-you / setup.sh
Last active June 11, 2021 18:47
Barbican Devstack init script
#!/bin/bash
# Set up the packages we need
apt-get update
apt-get install git vim -y
# Clone the devstack repo
git clone https://github.com/openstack-dev/devstack.git /tmp/devstack
cat <<EOF > /tmp/devstack/localrc
# Copyright (c) 2014 Rackspace, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@rm-you
rm-you / containers.py
Created August 28, 2014 23:56
A draft of an alternate formatting method for __str__() for containers
# Copyright (c) 2014 Rackspace, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@rm-you
rm-you / gist:3c77a0daf292c13235c2
Created August 29, 2014 00:12
GET Container result from python-barbicanclient
+----------------+-------------------------------------------------------------------------------------------+
| Field | Value |
+----------------+-------------------------------------------------------------------------------------------+
| Container href | http://localhost:9311/v1/containers/ead5bd35-fb3f-4798-ba84-210fa1231102 |
| Name | My Awesome Cert |
| Created | 2014-08-06 00:26:44.627255+00:00 |
| Status | ACTIVE |
| Type | certificate |
| Certificate | +---------------+-----------------------------------------------------------------------+ |
| | | Fiel
@rm-you
rm-you / devstack-setup.sh
Last active August 29, 2015 14:16
Devstack setup script for Neutron-LBaaS + Barbican + Octavia
#!/bin/bash
# Set up the packages we need
apt-get update
apt-get install libffi-dev libssl-dev git vim libxml2-dev libsqlite3-dev libxslt1-dev -y
# Clone the repos we need
git clone https://github.com/openstack/barbican.git /tmp/barbican
git clone https://github.com/openstack-dev/devstack.git /tmp/devstack
@rm-you
rm-you / new_barbican_devstack.sh
Last active September 4, 2015 20:09
Devstack Barbican (New)
#!/bin/bash
# Set up the packages we need
apt-get update
apt-get install git vim -y
# Clone the devstack repo
git clone https://github.com/openstack-dev/devstack.git /tmp/devstack
cat <<EOF > /tmp/devstack/localrc
@rm-you
rm-you / devstack-setup.sh
Last active August 29, 2015 14:17 — forked from fnaval/devstack-setup.sh
Devstack setup script for Neutron-LBaaS and Barbican (New)
#!/bin/bash
# Set up the packages we need
apt-get update
apt-get install git vim -y
# Clone the repos we need
git clone https://github.com/openstack-dev/devstack.git /tmp/devstack
cat <<EOF > /tmp/devstack/localrc
@staticmethod
def _actually_delete_cert(cert_ref):
"""Deletes the specified cert. Very dangerous. Do not recommend.
:param cert_ref: the UUID of the cert to delete
:raises Exception: if certificate deletion fails
"""
connection = BarbicanKeystoneAuth.get_barbican_client()
LOG.info(_LI(
2015-04-07 20:37:04.845 | + get_or_add_group_project_role 22364f193d39422b9ae6bbfeb4740834 5b025b2e2c014bec9b6097e5f223eb6f 839578796cb147628f04403147ef5a1f
2015-04-07 20:37:04.845 | ++ openstack role list --group 5b025b2e2c014bec9b6097e5f223eb6f --project 839578796cb147628f04403147ef5a1f --column ID --column Name
2015-04-07 20:37:04.846 | ++ grep ' 22364f193d39422b9ae6bbfeb4740834 '
2015-04-07 20:37:04.846 | ++ get_field 1
2015-04-07 20:37:04.846 | ++ local data field
2015-04-07 20:37:04.846 | ++ read data
2015-04-07 20:37:05.984 | usage: openstack role list [-h] [-f {csv,html,json,table,yaml}] [-c COLUMN]
2015-04-07 20:37:05.984 | [--max-width <integer>]
2015-04-07 20:37:05.984 | [--quote {all,minimal,none,nonnumeric}]
2015-04-07 20:37:05.984 | [--project <project>] [--user <user>]