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
package main | |
import ( | |
"errors" | |
"net/http" | |
"strings" | |
"sync" | |
"time" | |
"github.com/labstack/echo/v4" |
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
# -*- coding: utf-8 -*- | |
# Copyright (C) 2017 Christopher Stewart <[email protected]> | |
# This program 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 2 of the License, or | |
# (at your option) any later version. | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See 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
# frozen_string_literal: true | |
# Copyright (c) 2016 Christopher Stewart | |
# | |
# 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 | |
# furnished to do so, subject to the following conditions: |
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.5 | |
from supervisor.xmlrpc import SupervisorTransport | |
import xmlrpc.client | |
import valve.source.a2s as a2s | |
import socket | |
import time | |
supervisor_socket = "unix:///tmp/supervisor.sock" | |
SERVERS = [{"port": 27960, "process": "qldf:qzeroded_qldf1", "name": "DE Race #1"}, |
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.5 | |
""" | |
Deletes all "minqlx:players:*:permission" keys. | |
""" | |
import redis | |
r = redis.StrictRedis(unix_socket_path='/var/run/redis/redis.sock') | |
for key in r.scan_iter("minqlx:players:*:permission"): |
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
from enum import Enum | |
class VoteFlags(Enum): | |
map = 1 | |
map_restart = 2 | |
nextmap = 4 | |
gametype = 8 | |
kick = 16 # Also clientkick | |
timelimit = 32 | |
fraglimit = 64 |
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 allowkill(minqlx.Plugin): | |
def __init__(self): | |
self.add_hook("map", self.handle_map) | |
self.add_hook("game_start", self.handle_game_start) | |
self.add_hook("game_end", self.handle_game_start) | |
def handle_map(self, map_name, factory): |
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 | |
# Modified version of https://github.com/tjone270/Quake-Live/blob/master/qlds-scripts/autodownload.sh | |
# Original created by Thomas Jones on 03/10/15. | |
# [email protected] | |
# | |
# Uses for loop to iterate through workshop IDs. | |
# Works for workshop.txt in this format https://gist.github.com/cstewart90/4fdd04c5d826ad6b039a | |
qldsPath="$HOME/qlds" | |
steamcmdPath="$HOME/steamcmd" |
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
[{ | |
"cvars": { | |
"timelimit": "5", | |
"fraglimit": "10", | |
"g_overtime": "0", | |
"g_training": "1", | |
"bot_dynamicSkill": "1", | |
"practiceflags": "0", | |
"bot_startingSkill": "2", | |
"g_allowkill": "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
# Copyright (c) 2016 Christopher Stewart | |
# | |
# 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 | |
# furnished to do so, subject to the following conditions: | |
# The above copyright notice and this permission notice shall be included in all |
NewerOlder