Skip to content

Instantly share code, notes, and snippets.

@beddari
beddari / OIDC.jpg
Created June 10, 2025 10:52 — forked from arax/OIDC.jpg
OpenStack with OpenID Connect and OAuth 2.0
OIDC.jpg
@beddari
beddari / OIDC.jpg
Created June 10, 2025 10:52 — forked from samsu/OIDC.jpg
OpenStack with OpenID Connect and OAuth 2.0
OIDC.jpg
@beddari
beddari / GNUPG_agent_forwarding.md
Created September 27, 2021 11:22 — forked from TimJDFletcher/GNUPG_agent_forwarding.md
GnuPG agent forwarding

Forward GnuPG agent from macOS to Linux

On the remote machine

Run gpg once as your to create the directory structure

gpg --list-keys

For headless systemd based hosts

@beddari
beddari / hfsc-shape.sh
Created October 7, 2020 11:06 — forked from eqhmcow/hfsc-shape.sh
HFSC - linux traffic shaping's best kept secret
#!/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.
@beddari
beddari / dict_merge.py
Created October 17, 2017 13:29 — forked from angstwad/dict_merge.py
Recursive dictionary merge in Python
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