Skip to content

Instantly share code, notes, and snippets.

View clairmont32's full-sized avatar

Matthew Clairmont clairmont32

View GitHub Profile
@clairmont32
clairmont32 / nginx-proxy-docker-compose.yaml
Last active February 15, 2021 20:15
Nginx Proxy with Multiple Web Services
version: "3.9"
services:
nginx-proxy:
image: jwilder/nginx-proxy
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
@clairmont32
clairmont32 / conFileReader.go
Created December 12, 2020 19:38
Concurrent File Reader
// walk a given dir and concurrently read all `go` files found.
package main
import (
"fmt"
"io/ioutil"
"os"
"path/filepath"
"strings"
@clairmont32
clairmont32 / eve-incursions-gist.go
Created October 9, 2020 23:50
Quick Gist to GET Incursions in Eve
package main
import (
"fmt"
"io/ioutil"
"net/http"
)
func main() {
req, getErr := http.Get("https://esi.evetech.net/latest/incursions")
@clairmont32
clairmont32 / dnsResolver.py
Last active March 19, 2019 03:11
Improvement on https://gist.github.com/Azlirn/3fc0e72cbb85d24e2b6139791e59784b for efficiency and migrating away from Python 2.X
import re
import socket
import ipaddress
# gather range from user
cidrNetwork = str(input('Enter a CIDR range to resolve:\n'))
# exit if input range does not match a (basic) valid IP/notation format
while True:
if not re.fullmatch('^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/\d{1,}', cidrNetwork):