Skip to content

Instantly share code, notes, and snippets.

@Arano-kai
Arano-kai / 30_vlan_propagation.py
Last active August 13, 2019 07:55
Vlan propagation (gvrp, mvrp) support for oVirt.
#! /usr/bin/env python2.7
'''
Add support of vlan propagation protocols to oVirt node.
One can specify custom key 'vlan_propagation' in host network setup
to one or [\s,] separated sequence of supported protocols.
Currently only 'legasy' switch type is supported with 'gvrp' and 'mvrp' protocols.
Also, one can use special keyword 'all' to enable all suported protocols.
All unspecified protocols will be disabled.
All unsuported protocols/switches will drop warnings to stderr
(collected by vdsm in '/var/log/vdsm/supervdsm.log').
@Arano-kai
Arano-kai / duperemove-weekly@.timer
Last active January 22, 2024 20:36
SystemD service and timer templates for duperemove.
[Unit]
# Usage: systemctl enable --now duperemove-weekly@$(systemd-escape <path>).timer
# Utilize %J specifier for duration set.
# One can hardlink/copy with 'weekly' part changed
# to set other duration.
Description=Deduplicate %I at calendar event (%J)
After=local-fs.target
Requires=local-fs.target
Conflicts=shutdown.target rescue.target rescue.service emergency.service
@Arano-kai
Arano-kai / get_eset_servers.sh
Last active May 24, 2018 13:00
Get ESET servers list
#! /bin/sh
# Gather and print to stdout ESET servers
# from `*.txt' at https://support.eset.com/kb332/
# Output of this script intent to use with `dstdomain` directive of squid proxy
#Grab all `.txt' links.
#sed jobs:
# - exclude all but value of `href' attr
# - remove non-`.txt' links