This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################ | |
# Vagrantfile for libvirt/KVM with Ubuntu 22.04 | |
################################################################ | |
# Vagrant + libvirt: Ubuntu 22.04 with NAT (default). | |
Vagrant.configure("2") do |config| | |
# Base box | |
config.vm.box = "generic/ubuntu2204" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# k8s-tools.sh - Install a bunch of useful Kubernetes tools and helpers. | |
# Installs: | |
# - metrics-server (patched with --kubelet-insecure-tls) | |
# - krew + kube-capacity (kubectl resource-capacity) | |
# - helper commands in ~/bin: kx (exec), kl (logs), kc (capacity), kcp (copy) | |
# Author: Niloy Saha | |
# Date: 2024-06-20 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# ============================================================================== | |
# Script Name: interface-monitor.sh | |
# Purpose: Monitor TX/RX throughput and packet rate on a network interface | |
# Author: Niloy Saha | |
# Date: 2025-08-20 | |
# ============================================================================== | |
# | |
# Description: | |
# This script monitors a specified network interface and displays: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
vagrantbox_sshcfg.py -- Generate SSH config snippets for Vagrant VMs on remote hosts. | |
Config file lines (whitespace separated): | |
<alias> <remote_user> <remote_host> <vagrant_dir> <vm_name> | |
Example: | |
box1 vagrant remote1.example.com /path/to/vagrant1 default | |
box2 vagrant remote2.example.com /path/to/vagrant2 web |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
vxlan_topo.py — Interactive OVS+VXLAN topology deployer. This creates an overlay | |
network using Open vSwitch and VXLAN tunnels between multiple Linux hosts. | |
Usage: | |
python3 vxlan_topo.py topo.json | |
python3 vxlan_topo.py topo.json --teardown [--remove-bridges] [--show-ovs] [--add-ips] [--ping-test] | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -euo pipefail | |
# ============================================================================== | |
# Script Name: cu-offload-bridge.sh | |
# Purpose: Automate CU offloading by bridging eth2 to n3br for GTP-U traffic | |
# Author: Niloy Saha | |
# Date: 2024-08-14 | |
# ============================================================================== | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: ubuntu | |
labels: | |
app: ubuntu | |
spec: | |
containers: | |
- image: ubuntu | |
command: |