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 | |
# | |
# Fix (hidive) srt subtitles for mkv player | |
# These subs seem to have multi-line captions with a 1ms start offset | |
# mpv then prints these in the wrong order (issue #7070) | |
# This script will merge subtitle lines correctly for mpv | |
# | |
# Public domain (created mostly with ChatGPT) | |
# | |
import argparse |
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
addrs: | |
- ip: 10.1.2.3 | |
mask: 255.255.255.0 | |
entries.yaml: | |
entries: | |
{% for entry in addrs %} | |
- ip {{ entry.ip }} | |
mask {{ entry.mask }} | |
{% endfor %} |
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
At the end of every role: | |
- import_tasks: "common_tasks/update_localfacts.yaml" | |
And in that file: | |
--- | |
- name: update localfacts | |
ini_file: | |
path: "/etc/ansible/facts.d/custom.fact" |
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/sbin/nft -f | |
# NFTables firewall with fail2ban integration | |
# Configure f2b with jail = nftables-multiport, and comment-out actionstart and actionstop in nftables-common.conf | |
flush ruleset | |
define TRUSTED4 = { | |
127.0.0.1, | |
127.0.0.0/8 |
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
BEGIN MESSAGE. | |
5dZiffMTKBD7ZOU lV3G6ADH52ARbIA xcr6dF7VUpPtm6q G1NEP1hDA2qSe0T | |
pt8IKbQ4Fip7YNA AmWEqQH6wIaTCKq 6Xr2MZHgg7H9kTa 2gDUlbp3nYEIl9T | |
yO3qMYpaSQfJFwT u1Ytk700saZN5eC wkpfPiBDS0bClvi 0Jq8KPsDcaeDkdD | |
Oatl56OxnqmHg3A DNKXRDQBU5eZKvC 59FIT. | |
END MESSAGE. |
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
BEGIN MESSAGE. | |
SWCbhC2mta8GcyM 2Dre2x3QGWOyb0G FldQ8bgCPeg1KOP 7EkshgoVoTRFCy2 | |
MojyoYl38B65R7F eqNWdzkT1zWTCKq 6Xr2MZHgg6eqIs0 qGtbQOFCCOiXvkk | |
kjY0XMn9QNWnuuY DNcLtWuGsJ1STrE pDcl1imK68x6J73 OA34t0wQBuqgHD4 | |
WpWxc20pDPiYYgX bRmNssT3QRiKVF2 EfKVJ. | |
END MESSAGE. |
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
### Keybase proof | |
I hereby claim: | |
* I am sigio on github. | |
* I am sigio (https://keybase.io/sigio) on keybase. | |
* I have a public key whose fingerprint is 6AFC 0D83 5346 C729 6754 113F D867 4D8F C4F6 9BD2 | |
To claim this, I am signing this object: |
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
diff --git a/library/virt_guest b/library/virt_guest | |
index e139726..9d9adb9 100755 | |
--- a/library/virt_guest | |
+++ b/library/virt_guest | |
@@ -55,8 +55,7 @@ examples: | |
requirements: [ "libvirt" ] | |
notes: | |
- Run this on the libvirt host. | |
- - This returns a provisioning_status variable you can register to create groups. | |
- Possible values are: provisioned, unprovisioned, absent |
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
# Install and configure snmpd | |
--- | |
- hosts: centos5:centos6 | |
gather_facts: yes | |
vars: | |
tasks: | |
- name: Install snmpd package |