Skip to content

Instantly share code, notes, and snippets.

View aunger's full-sized avatar

Russell Aunger aunger

  • Albeit Technology LLC
View GitHub Profile
@aunger
aunger / _gogsmigrate.py
Last active October 12, 2020 20:40
Gogs migration script
import json
import sys
from collections import namedtuple
from urllib import request, parse, error
HostConfig = namedtuple("HostConfig", ["endpoint", "token", "owner", "isorg"])
def headers(hostconfig):
/**
* Example usage.
*/
class Example {
public static void main(String[] args) {
String example = "foo/bar/baz";
Slice<String> s = new Slice<>(example.split("/"));
}