Skip to content

Instantly share code, notes, and snippets.

View mattiZed's full-sized avatar

mattiZed

View GitHub Profile
@mattiZed
mattiZed / oidentd.conf
Created September 12, 2016 17:26
oidentd base config
# Configuration for oidentd
# see oidentd.conf(5)
#
default {
default {
deny spoof
deny spoof_all
deny spoof_privport
allow random
allow random_numeric
[program:quakelive]
command=~/quakestart.sh %(process_num)s
user=youruser
process_name=qzeroded_%(process_num)s
numprocs=4
autorestart=true
@mattiZed
mattiZed / quakestart.sh
Last active April 28, 2016 08:56
QLDS Startscript
#! /bin/bash
# quakestart.sh - quake live multiple server spawning script.
# created by Thomas Jones on 09/09/15. | modified by mattiZed
# thomas@tomtecsolutions.com
# Defining variables.
export location="LOCATION_GOES_HERE_IF_NEEDED"
export qPathToStartScript="~/steamcmd/steamapps/common/qlds/run_server_x64.sh"
export qPathToMinqlx="~/steamcmd/steamapps/common/qlds/run_server_x64_minqlx.sh"
import minqlx
class kickprotect(minqlx.Plugin):
def __init__(self):
self.add_hook("vote_called", self.handle_vote_called)
self.set_cvar_once("qlx_protectedPerm", "1")
def handle_vote_called(self, caller, vote, args):
try:
/* basics */
* {
border-radius : 0 !important;
}
body {
background-color : #FFF;
}
hr {
color : #222;
}
<html style="background-color: #EFEFEF;">
<head>
<title>Titel</title>
</head>
<body style="width: 900px; margin: 0 auto; background-color: #FFFFFF;">
<h1>Heading 1</h1>
<hr>
<h2>Heading 2</h2>
<hr>
@mattiZed
mattiZed / kickprotect.py
Created April 23, 2016 12:50
minqlx plugin
# This is an extension plugin for minqlx.
# Copyright (C) 2016 mattiZed (github) aka mattiZed (ql)
# 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.
# You should have received a copy of the GNU General Public License
# along with this plugin. If not, see <http://www.gnu.org/licenses/>.
@mattiZed
mattiZed / kickprotect.py
Created January 22, 2016 17:01
minqlx plugin that protects certain players from beeing kickvoted against.
# This is an extension plugin for minqlx.
# Copyright (C) 2016 mattiZed (github) aka mattiZed (ql)
# 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.
# You should have received a copy of the GNU General Public License
# along with this plugin. If not, see <http://www.gnu.org/licenses/>.
@mattiZed
mattiZed / example.py
Created January 12, 2016 10:26
Simple example plugin for minqlx
# Simple example plugin for minqlx
# written by mattiZed
import minqlx
class example(minqlx.Plugin):
def __init__(self):
self.add_command("tellsomething", self.cmd_tellsomething)
def cmd_tellsomething(self, player, msg, channel):