Skip to content

Instantly share code, notes, and snippets.

@azrdev
azrdev / Moved!
Last active July 30, 2017 18:18
dump `rtl_433 -F json -U -G` output to InfluxDB
Newer versions are found at <https://github.com/azrdev/rtl433_influx>
@azrdev
azrdev / graphviz-preview-dot.desktop
Created May 8, 2018 09:12
open .dot files with graphviz preview from graphical file browser
[Desktop Entry]
Type=Application
Name=Preview with dot
Exec=/usr/bin/dot -Txlib %f
MimeType=text/vnd.graphviz
# store e.g. in ~/.local/share/applications/graphviz-preview-dot.desktop
@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
@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 / 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 / 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 / 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 / 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 / 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 / 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