Skip to content

Instantly share code, notes, and snippets.

View marefr's full-sized avatar

Marcus Efraimsson marefr

View GitHub Profile
@h3po
h3po / snmp.yml
Last active April 28, 2024 14:30
snmp.yml for monitoring pfsense (BEGEMOT-PF-MIB) with prometheus' snmp_exporter
pfsense:
version: 2
auth:
community: public
walk:
- 1.3.6.1.4.1.12325.1.200.1.1 #SNMPv2-SMI::enterprises::BEGEMOT-PF-MIB::pfStatus
- 1.3.6.1.4.1.12325.1.200.1.2 #SNMPv2-SMI::enterprises::BEGEMOT-PF-MIB::pfCounter
- 1.3.6.1.4.1.12325.1.200.1.3 #SNMPv2-SMI::enterprises::BEGEMOT-PF-MIB::pfStateTable
#not interesting
#- 1.3.6.1.4.1.12325.1.200.1.4 #SNMPv2-SMI::enterprises::BEGEMOT-PF-MIB::pfSrcNodes
@gchiam
gchiam / gist:7f8f302cd460d8a300db333e55445654
Created April 19, 2016 03:15 — forked from dedy-purwanto/gist:11312110
Bulk remove iTerm2 color schemes.
# There was a day where I have too many color schemes in iTerm2 and I want to remove them all.
# iTerm2 doesn't have "bulk remove" and it was literally painful to delete them one-by-one.
# iTerm2 save it's preference in ~/Library/Preferences/com.googlecode.iterm2.plist in a binary format
# What you need to do is basically copy that somewhere, convert to xml and remove color schemes in the xml files.
$ cd /tmp/
$ cp ~/Library/Preferences/com.googlecode.iterm2.plist .
$ plutil -convert xml1 com.googlecode.iterm2.plist
$ vi com.googlecode.iterm2.plist