Skip to content

Instantly share code, notes, and snippets.

View besmirzanaj's full-sized avatar

Besmir Zanaj besmirzanaj

  • Toronto, ON
View GitHub Profile
@besmirzanaj
besmirzanaj / f5-scf-to-ingress.py
Created September 21, 2026 08:43
convert F5 BIG-IP SCF config to k8s Services and Ingresses (first draft, known bugs — see blog post)
# Author: Besmir Zanaj, 2024
import re
import yaml
import sys
# Step 1: Function to parse the SCF file and extract nodes, pools, and virtual servers
def parse_scf(scf_content):
nodes = {}
pools = {}
@besmirzanaj
besmirzanaj / chaos-query.sh
Created March 15, 2026 16:27
chaos-query.sh
#!/usr/bin/env bash
#
# chaos-query.sh - Query DNS servers using CHAOS class TXT records
# Author: Besmir Zaanaj
#
# Usage:
# ./chaos-query.sh <dns_server_ip_or_name> [record]
#
# Examples:
# ./chaos-query.sh 8.8.8.8
@besmirzanaj
besmirzanaj / ntp_servers.md
Last active July 21, 2026 21:41
some Official Government NTP stratum 1&2 servers

List of Official Stratum 1-2 public Time Dissemination Services over NTP

This list is generated from BIPM - International Bureau of Weights and Measures

more information - https://www.bipm.org/en/about-us.

I will list only publicly available servers, not the ones that require prior requests for access (e.g. Australia, Luxembourg, Costa Rica, Panama).

Time Dissemination services are documented here as of the 2025 edition (information received at the BIPM February–March 2026)

@besmirzanaj
besmirzanaj / technitium-sync.sh
Last active February 19, 2026 20:11
sync two technitium servers
#!/bin/bash
# Author: Besmir Zanaj, 2024
# This is a very raw script to backup configs (no logs and no stats) from a technitium server
# to another
#
# first create two tokens: one on the source server and another one on the destination one
# fill out the vars below
# create a cronjob with this script on the destinaton host
# eg:
@besmirzanaj
besmirzanaj / eds_pin_calculator.sh
Created February 16, 2023 17:10
calculate cert pin
#!/bin/bash
# EDS Certificate pin calculator
# 2023, Besmir Zanaj
# Usage:
# /ets_pin_calculator.sh <CERT_FILE>
# This script will calulate the EDS cert pin for a certificate file.
# More info in RFC-7469 - https://www.rfc-editor.org/rfc/rfc7469#section-2.1.1
@besmirzanaj
besmirzanaj / gist:44285988853ee171d3a219ea07ea1c7d
Created March 18, 2021 21:27 — forked from DanHam/gist:f2c860e925b269782c6f037798e08372
How to set up for and use Packer's Amazon Import post-processor
Packer has the ability to import Virtualbox OVA artifacts into AWS
using Amazons Import/Export feature. There are a number of prerequisites,
the setup of which are detailed below.
1. Create an S3 bucket to hold uploaded temporary build artifacts
$ aws s3 mb s3://my-organisation.com-eu-west-1-vmimport-bucket --region eu-west-1
make_bucket: s3://my-organisation.com-eu-west-1-vmimport-bucket/

An Ansible summary

Patterns

  • all (or *)
  • hostname: foo.example.com
  • groupname: webservers
  • or: webservers:dbserver
  • exclude: webserver:!phoenix
  • intersection: webservers:&amp;staging
### Keybase proof
I hereby claim:
* I am besmirzanaj on github.
* I am besmirzanaj (https://keybase.io/besmirzanaj) on keybase.
* I have a public key ASC6Or-qwENIhD35L9YdkxDzGjojzhFbaT0IkHjMy1t_tgo
To claim this, I am signing this object:
a script in you bashrc to sync locally your repos
alias gitdown='find . -name .git -type d | xargs -n1 -P4 -I% git --git-dir=% --work-tree=%/.. pull -v --progress'
@besmirzanaj
besmirzanaj / docker-learning-ref.note.md
Created May 30, 2018 03:51 — forked from aursu/docker-learning-ref.note.md
URLs related to docker (Training, Examples etc)