Skip to content

Instantly share code, notes, and snippets.

👀
Bit-Shifting myself.

Ben bmhm

👀
Bit-Shifting myself.
Block or report user

Report or block bmhm

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@bmhm
bmhm / chunking.yml
Last active May 20, 2019
zchunk splitter proposal
View chunking.yml
yaml:
extensions:
- ".yaml"
- ".yml"
split:
type: string-before
separators:
- "\0-"
- "\0[a-zA-Z]"
min_chunk_size: 10240
@bmhm
bmhm / isorename.sh
Created Apr 28, 2018
Rename JPG image files to a standardized iso format
View isorename.sh
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
NOOP=${1:-}
COUNTER=0
if [ "$NOOP" == "-n" ]; then
echo "Simulation mode. -n given."
fi
@bmhm
bmhm / .netrc
Last active Oct 30, 2017 — forked from gbrks/btrfs-scrub
btrfs scrub: script and systemd timers to run weekly and send mails using gmail via curl + netrc
View .netrc
machine smtp.gmail.com
login user@gmail.com
password my-app-password
@bmhm
bmhm / Minecraft Log Lexer for Python Pygments
Created Oct 16, 2014
Use like this: 'zcat /opt/mcserver/bin/spigot/logs/2014-10-15-1.log.gz | tail -n 200 | pygmentize -l log' or just 'pygmentize /opt/mcserver/bin/spigot/logs/latest.log'.
View Minecraft Log Lexer for Python Pygments
from pygments.lexer import RegexLexer, bygroups
from pygments.token import *
__all__ = [ 'LogLexer' ]
class LogLexer(RegexLexer):
"""
Lexer for (minecraft) Log files.
"""
View one line check for certificate digest algorithm
CF=mktemp; openssl s_client -showcerts -connect host:port </dev/null > "$CF" 2>/dev/null; openssl x509 -in "$CF" -text -noout | grep "Signature Algorithm" | uniq; rm "$CF"
You can’t perform that action at this time.