Skip to content

Instantly share code, notes, and snippets.

@NoifP
NoifP / smokeping-rrdcached-debian13.md
Last active January 19, 2026 20:36
Smokeping RRDCacheD on Debian 13

Smokeping RRDCacheD on Debian 13

Probably not secure - but it's a start

This assumes smokeping is already installed and running. If not apt install smokeping will be a good starting point.

  1. Add the service config below to the systemd smokeping override file: systemctl edit smokeping
    [Service]
    Environment="RRDCACHED_ADDRESS=unix:/var/run/rrdcached.sock"
    
@NoifP
NoifP / python3_auto_load_venv_example.py
Created June 30, 2025 03:55
Python3 auto load .venv without hard coded path in shebang
#!/usr/bin/env python3
# activate .venv without having to change shebang for different install location
import sys
import os
python_venv = os.path.join(os.path.dirname(os.path.abspath(__file__)), '.venv/bin/python3')
if sys.executable != python_venv:
print(f"Launched with {sys.executable}. Relaunching {python_venv} to load .venv")
@NoifP
NoifP / nmap_trace_extract.py
Last active March 9, 2023 11:26 — forked from B0073D/nmap_trace_extract.py
This piece of python will extract hops from the XML output of nmap and write it to a CSV file in a format that Gephi can use.
import xml.etree.ElementTree as etree
tree = etree.parse('wowser.xml')
root = tree.getroot()
hosts = root.findall('host')
output_file = open('nmap_edges.csv', 'w')
output_file.truncate()
output_file.write("Source,Target\n")
for i in hosts: