Skip to content

Instantly share code, notes, and snippets.

@staylorx
staylorx / gist:104766062f7114c6979257b7d27ee26b
Created February 17, 2021 19:39
Starting up graylog v4 using podman
sudo podman pod create --name graylog-pod \
-p 9000:9000 -p 12201:12201 -p 1514:1514
sudo podman run \
-d --restart=always --pod=graylog-pod \
--name=mongo mongo:4.2
sudo podman run \
-d --restart=always --pod=graylog-pod \
-e "http.host=0.0.0.0" \
-e "discovery.type=single-node" \
@staylorx
staylorx / prefect-pod.sh
Created September 28, 2020 20:24
Podman script example to stand up Prefect server
sudo podman pod create --name prefect-pod \
-p 8080:8080 -p 5432:5432 -p 3000:3000 -p 4201:4201 -p 4200:4200
#-v /var/postgres/data:/var/lib/postgresql/data \
sudo podman run \
-d --restart=always --pod=prefect-pod \
-e POSTGRES_PASSWORD="${POSTGRES_PASSWORD:-prefect_super_secret}" \
--name=postgres postgres:11 postgres -c max_connections=150
sudo podman run \
/*
* Aeon HEM Gen5 Aeotec Model ZW095-A
* https://products.z-wavealliance.org/products/1289
*
* Copyright 2020 Ben Rimmasch
*
*
* 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:
*
@staylorx
staylorx / gist:f77a2ae366cfa81449c7c463fe6ba662
Created April 18, 2020 12:04
CentOS8 local yum.repos (turn off gpg check in yum.conf)
[BaseOS]
name=CentOS-$releasever - Base
baseurl=http://192.168.1.11:8088/repository/yum-centos-proxy/$releasever/BaseOS/$basearch/os/
enabled=1
[extras]
name=CentOS-$releasever - Extras
baseurl=http://192.168.1.11:8088/repository/yum-centos-proxy/$releasever/extras/$basearch/os/
enabled=1
@staylorx
staylorx / local-repos.repo
Last active April 10, 2020 22:55
Helpful local Nexus Yum repo
[base]
name=CentOS-$releasever - Base
baseurl=http://192.168.1.11:8081/repository/yum-centos/$releasever/os/$basearch/
enabled=1
gpgcheck=0
priority=1
[updates]
name=CentOS-$releasever - Updates
baseurl=http://192.168.1.11:8081/repository/yum-centos/$releasever/updates/$basearch/
@staylorx
staylorx / gist:070881b064ad1c8e9971697b9895f65f
Created March 25, 2020 14:21
Add to .bashrc to manage SSH private key
if [ ! -S ~/.ssh/ssh_auth_sock ]; then
eval `ssh-agent`
ln -sf "$SSH_AUTH_SOCK" ~/.ssh/ssh_auth_sock
fi
export SSH_AUTH_SOCK=~/.ssh/ssh_auth_sock
ssh-add -l > /dev/null || ssh-add
/*
* Aeon HEM Gen5(zwave plus)
*
* Copyright 2016 Dillon A. Miller
*
* v0.8 of Aeon HEM Gen5(zwave plus) code, released 04/15/2016 for Aeotec Model zw095-a
* This Gen5 device handler is not backward compatible with the Aeon V1 or V2 device. If your model number is not zw095-a, don't use it.
*
* 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:
@staylorx
staylorx / gist:a3b47de948272344c441fd0d64922f3f
Created December 13, 2017 18:46
Example docker image builder with Clair test for jenkins
#!/usr/bin/env groovy
//Dockerfile including Clair check.
//Steve.Taylor@cu.edu DEC-2017
node('docker') {
def docker_registry="nexus.mydomain.err:5000"
def clair_endpoint="https://nexus.mydomain.err:6060"
def image_name="uis-cam/endpoint-heartbeat"
@staylorx
staylorx / collectd.conf.rh5-32
Created August 22, 2016 14:56 — forked from ring-the-sysop/collectd.conf.rh5-32
A collectd spec file for 32 and 64-bit RHEL 5 and 64-bit RHEL 6.
#
# Config file for collectd(1).
# Please read collectd.conf(5) for a list of options.
# http://collectd.org/
#
##############################################################################
# Global #
#----------------------------------------------------------------------------#
# Global settings for the daemon. #
@staylorx
staylorx / gist:dbc137b7d020da2242dfacfe0c9a59c4
Last active August 22, 2016 14:53 — forked from tnolet/gist:7361441
Install collectd 5.4 on Centos 6.x and make it spit out cool metrics. Copied from http://linuxdrops.com/install-collectd-statistics-collecter-on-centos-rhel-ubuntu-debian/ and tweaked for your and my pleasure. For all other cool options, check the provided link.
#!/bin/bash
# install collectd with curl_json plugin for jolokia on RHEL6
# Perform installation as root
# Install prereqs
yum -y install libcurl libcurl-devel rrdtool rrdtool-devel rrdtool-prel libgcrypt-devel gcc make gcc-c++ yajl yajl-devel
# Get Collectd, untar it, make it and install