Skip to content

Instantly share code, notes, and snippets.

@zeloff
zeloff / pf_queue_
Last active July 22, 2022 10:30
munin plugin to monitor OpenBSD (>5.4) pf queues
#!/bin/sh
# POD documentation
: <<=cut
=head1 NAME
pf_queue_ - Munin plugin to monitor OpenBSD's pf queues.
=head1 APPLICABLE SYSTEMS
OpenBSD 5.5 and newer
@zeloff
zeloff / dzen.rc
Created March 22, 2013 13:44
dzen2 rc
#!/bin/sh
sleep 2
# Get screen width
SCRN_WIDTH=`xrandr --prop | grep "^Screen 0" | cut -d, -f2 | awk '{print $2}'`
#HALF_SCRN=`dc -e "$SCRN_WIDTH 2 / p"`
DZEN_WIDTH=740
# Settings