- Copy
.shscript to/usr/local/binandchmod +xit - Copy the
.serviceand.timerfiles to/etc/systemd/system systemctl enable --now cloudflare-nft.{service,timer}
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/fish | |
| # NetworkManager-dispatcher script to disable IPv6 for WireGuard VPN connections | |
| # | |
| # The `vpn-{up,down}` events are not sent for WG connections, so we have to use | |
| # pattern matching on the interface on generic `up/down` events, by default this | |
| # script matches any interface which starts with `wg`. | |
| # | |
| # Just install this script in `/etc/NetworkManager/dispatcher.d` to use it. | |
| # (Don't forget to install fish shell since this is a fish script, not bash) |
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
| /execute at @e[nbt={Tame:1b}] run tp @p ~ ~ ~ |
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 GOG Don't Giveaway Consent | |
| // @namespace https://github.com/TheDcoder | |
| // @license GPLv3 | |
| // @match *://www.gog.com/* | |
| // @run-at document-start | |
| // @grant GM_notification | |
| // @grant GM_openInTab | |
| // @version 1.3.1 | |
| // @author [email protected] |
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
| # Start bash with `-x` option with this env var | |
| export PS4='+(${BASH_SOURCE}:${LINENO}): ${FUNCNAME[0]:+${FUNCNAME[0]}(): }' |
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/fish | |
| for x in /usr/bin/uu-* | |
| ln -s $x /usr/local/bin/(string replace /usr/bin/uu- "" $x) | |
| end |
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
| # Example perl script to check if file A is a subset of file B (i.e. file A has any part of file B) | |
| perl -Mautodie=open -e 'undef $/; open $f1, "<", shift; open $f2, "<", shift; exit !!(-1 == index <$f2>, <$f1>)' -- fileA fileB | |
| # Credit: tirnanog on Libera.Chat |
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 GOG Abolish Reputation System | |
| // @author [email protected] | |
| // @description Abolish GOG forum's reputation system | |
| // @version 1.0 | |
| // @namespace Violentmonkey Scripts | |
| // @match http*://www.gog.com/forum/*/* | |
| // @grant GM_addStyle | |
| // @grant GM_registerMenuCommand | |
| // @grant GM_getValue |
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
| /* | |
| This is free and unencumbered software released into the public domain. | |
| Anyone is free to copy, modify, publish, use, compile, sell, or | |
| distribute this software, either in source code form or as a compiled | |
| binary, for any purpose, commercial or non-commercial, and by any | |
| means. | |
| In jurisdictions that recognize copyright laws, the author or authors | |
| of this software dedicate any and all copyright interest in the |
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 | |
| import os | |
| import xml.etree.ElementTree as ET | |
| HOME_DIR_NAME = '.syncport' | |
| CMD_PARAMS = ['-no-restart'] | |
| def main(): | |
| print("Setting up portable syncthing...") |
NewerOlder