Skip to content

Instantly share code, notes, and snippets.

View cmachler's full-sized avatar

Chris Machler cmachler

View GitHub Profile
@cmachler
cmachler / ivao_electrical.py
Last active September 25, 2021 18:37
IVAO X-CSL MSFS Electrical Workaround
##### USE AT OWN RISK #####
import glob, os, configparser, shutil
##### CHANGE TO PATH WHERE "ivao_x-csl" IS INSTALLED #####
path = "C:\\MSFS_Addons\\vPilot\\ivao_x-csl\\SimObjects\\Airplanes\\"
p = configparser.SafeConfigParser()
"spec": {
"containers": [
{
"name": "db",
"image": "evergreenitco/corp_website_example_mariadb:1.0.2",
"volumeMounts": [
{
"mountPath": "/var/lib/mysql",
"name": "dbpd"
}
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: db-nfs-pvc
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 3Gi
kind: PersistentVolume
apiVersion: v1
metadata:
name: db-nfs-pv
labels:
type: local
spec:
capacity:
storage: 10Gi
accessModes:
#!/bin/bash
set -eo pipefail
export REDIS=$REDIS_HOST:$REDIS_PORT
echo "[nginx] booting container. REDIS: $REDIS."
# Try to make initial configuration every 5 seconds until successful
until confd -onetime -backend redis -node $REDIS -config-file /etc/confd/conf.d/counter-nginx.toml; do
user nginx;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
[template]
prefix = "/counter"
src = "nginx.tmpl"
dest = "/etc/nginx/nginx.conf"
owner = "nginx"
mode = "0644"
keys = [
"/subdomain",
"/domain",
]
@cmachler
cmachler / coreos-efs-cloud-config
Last active August 29, 2016 22:14 — forked from kgorskowski/coreos-efs-cloud-config
coreos cloud-config file for dynamically mount aws efs in the right availability zone
#cloud-config
coreos:
units:
- name: rpc-statd.service
command: start
enable: true
- name: mnt-efs.mount
content: |
[Mount]