This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
serverlogarchive.py ... 20200401 Dewey Hylton | |
enumerates over files in current directory. | |
if matches server.log.* attempts to create directory, | |
write compressed version in new directory with | |
serialized name, then remove original file. | |
""" | |
import os, datetime, gzip, shutil |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
#DEBUG=1 | |
decho () { | |
test -n "$DEBUG" && echo DEBUG: $@ | |
} | |
JQ=`which jq` | |
TR=`which tr` | |
COMM=`which comm` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
baseurl = "http://dblog.redacted/" | |
languageCode = "en-us" | |
title = "Dewbert's Blatherings" | |
author = "Dewey Hylton" | |
copyright = "Copyright (c) 2017, Dewey Hylton; all rights reserved." | |
canonifyurls = true | |
paginate = 3 | |
theme = "hugo-bootstrap" | |
#disqusShortname = "xxxxxx" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#set -vx | |
## 2016 / dewey hylton | |
## wrapper to create/modify fossil repositories | |
## handles with default documentation, users, etc. | |
DATADIR="./fossils" | |
DATADIR="./fossil" | |
READMEDIR="docs" | |
READMEMD="${READMEDIR}/README.md" |