Skip to content

Instantly share code, notes, and snippets.

@martinkennelly
martinkennelly / gist:dbf8a2eb043bdde06bebdbd3e00a449a
Created August 8, 2023 09:30
Getting ovn-nbctl: unix:/var/run/ovn/ovnnb_db.sock: database connection failed () ?
You can possibly resolve it in two ways:
1. If OVN is in HA, exec onto the pod who is the current leader and execute `ovn-nbctl --no-leader-only show`
2. Find all the instances IPs and execute `ovn-nbctl --no-leader-only --db=...`
@brasey
brasey / Configure systemd-resolved to use a specific DNS nameserver for a given domain.md
Created October 25, 2019 14:38
Configure systemd-resolved to use a specific DNS nameserver for a given domain

Configure systemd-resolved to use a specific DNS nameserver for a given domain

Use case

Given

  • I use a VPN to connect to my work network
  • I'm on a Linux computer that uses systemd-resolved
  • I have a work domain called example.com
  • example.com is hosted by both public and private DNS nameservers
@mohanpedala
mohanpedala / bash_strict_mode.md
Last active July 8, 2025 20:45
set -e, -u, -o, -x pipefail explanation