This gist contains service descriptors which may be used to automatically start and re-start Minecraft servers using systemd. This allows proper control of your server startup on modern Linux distributions and will automatically manage all required tasks on startup for you.
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
<?php | |
// register error handler | |
set_error_handler(function($errno, $errstr, $errfile, $errline ) { | |
throw new ErrorException($errstr, 0, $errno, $errfile, $errline); | |
}); | |
// defines | |
define ('IMAGE_DIR', dirname (__FILE__).'/image/'); // by default images (success.png, failed.png and unknown.png) are stored in ./image/ | |
define ('KEY_REGEX', '~^([A-Za-z0-9]+)\-([A-Za-z0-9]+)$~'); // You usually won't need to change this | |
define ('SERVER_URL', 'https://yourinstance.atlassian.net/builds'); // set your Bamboo URL |
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
Clone Command Block MCEdit Filter | |
================================= | |
This filter helps you to clone big structures from one position to any other | |
position in the level (as long as it is loaded). To achieve this it splits up | |
the zone in smaller 15x15x15 chunks which may be copied even though the overall | |
structure has more than 4096 blocks. | |
Usage | |
----- | |
* Select the source structure |
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 hexchat; | |
# Module Metadata | |
__module_name__ = 'ZNC Stickychan' | |
__module_author__ = 'Akkarin' | |
__module_version__ = '1.0.0' | |
__module_description__ = 'Makes stickychan less annoying.' | |
# Handles messages. | |
def privmsg_cb (word, word_eol, userdata): |
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 | |
#---------- | |
# Akkarin's Simple S3 Screenshot Script | |
# | |
# Requirements: | |
# - shutter | |
# - awscli | |
# - zenity | |
# | |
# Note: The directory defined in $SCREENSHOT_PATH needs to exist! |
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
# Maintainer: Johannes Donath <johannesd@torchmind.com> | |
pkgname=lxd-git | |
pkgver=0.9 | |
pkgrel=0 | |
pkgdesc="A container hypervisor and a new user experience for LXC." | |
provides=('lxd') | |
arch=('i686' 'x86_64') | |
url="https://linuxcontainers.org/lxd/" | |
license=('Apache') | |
groups=() |
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 2015 Johannes Donath <johannesd@torchmind.com> | |
# and other copyright owners as documented in the project's IP log. | |
# | |
# 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 | |
# |
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
/** | |
* Creates a "sneaky" consumer which disguises all thrown exceptions to work around Javac's checked exceptions. | |
* | |
* @param consumer the sneaky consumer. | |
* @param <I> the input type. | |
* @return the consumer. | |
*/ | |
@Nonnull | |
public static <I> Consumer<I> sneakyConsumer(@Nonnull final SneakyConsumer<I> consumer) { | |
return (i) -> { |
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
<!DOCTYPE html> | |
<html xmlns="https://www.w3.org/1999/xhtml/"> | |
<head> | |
<meta charset="UTF-8" /> | |
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Roboto:700" /> | |
<style typte="text/css"> | |
body { | |
font-family: 'Roboto', 'Helvetica Neue', 'Helvetica', sans-serif; | |
font-size: 18px; |
OlderNewer