Skip to content

Instantly share code, notes, and snippets.

View KoffeinFlummi's full-sized avatar

Felix Wiegand KoffeinFlummi

  • Darmstadt, Germany
View GitHub Profile
/*
* Copyright (C) 2015 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@KoffeinFlummi
KoffeinFlummi / colors
Created August 30, 2015 22:50
color tester script for urxvt
#!/bin/bash
# Created by daggoth
# http://crunchbang.org/forums/viewtopic.php?pid=295676#p296114
xresrc="$HOME/.Xresources"
normal="$(tput sgr0)"
bold="$(tput bold)"
C=( $( grep -i urxvt[.*]color[0-9]* <"$xresrc" |
cut -d: -f2 |
@KoffeinFlummi
KoffeinFlummi / teamspeak.service
Created August 27, 2015 07:53
Teamspeak systemd service file
[Unit]
Description=Teamspeak
[Service]
User=teamspeak
Type=oneshot
ExecStart=/home/teamspeak/teamspeak/ts3server_startscript.sh start
ExecStop=/home/teamspeak/teamspeak/ts3server_startscript.sh stop
RemainAfterExit=yes
#!/usr/bin/env python3
import re
import itertools
def main():
phrase = input("")
numknown = int(input(""))
known = {}
0 = this spawn {
waitUntil {_this getVariable ['AGM_RopesDeployed', False]};
sleep 2;
{
waitUntil {count ([_this getVariable ['AGM_RopesOccupied', []], {!_this}] call AGM_Core_fnc_filter) > 0};
sleep 1;
unassignVehicle _x;
[_x, _this] call AGM_FastRoping_fnc_fastRope;
} forEach ([crew _this, {!(isPlayer _this) and (assignedVehicleRole _this select 0 == "Cargo")}] call AGM_Core_fnc_filter);
};
@KoffeinFlummi
KoffeinFlummi / C++.sublime-build
Last active August 29, 2015 13:57
Sublime Text 2 C++ Build Settings
{
"cmd": ["g++", "-std=C++11", "${file}", "-o", "${file_path}/${file_base_name}"],
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${file_path}",
"selector": "source.c, source.c++",
"variants":
[
{
"name": "Run",