Skip to content

Instantly share code, notes, and snippets.

View rossigee's full-sized avatar

Ross Golder rossigee

View GitHub Profile
import os
import requests
def get_ipam_addresses(api_url, token, ca_cert):
headers = {
'Authorization': f'Token {token}',
'Content-Type': 'application/json'
}
# Fetch all IP addresses from NetBox
@rossigee
rossigee / main.go
Created November 13, 2021 01:56
OpenVPN AS XMLRPC client
package main
import (
"fmt"
"net"
"net/http"
"alexejk.io/go-xmlrpc"
)
@rossigee
rossigee / deploy-docker-and-compose.sh
Last active March 14, 2020 04:14
A quick curlable to deploy docker engine and docker-compose.
#!/bin/bash
export LC_ALL=C
export DEBIAN_FRONTEND=noninteractive
# Install Docker engine
echo "Installing docker engine..."
apt -q install --assume-yes \
apt-transport-https \
ca-certificates \
Verifying my Blockstack ID is secured with the address 16ukZMicPrZsMfXjqq3zq5LudRNK4vGexV https://explorer.blockstack.org/address/16ukZMicPrZsMfXjqq3zq5LudRNK4vGexV
[
{
"id": "d1f664fb.d8fb38",
"type": "tab",
"label": "Recent 50x proxy entries"
},
{
"id": "8b520419.7182e8",
"type": "inject",
"z": "d1f664fb.d8fb38",
@rossigee
rossigee / nodered-syslog-to-elasticsearch.json
Last active February 25, 2019 12:49
NodeRED flow to accept Nginx proxy access logs via syslog and post to ElasticSearch
[
{
"id": "1dffb66d.88ae0a",
"type": "function",
"z": "7be8537a.9bbd5c",
"name": "Reset dropped entry count",
"func": "flow.set(\"dropped_entries\", 0);\nreturn null;",
"outputs": "0",
"noerr": 0,
"x": 603.8958129882812,
#!/usr/bin/env python
"""
Nagios plugin to check status of HashiCorp Vault service seals
"""
from optparse import OptionParser
import sys
Verifying my Blockstack ID is secured with the address 1Er18pw9dESfEdsszsq2LVrshDYswArb1n https://explorer.blockstack.org/address/1Er18pw9dESfEdsszsq2LVrshDYswArb1n
#!/usr/bin/python2.7
import os, sys
import requests
import json
import time
projectId = os.environ['RANCHER_ENVIRONMENT']
serviceId = os.environ['RANCHER_SERVICE']
newImage = sys.argv[1]

Keybase proof

I hereby claim:

  • I am rossigee on github.
  • I am rossigee (https://keybase.io/rossigee) on keybase.
  • I have a public key ASAz7H_uid51DU7JDgSvttktpS-vN0wuorrhZno17QhWdwo

To claim this, I am signing this object: