This file contains 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 TheDcoder@protonmail.com |
This file contains 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 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 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 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 TheDcoder@protonmail.com | |
// @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 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 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...") |
This file contains 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
/* | |
* MIT License | |
* | |
* Copyright (c) 2020 Damon Harris <TheDcoder@protonmail.com> | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is |
This file contains 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
#include <unistd.h> | |
#include <signal.h> | |
/* A simply utility to call the POSIX pause function, | |
* it will keep running and while ignoring SIGINT. | |
* | |
* Useful for simulating a hung process | |
*/ | |
int main() { |
This file contains 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 Image Hunter | |
// @namespace Violentmonkey Scripts | |
// @match https://email2.gog.com/view.html | |
// @noframes | |
// @grant GM_setClipboard | |
// @run-at document-start | |
// @version 1.1 | |
// @author TheDcoder | |
// @description Started work on 12/4/2020, 8:04:15 PM |
NewerOlder