Yubikey, Smart Cards, OpenSC and GnuPG are pain in the ass to get working. Those snippets here sould help alleviate pain.
To reset and disable not used modes on Yubikey you need the ykman
program
You can install it using those commands
#!/usr/bin/env bash | |
set -Eeuo pipefail | |
trap cleanup SIGINT SIGTERM ERR EXIT | |
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) | |
usage() { | |
cat <<EOF | |
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-d] [--no-color] [-f] -p param_value arg1 [arg2...] |
Yubikey, Smart Cards, OpenSC and GnuPG are pain in the ass to get working. Those snippets here sould help alleviate pain.
To reset and disable not used modes on Yubikey you need the ykman
program
You can install it using those commands
#!/bin/bash | |
############################################################################## | |
# Find any dirty git projects in the current working directory | |
# and recursively beneath this directory | |
# copied with thanks to Matthew from | |
# https://github.com/matthewmccullough/scripts/blob/master/finddirtygit | |
# | |
# USAGE: | |
# finddirtygit |
""" | |
Supports flushing metrics to graphite | |
""" | |
import sys | |
import socket | |
import logging | |
class GraphiteStore(object): | |
def __init__(self, host="localhost", port=2003, prefix="statsite", attempts=3, interval=10): |