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 4chan Anti-cancer | |
// @namespace http://4chan.org/ | |
// @version 0.1 | |
// @description Fixes the shady cancer Hiroshimoot added to 4chan on 18/12/2017. | |
// @include *://*.4chan.org/* | |
// @run-at document-start | |
// ==/UserScript== | |
var match = '(function(){var f="to",n="U",u="pper",r="C",t="ase",o="substr"'; | |
window.addEventListener('beforescriptexecute', function(e) { |
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
# minqlx - A Quake Live server administrator bot. | |
# Copyright (C) 2016 Mino <mino@minomino.org> | |
# This file is part of minqlx. | |
# minqlx is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. |
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
:PB�Bk: | |
,jB�@B@B@B@BBL. | |
7G�B�B�BMMMMMB@B@B@Nr | |
:kB�B���MMOMOMOMOMMMM�B�B@B1, | |
:5�B�B�B�BBMMOMOMOMOMOMOMM��nBnB@BBu. | |
70n��B�B�B�BXBBOMOMOMOMOMOMMBMPB�B�B@B@B@Nr | |
G���BJ iB�B�� OBMOMOMOMOMOMOM�2 B�B@B. EB@B@S | |
��BM�GJBU. iSuB�OMOMOMOMOMOMM�OU1: .kBLM�M�B� | |
B�MMB�B 7�BBMMOMOMOMOMOBB�: B�BMM�B | |
���B�B 7��@MMOMOMOMM@B@: @@B@B@ |
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
#!/bin/bash | |
mkdir temp_minqlx | |
cd temp_minqlx | |
git clone https://github.com/MinoMino/minqlx.git | |
cd minqlx | |
make | |
cd bin | |
mv minqlx* ../../../ | |
cd ../../../ | |
rm -Rf temp_minqlx |
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
import minqlx | |
class bots(minqlx.Plugin): | |
def __init__(self): | |
self.add_hook("player_connect", self.handle_player_connect) | |
self.add_hook("player_disconnect", self.handle_player_disconnect) | |
self.add_command("addbot", self.cmd_addbot, 0, usage="<thinktime>") | |
self.set_cvar_once("qlx_bot", "klesk") | |
self.set_cvar_once("qlx_botSkill", "3") |
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
I'm guessing that's Ubuntu 14.04 or something? In any case, you need GCC 4.9 to compile that dependency. The first answer here (https://askubuntu.com/questions/466651/how-do-i-use-the-latest-gcc-4-9-on-ubuntu-14-04) tells you how to install it on 14.04, but you still need to link x86_64-linux-gnu-gcc and x86_64-linux-gnu-g++ to the new ones. | |
So, after installing GCC 4.9, do: | |
which x86_64-linux-gnu-gcc (to get the path) | |
mv /path/to/x86_64-linux-gnu-gcc /path/to/x86_64-linux-gnu-gcc-4.8 (replace /path/to with the path you got earlier) | |
which gcc | |
ln -s /path/to/gcc /path/to/x86_64-linux-gnu-gcc | |
Then do the exact same thing, but with x86_64-linux-gnu-g++ and g++. It should compile after that. |
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
import minqlx | |
class muh_workshop(minqlx.Plugin): | |
def __init__(self): | |
self.add_hook("map", self.handle_map) | |
minqlx.set_cvar_once("muh_references", "") | |
def handle_map(self, *args, **kwargs): | |
self.game.steamworks_items += self.get_cvar("muh_references", list) |
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
import minqlx | |
from minqlx.database import Redis | |
class namesfix(minqlx.Plugin): | |
database = Redis | |
def __init__(self): | |
self.add_command("namesfix", self.cmd_namesfix, 5) | |
def cmd_namesfix(self, player, msg, channel): |
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
import minqlx | |
class teams(minqlx.Plugin): | |
def __init__(self): | |
super().__init__() | |
self.add_hook("round_end", self.handle_round_end) | |
def handle_round_end(self, data): | |
msgs = [] |
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
[ | |
{ | |
"author": "Mino", | |
"description": "A PQL ruleset for CA used on Mino's PQL servers.", | |
"basegt": "ca", | |
"id": "ca_mpql", | |
"title": "Mino's PQL CA", | |
"cvars": { | |
"dmflags": "60", |
NewerOlder