Skip to content

Instantly share code, notes, and snippets.

View chellygel's full-sized avatar

Chelsea Winfree chellygel

View GitHub Profile
@kgriffs
kgriffs / shrug
Last active April 8, 2021 01:16
Shrug-o-matic: Save to /usr/local/bin and make executable
#/usr/bin/env bash
SHRUG="¯\_(ツ)_/¯"
if [ -t 1 ]
then
echo $SHRUG
else
# For piping to your clipboard (e.g., "shrug | pbcopy") or elsewhere
echo $SHRUG | tr -d '\n'
@jmvrbanac
jmvrbanac / setting_up_postgres_for_barbican.md
Last active August 29, 2015 14:15
Setting up a Postgres Docker container to run with Barbican
  1. Execute
sudo docker run --name postgres -p 5432:5432 -e POSTGRES_PASSWORD=CHANGEME -d postgres
  1. Execute psql -h localhost -U postgres

  2. Within the psql shell execute the following lines

CREATE USER barbican WITH PASSWORD 'ALLTHEPASS';
@NotSqrt
NotSqrt / settings_test_snippet.py
Last active May 1, 2022 01:34 — forked from nealtodd/settings_test_snippet.py
Another shot at this problem ..
class DisableMigrations(object):
def __contains__(self, item):
return True
def __getitem__(self, item):
return "notmigrations"
MIGRATION_MODULES = DisableMigrations()
@jmvrbanac
jmvrbanac / setup_dev_barbican_keystone_endpoint.sh
Last active August 29, 2015 14:08
Add the Barbican service user and endpoint to a dev keystone
#!/bin/bash
get_id () {
echo `$@ | awk '/ id / { print $4 }'`
}
export OS_SERVICE_TOKEN="ADMIN_TOKEN"
export OS_SERVICE_ENDPOINT="http://localhost:35357/v2.0"
SERVICE_ID=$(get_id keystone service-create --name=barbican --type="key-manager" --description="Key_Management_Service")