Forward GnuPG agent from macOS to Linux
Run gpg once as your to create the directory structure
gpg --list-keys
| #!/bin/bash | |
| # As the "bufferbloat" folks have recently re-discovered and/or more widely | |
| # publicized, congestion avoidance algorithms (such as those found in TCP) do | |
| # a great job of allowing network endpoints to negotiate transfer rates that | |
| # maximize a link's bandwidth usage without unduly penalizing any particular | |
| # stream. This allows bulk transfer streams to use the maximum available | |
| # bandwidth without affecting the latency of non-bulk (e.g. interactive) | |
| # streams. |
| { | |
| "key": "ctrl+v tab", | |
| "command": "type", | |
| "args": { "text": "\t" }, | |
| "when": "editorTextFocus" | |
| } |
| #!/usr/bin/env python | |
| # convert unicode filenames to pure ascii | |
| import os | |
| import sys | |
| import glob | |
| import unicodedata | |
| EXT = u'*.*' |
| import collections | |
| def dict_merge(dct, merge_dct): | |
| """ Recursive dict merge. Inspired by :meth:``dict.update()``, instead of | |
| updating only top-level keys, dict_merge recurses down into dicts nested | |
| to an arbitrary depth, updating keys. The ``merge_dct`` is merged into | |
| ``dct``. | |
| :param dct: dict onto which the merge is executed | |
| :param merge_dct: dct merged into dct |
| #!/bin/bash | |
| # Lists Linux block devices and for each one the controller | |
| # it is connected to. | |
| set -o pipefail | |
| for i in /sys/block/sd*; do | |
| # Find the path that contains the PCI ID of the controller. | |
| link=$(readlink $i) | |
| # Assume that the PCI ID of the controller is the path part | |
| # right before the /host... part. |