Skip to content

Instantly share code, notes, and snippets.

View jupierce's full-sized avatar

Justin Pierce jupierce

  • Red Hat
  • Raleigh, NC
View GitHub Profile
@jupierce
jupierce / generate_directory_index_caddystyle.py
Created August 12, 2021 19:47 — forked from glowinthedark/generate_directory_index_caddystyle.py
Generate directory index (recurse subfolders with `-r` or `--recursive`). Use `-h` or `--help` for all options
#!/usr/bin/env python3
# ---
# Copyright 2020 glowinthedark
#
# 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,
#!/bin/bash
set -o xtrace
# CERT_FILE=./registry.apps.abutcher.com.crt KEY_FILE=./registry.apps.abutcher.com.key CA_FILE=./ca-chain.cert.pem ./regcerts.sh
DEST_CA="$(awk '{printf "%s\\n", $0}' /etc/origin/master/ca.crt)"
CERTIFICATE="$(awk '{printf "%s\\n", $0}' ${CERT_FILE})"
KEY="$(awk '{printf "%s\\n", $0}' ${KEY_FILE})"
CABUNDLE="$(awk '{printf "%s\\n", $0}' ${CA_FILE})"
@jupierce
jupierce / etcd.conf
Created August 1, 2017 14:01 — forked from sdodson/etcd.conf
rollback-procedure
# cat /etc/etcd/etcd.conf
ETCD_NAME=ose3-master.example.com
ETCD_LISTEN_PEER_URLS=https://192.168.122.159:2380
ETCD_DATA_DIR=/var/lib/etcd/
#ETCD_SNAPSHOT_COUNTER=10000
ETCD_HEARTBEAT_INTERVAL=500
ETCD_ELECTION_TIMEOUT=2500
ETCD_LISTEN_CLIENT_URLS=https://192.168.122.159:2379
#ETCD_MAX_SNAPSHOTS=5
#ETCD_MAX_WALS=5