Skip to content

Instantly share code, notes, and snippets.

View luginbash's full-sized avatar

Luginbash luginbash

View GitHub Profile
@Chaz6
Chaz6 / fetch-ipset-from-asn.bash
Last active May 13, 2022 07:46
Generate an ipset for a given autonomous system number
#!/bin/bash
usage()
{
echo "Usage: $0 [ASN]"
}
if [ $# -ne 1 ]; then
usage
exit 1
@lixin9311
lixin9311 / driver.go
Created May 12, 2022 09:23
Go generic datastore db driver
package dbdriver
import (
"context"
"errors"
"reflect"
"cloud.google.com/go/datastore"
)