Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@staylorx
staylorx / data_flow_tutorial_ex1.sh
Created September 3, 2024 20:46 — forked from cartershanklin/data_flow_tutorial_ex1.sh
OCI Data Flow Tutorial Example 1 using the OCI CLI
#!/usr/bin/env bash
# Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
#
# This script executes Example 1 of the Data Flow Tutorial
# https://docs.cloud.oracle.com/en-us/iaas/data-flow/data-flow-tutorial/tutorial/dfs_tut_etl_java.htm#etl_with_java
#
# For more help with specific Data Flow commands, see:
# oci data-flow -h
#
@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"