Forward GnuPG agent from macOS to Linux
Run gpg once as your to create the directory structure
gpg --list-keys
mkdir -p /root/build | |
docker run --name centos --hostname centos -it -v /root/build:/root/build centos:7 /bin/bash | |
# inside centos container | |
yum install -y epel-release | |
yum install -y git jq wget cmake3 make gcc-c++ rpm-build rpmdevtools | |
yum install -y centos-release-scl | |
yum install -y devtoolset-8 | |
scl enable devtoolset-8 bash | |
cd /root/build |
#!/bin/bash | |
# As the "bufferbloat" folks have recently re-discovered and/or more widely | |
# publicized, congestion avoidance algorithms (such as those found in TCP) do | |
# a great job of allowing network endpoints to negotiate transfer rates that | |
# maximize a link's bandwidth usage without unduly penalizing any particular | |
# stream. This allows bulk transfer streams to use the maximum available | |
# bandwidth without affecting the latency of non-bulk (e.g. interactive) | |
# streams. |
#!/bin/bash | |
# | |
# Ansible role test shim. | |
# | |
# Usage: [OPTIONS] ./tests/test.sh | |
# - distro: a supported Docker distro version (default = "centos7") | |
# - playbook: a playbook in the tests directory (default = "test.yml") | |
# - role_dir: the directory where the role exists (default = $PWD) | |
# - cleanup: whether to remove the Docker container (default = true) | |
# - container_id: the --name to set for the container (default = timestamp) |
#!/usr/bin/env ansible-playbook | |
--- | |
- name: Test truthiness | |
hosts: localhost | |
gather_facts: False | |
vars: | |
truthy_vars: | |
# TRUE | |
- True | |
- 1 |
## Stop all OSDs | |
## Set OSD nodown | |
ceph osd set nodown | |
##Set OSD nobackfill | |
ceph osd set nobackfill | |
import collections | |
def dict_merge(dct, merge_dct): | |
""" Recursive dict merge. Inspired by :meth:``dict.update()``, instead of | |
updating only top-level keys, dict_merge recurses down into dicts nested | |
to an arbitrary depth, updating keys. The ``merge_dct`` is merged into | |
``dct``. | |
:param dct: dict onto which the merge is executed | |
:param merge_dct: dct merged into dct |
#!/bin/bash | |
fqdn=sso-demo.test.ibmcloud.com | |
user=ibmcloud | |
# Install the OpenID Connect apache module | |
# not necessary, but will resolve any config errors when installing the module | |
sudo apt-get install libjansson4 libhiredis0.10 libcurl3 -y | |
sudo apt-get install -f -y | |
# TODO: figure out why v1.8.4 and 1.8.5 won't install |