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. |
# If you specify a variable for users to set outside your role | |
# DO NOT overwrite it later. | |
# | |
# Due to precedence rules the combined value here will | |
# never be set in some cases, e.g when using include_role | |
# | |
- name: Set netbox_config.SECRET_KEY to generated SECRET_KEY | |
set_fact: | |
netbox_config: "{{ netbox_config | combine({'SECRET_KEY': _netbox_secret_key_file['content'] | b64decode}) }}" |
{ | |
"key": "ctrl+v tab", | |
"command": "type", | |
"args": { "text": "\t" }, | |
"when": "editorTextFocus" | |
} |
https://hackmd.io/qbggcyozQr6M1mfy3GcHIA# |
#!/usr/bin/env python | |
# convert unicode filenames to pure ascii | |
import os | |
import sys | |
import glob | |
import unicodedata | |
EXT = u'*.*' |
def format_list(list_, pattern): | |
return [pattern % s for s in list_] | |
class FilterModule(object): | |
def filters(self): | |
return { | |
'format_list': format_list, | |
} |
--- | |
- name: test | |
hosts: localhost | |
connection: local | |
gather_facts: False | |
tasks: | |
# Test each key in a hash for existence, works fine ... I'll accept doing this! | |
- name: do something based on the existence of nested dict key nested.config.hash.key | |
debug: msg="{{ nested.config.hash.key }}" |