Skip to content

Instantly share code, notes, and snippets.

View MinoMino's full-sized avatar
🐧
Doing absolutely nothing.

Mino MinoMino

🐧
Doing absolutely nothing.
View GitHub Profile
@MinoMino
MinoMino / 4chan-anticancer.user.js
Last active October 6, 2020 17:58
Fixes the shady cancer Hiroshimoot added to 4chan on 18/12/2017.
// ==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) {
@MinoMino
MinoMino / votes.py
Created October 23, 2016 22:39
Votes plugin for minqlx
# 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.
@MinoMino
MinoMino / skull_new.txt
Created August 24, 2016 17:05
Data and script used to extract the usa-ambas-calaveras.html URL
: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@
#!/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
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")
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.
@MinoMino
MinoMino / muh_workshop.py
Created December 10, 2015 03:13
Reference custom paks.
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)
@MinoMino
MinoMino / namesfix.py
Last active December 9, 2015 07:47
Clear the list of names for people who ran minqlx develop between v0.1.0 and v0.2.0.
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):
@MinoMino
MinoMino / .py
Last active December 7, 2015 18:24
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 = []
@MinoMino
MinoMino / mino.factories
Created November 12, 2015 03:30
My Factories
[
{
"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",