I hereby claim:
- I am chmduquesne on github.
- I am chmd (https://keybase.io/chmd) on keybase.
- I have a public key ASBRbau_IRSvogONp4F67GQX416mAQE-2yaAbEyZ_jznfQo
To claim this, I am signing this object:
| from typing import Self | |
| import random | |
| # An implementation of buzhash64 compatible with | |
| # https://github.com/chmduquesne/rollinghash/blob/master/buzhash64/buzhash64.go | |
| # List of hashes used by the default go implementation (seed=1) | |
| go_hashes = [ | |
| 0x4d65822107fcfd52, 0x78629a0f5f3f164f, 0x55104dc76695721d, 0x380704bb7b4d7c03, # noqa: E501 | |
| 0x365a858149c6e2d1, 0x57e9d1860d1d68d8, 0x0866cb397916001e, 0x1408d2ac22c4d294, # noqa: E501 |
| #!/bin/bash | |
| # | |
| # Ansible role test shim. | |
| # | |
| # Usage: [OPTIONS] ./tests/test.sh | |
| # - distro: a supported Docker distro version (default = "centos7") | |
| # - playbook: a playbook in the tests directory (default = "test.yml") | |
| # - role_dir: the directory where the role exists (default = $PWD) | |
| # - cleanup: whether to remove the Docker container (default = true) | |
| # - container_id: the --name to set for the container (default = timestamp) |
| ifdef GNUPGHOME | |
| CONF := ${GNUPGHOME}/gpg.conf | |
| else | |
| CONF := ~/.gnupg/gpg.conf | |
| endif | |
| DEFAULTKEY = $(shell gpg -K --with-colons | grep "^sec" | cut -d: -f5 | tail -n1) | |
| DEFAULTFPR = $(shell gpg -K --with-colons | grep "^fpr" | grep $(DEFAULTKEY) | rev | cut -d: -f2 | rev) | |
| export: |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| [ -n "$DTACH" ] && exit | |
| DTACHDIR=$HOME/.dtach | |
| [ ! -d "$DTACHDIR" ] && mkdir -p "$DTACHDIR" | |
| pick_session(){ | |
| [ -n "$(ls -1 $DTACHDIR)" ] && ls -1 $DTACHDIR | pick | |
| } |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import pymqi | |
| import pymqi.CMQC as CMQC | |
| import time | |
| import sys | |
| import os | |
| from os import getenv | |
| import signal | |
| import logging |
| #!env python | |
| """ | |
| Script to load irssi logs into a sqlite database. | |
| This script assumes the following irssi log config: | |
| autolog = "Yes"; | |
| autolog_path = "~/.irssi/logs/$tag/$0.log"; | |
| Launch it without argument. It will create or update the file irssi.db | |
| in the current directory. Each channel is loaded into a table, and each | |
| row within this table has 4 fields: |
| #!/usr/bin/env python | |
| #-*- coding: utf-8 -*- | |
| import os | |
| import time | |
| import random | |
| ncols = 26 | |
| nrows = 20 | |
| def cls(): |