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. |
# If you specify a variable for users to set outside your role | |
# DO NOT overwrite it later. | |
# | |
# Due to precedence rules the combined value here will | |
# never be set in some cases, e.g when using include_role | |
# | |
- name: Set netbox_config.SECRET_KEY to generated SECRET_KEY | |
set_fact: | |
netbox_config: "{{ netbox_config | combine({'SECRET_KEY': _netbox_secret_key_file['content'] | b64decode}) }}" |
#!/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) |
{ | |
"key": "ctrl+v tab", | |
"command": "type", | |
"args": { "text": "\t" }, | |
"when": "editorTextFocus" | |
} |
#!/usr/bin/env ansible-playbook | |
--- | |
- name: Test truthiness | |
hosts: localhost | |
gather_facts: False | |
vars: | |
truthy_vars: | |
# TRUE | |
- True | |
- 1 |
https://hackmd.io/qbggcyozQr6M1mfy3GcHIA# |
#!/usr/bin/env python | |
# convert unicode filenames to pure ascii | |
import os | |
import sys | |
import glob | |
import unicodedata | |
EXT = u'*.*' |
## Stop all OSDs | |
## Set OSD nodown | |
ceph osd set nodown | |
##Set OSD nobackfill | |
ceph osd set nobackfill | |