Skip to content

Instantly share code, notes, and snippets.

@jcollie
jcollie / test.py
Created July 31, 2020 16:25
cialug regexes
import sys
import re
line_re = re.compile(r'^((?:\d+m)?\d+s)\s+(\S+)\s+(\S+)\s+(\S+)\s+(.*?)(?=(?:\d+m)?\d+s|\Z)', re.MULTILINE | re.DOTALL)
data = sys.stdin.read()
start = 0
while start < len(data):
match = line_re.search(data, start)
@jcollie
jcollie / celery-broker-deployment.yaml
Last active July 28, 2021 12:05
Mayan EDMS deployment on Kubernetes
apiVersion: apps/v1
kind: Deployment
metadata:
name: celery-broker
namespace: mayan
spec:
replicas: 1
strategy:
type: Recreate
selector:
@jcollie
jcollie / rbd-map-rbd-svr03-pgsql.service
Last active March 14, 2019 19:57
systemd services to map RADOS block devices and mount a filesystem
[Unit]
Description=Map RBD disk svr03-pgsql
Requires=network-online.target
After=network-online.target
ConditionPathExists=!/dev/rbd/rbd/svr03-pgsql
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/rbd map --pool rbd svr03-pgsql
@jcollie
jcollie / build.sh
Created August 20, 2016 17:35
script for building fedora appc container
#!/bin/bash
#
# Download Fedora Docker base image from:
# https://getfedora.org/en/cloud/download/docker.html
#
set -e
version=0.1

Keybase proof

I hereby claim:

  • I am jcollie on github.
  • I am jcollie (https://keybase.io/jcollie) on keybase.
  • I have a public key whose fingerprint is A8CF 5B72 ABC3 9A17 3FEA 620E 6F86 035A 6D97 044E

To claim this, I am signing this object:

@jcollie
jcollie / commands
Created May 5, 2016 22:45
Ring.com integration with openHAB via IFTTT and my.openHAB
curl -X POST -H "Content-Type: text/plain" -d ON http://localhost:8080/rest/items/ring_front_door_motion
curl -X POST -H "Content-Type: text/plain" -d ON http://localhost:8080/rest/items/ring_front_door_ring
@jcollie
jcollie / master
Created August 28, 2013 20:29
Pull information out of SolarWinds and configure RANCID
/etc/rancid:
file.directory:
- user: rancid
- group: rancid
- mode: 0750
- require:
- pkg: rancid
- user: rancid
- group: rancid