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 | |
| # | |
| # Simple Intel x520 EEPROM patcher | |
| # Modifies the EEPROM to unlock the card for non-intel branded SFP modules. | |
| # | |
| # Copyright 2020,2021,2022 Andreas Thienemann <andreas@bawue.net> | |
| # | |
| # Licensed under the GPLv3 | |
| # | |
| # Based on research described at https://forums.servethehome.com/index.php?threads/patching-intel-x520-eeprom-to-unlock-all-sfp-transceivers.24634/ |
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
| #!/bin/bash | |
| # | |
| # Collect system info from servers | |
| # | |
| STORCLI=/opt/MegaRAID/storcli/storcli64 | |
| HAS_RAID=0 | |
| VERSION=v3.1 |
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
| // ==UserScript== | |
| // @name document.load client injection | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description The Avocent PM1000/2000/3000 PDU runs an old JavaScript interface that relies on the XMLDocument.fetch() function that has been removed. Emulate this. | |
| // @description inject the document.load implementation into real page context. | |
| // @author Andreas Thienemann <andreas@bawue.net>, based on a script from jnd@chromium.org, based on idea from gurreiro_fabio@yahoo.com.br | |
| // @match http://172.16.10.64/* | |
| // @match http://172.16.10.65/* | |
| // @run-at document-start |
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
| #!/bin/bash | |
| set -euo pipefail | |
| # | |
| # Use the Cisco IMC XML Interface to generate a CSR, use dehydrated to | |
| # have this signed and upload the resulting cert back to the IMC. | |
| # This script requires a working dehydrated setup, preferably using the | |
| # DNS-01 ACME protocol. | |
| # |
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
| *://www.sentinelone.com/* | |
| *://www.airplane.dev/* | |
| *://www.machinelearningplus.com/* | |
| *://www.toptal.com/* | |
| *://sematext.com/* | |
| *://blog.sentry.io/* | |
| *://betterstack.com/* | |
| *://replit.com/* | |
| *://www.safetydetectives.com/* | |
| *://www.programiz.com/* |
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
| # | |
| # Tries to filter SEO spam pages which have low content value. | |
| # | |
| *://www.sentinelone.com/* | |
| *://www.airplane.dev/* | |
| *://www.machinelearningplus.com/* | |
| *://www.toptal.com/* | |
| *://sematext.com/* | |
| *://blog.sentry.io/* | |
| *://betterstack.com/* |
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 python | |
| # -*- coding: utf-8 -*- | |
| """ | |
| debug-milter.py | |
| A super simple Mail Filter (milter) which will print callbacks and received | |
| macros to stdout as they are sent by the mailserver. | |
| Ideal to understanding what a mailserver is sending to a milter for debugging | |
| purposes. |
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/python | |
| import Crypto.Hash | |
| import Crypto.Hash.HMAC | |
| import Crypto.Hash.SHA512 | |
| import Crypto.Random | |
| import Crypto.Cipher | |
| import base64 | |
| import collections | |
| import hashlib |
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/python3 | |
| # | |
| # IPTables Trace parser | |
| # Licensed under GPLv3+ by Andreas Thienemann <andreas@bawue.net> | |
| # | |
| # Takes a tracelog and a connection ID and will display the actual firewall rules | |
| # a packet hits on it's way through the different iptables chains. | |
| # | |
| # Instructions: | |
| # 1. Enable rule to mark packets to trace in the raw table: |
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
| #!/bin/bash | |
| # | |
| # Dockerized Mastodon Database Backup Script | |
| # | |
| DIR=$(date +%d-%m-%y) | |
| DEST="./db_backups/$DIR" | |
| mkdir -p "$DEST" | |
| MASTODON_ENV=$(basename "${PWD}") |
NewerOlder