This patches the ingress-nginx controller to use case sensitive path prefix matching.
My issue in the repo was ignored
''' | |
This snippet can be used for quickly copying a pandas dataframe | |
into postgres via unix pipe. I expect this to be faster than other | |
approaches since the writing can happen entirely in native code: | |
- os.pipe is facilitated by the kernel | |
- psycopg2 copy_from uses libpg | |
- np.savetxt uses libnumpy | |
Usage: |
This overrides public neo4j container on dockerhub to make it more convenient to override the operating database at runtime.
To that effect it:
neo4j-load
which can import dumps from network endpoints#!/bin/python3 | |
# python archs4-dl.py series-samples GSE53655 | python archs4-dl.py fetch > GSE53655.tsv | |
import re | |
import json | |
import click | |
import urllib.request, urllib.parse, urllib.error | |
from tqdm import tqdm |
#!/bin/bash | |
# | |
# A helper for using ssh keys & github for encrypting/decrypting messages intended for specific recipients. | |
# Installation (assumes ~/.local/sbin/ is in your PATH, put it wherever you want): | |
# 1. Download script | |
# 2. mv ssh-crypt.sh ~/.local/sbin/ssh-crypt | |
# 3. chmod +x ~/.local/sbin/ssh-crypt | |
# | |
# See `ssh-crypt help` for command information. |
#!/bin/bash | |
# `rclone serve -h` for other remotes / arguments | |
PROTOCOL="webdav" | |
ARGS="--vfs-cache-mode writes" | |
# we construct an inline combined upstream with all remotes using the remote name as the directory | |
rclone listremotes \ | |
| awk -F':' -v ARGS="${ARGS}" -v PROTOCOL="${PROTOCOL}" " | |
BEGIN { |
AKA ssh over ssl
AKA ssh over tls
AKA ssh over https
Some firewalls are annoying and don't just block ports that aren't 443, they also block packets that aren't TLS/SSL. Fortunately there is of course a way around this, and that is to wrap the ssh communication in TLS.
#!/bin/sh | |
if [ "$1" != "" ]; then | |
CURRENT_BRANCH=$1 | |
shift | |
else | |
CURRENT_BRANCH=$(git branch --show-current) | |
fi | |
git branch $@ | awk -v CURRENT_BRANCH=$CURRENT_BRANCH ' |
import json | |
import click | |
import logging | |
from pathlib import Path | |
from py2neo import Graph | |
@click.command(help=''' | |
Quick and dirty neo4j database dump when all else fails. The format is: | |
nodes.jsonl: { |
import re | |
import csv | |
import click | |
import pathlib | |
import requests | |
link_expr = re.compile(r'https?://[^\s\]\)\|\>\"\'\<\}`#]+') | |
@click.command(help=''' | |
Link-CK finds dead links recursively in text documents and tests them. |