Skip to content

Instantly share code, notes, and snippets.

@azrdev
azrdev / 00-hosts.yml
Created October 31, 2022 12:44
ansible-vault used in dynamic inventory
all:
children:
ungrouped:
hosts:
test1:
# could use !vault here, but not when the hosts/groups/vars don't come from this file, but from a dynamic inventory plugin/script, e.g. `compose:` in `vmware_vm_inventory`
asp: |
$ANSIBLE_VAULT;1.1;AES256
36353062646365316465383532633931333862393931313662653362306166623065616161306138
3133323130306533663965626261636633353534343862300a363165323836613031633066626465
@azrdev
azrdev / out.log
Created May 12, 2022 08:37
borg create --stats --verbose --show-rc --compression auto,zstd,9
Creating archive at "ssh://remote/~/borg02::prefix.{utcnow}"
[817B blob data]
[16.2K blob data]
Archive name: prefix.2022-05-12T04:00:01
Archive fingerprint: ac23dd450dc0965216daec82f8527fe7e8de95f7f66b22ebf372e0c95b436e30
Time (start): Thu, 2022-05-12 06:00:02
Time (end): Thu, 2022-05-12 06:00:48
Duration: 45.85 seconds
Number of files: 162531
Utilization of max. archive size: 0%
@azrdev
azrdev / ublock-filters.txt
Created February 23, 2022 12:44
heiseplus-teaser-ublock
! 2021-01 filter, since 2022-02 only for 3-column teaser insets
heise.de##article.a-article-teaser:has(.a-article-meta__heiseplus-logo)
! 2022-02 filter for heiseplus teasers in newsticker
heise.de##article:has(svg > title:contains(heise_plus))
! 2022-02 unused by now?
heise.de##article.a-article-teaser--sponsored
@azrdev
azrdev / networkmanager.conf
Created October 16, 2020 08:31
networkmanager fritz!box
# /etc/NetworkManager/system-connections/'VPN Fritz!Box'
[connection]
id=VPN Fritz!Box
uuid=...
type=vpn
permissions=user:azrdev:;
[vpn]
IKE DH Group=dh2
IPSec ID=azrdev
@azrdev
azrdev / avinfo
Last active June 4, 2020 13:23
bluetooth headset microphone profile unavailable
$ sudo avinfo 88:D0:39:GG:GG:GG
Connecting ...
Stream End-Point #1: Audio Sink
Media Codec: SBC
Channel Modes: Mono DualChannel Stereo JointStereo
Frequencies: 44.1Khz 48Khz
Subbands: 4 8
Blocks: 4 8 12 16
Bitpool Range: 2-52
Stream End-Point #3: Audio Sink
@azrdev
azrdev / client.conf
Created March 22, 2020 15:06
pulseaudio fake system mode (without --system)
# /etc/pulse/client.conf
default-server = unix:/tmp/pulse-socket
@azrdev
azrdev / role_tasks_main.yml
Created February 26, 2020 13:44
ansible/jinja: transform dict values
---
- name: "define fact user_homes as dict(user name => user home directory)"
when: user_homes is undefined
block:
- name: getent
getent:
database: passwd
split: ":"
- name: set fact
@azrdev
azrdev / tinc-pre.md
Created October 19, 2019 12:33
build tinc-1.1pre .deb package on raspbian

Follow https://wiki.debian.org/SimpleBackportCreation for https://packages.debian.org/experimental/tinc (which is currently 1.1pre17)

sudo apt-get install packaging-dev debian-keyring devscripts equivs

Don't add experimental to your sources.list, its gpg keys are not in raspbian. Instead, get the source package (.dsc and tinc source code) manually: On https://packages.debian.org/experimental/tinc look for the "source package" link in the box on the right side; it is currently labeled [tinc_1.1~pre17-1.1.dsc]. Then use that link to get the .dsc and the source code, and continue with the debian backport guide:

dget http://deb.debian.org/debian/pool/main/t/tinc/tinc_1.1~pre17-1.1.dsc
@azrdev
azrdev / ledger.xml
Created April 4, 2019 16:41
kde syntax highlighting for ledger files
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd"
[
<!ENTITY more "(_\d+)*">
<!ENTITY int "[+-]?(0|[1-9]\d*)&more;">
<!ENTITY frac "\.\d+&more;">
<!ENTITY exp "[eE][+-]?\d+&more;">
<!ENTITY offset "[+-]\d\d:\d\d">
<!ENTITY time "\d\d:\d\d:\d\d(\.\d+)?(&offset;|Z)?">
@azrdev
azrdev / # gnutls - 2018-06-29_21-45-51.txt
Last active June 29, 2018 20:46
gnutls on 2.6.32-696.18.7.el6.x86_64 - Homebrew build logs
Homebrew build logs for gnutls on 2.6.32-696.18.7.el6.x86_64
Build date: 2018-06-29 21:45:51