Skip to content

Instantly share code, notes, and snippets.

Avatar

Ross Golder rossigee

View GitHub Profile
@rossigee
rossigee / nodered-syslog-to-elasticsearch.json
Last active Feb 25, 2019
NodeRED flow to accept Nginx proxy access logs via syslog and post to ElasticSearch
View nodered-syslog-to-elasticsearch.json
[
{
"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,
View nodered-elasticsearch-50x-check.json
[
{
"id": "d1f664fb.d8fb38",
"type": "tab",
"label": "Recent 50x proxy entries"
},
{
"id": "8b520419.7182e8",
"type": "inject",
"z": "d1f664fb.d8fb38",
View gist:6efe978b482b2062ed2bd3f3ea6a4949
Verifying my Blockstack ID is secured with the address 16ukZMicPrZsMfXjqq3zq5LudRNK4vGexV https://explorer.blockstack.org/address/16ukZMicPrZsMfXjqq3zq5LudRNK4vGexV
@rossigee
rossigee / deploy-docker-and-compose.sh
Last active Mar 14, 2020
A quick curlable to deploy docker engine and docker-compose.
View deploy-docker-and-compose.sh
#!/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 \
@rossigee
rossigee / xpub_checker.py
Created Jul 10, 2017
Python to fetch Bitcoin addresses/transactions for given XPUB
View xpub_checker.py
#!/usr/bin/python
import pycoin.key
import sys
import requests
import json
import datetime
def getbalance(address):
response = requests.get("https://bitaps.com/api/address/%s" % address)
@rossigee
rossigee / main.go
Created Nov 13, 2021
OpenVPN AS XMLRPC client
View main.go
package main
import (
"fmt"
"net"
"net/http"
"alexejk.io/go-xmlrpc"
)