Skip to content

Instantly share code, notes, and snippets.

@Centzilius
Centzilius / PKGBUILD.patch
Last active August 29, 2015 13:55
Patches the PKGBUILD of php54
--- a/PKGBUILD 2013-10-16 10:42:28.000000000 +0200
+++ b/PKGBUILD 2014-02-02 17:16:06.451836286 +0100
@@ -1,5 +1,7 @@
-# $Id$
-# Maintainer: Pierre Schmitz <pierre@archlinux.de>
+# Maintainer: Spider.007
+# Contributor: Vincent Post <vincent.post@w1r3.net>
+# Contributor: arjen
+# Contributor: Pierre Schmitz <pierre@archlinux.de>
@Centzilius
Centzilius / craftbukkit.service
Created February 14, 2014 14:16
Modified craftbukkit.sh
[Unit]
Description=Minecraft server implementing the Bukkit API
[Service]
User=craftbukkit
Group=craftbukkit
ExecStart=/usr/bin/tmux new-session -d -s craftbukkit-console -d 'cd /srv/craftbukkit; java -Xmx1024M -Xms1024M -jar /srv/craftbukkit/craftbukkit.jar nogui'
ExecStop=/usr/bin/tmux send-keys -t craftbukkit-console 'broadcast NOTICE: Server shutting down in 5 seconds!' C-m;
ExecStop=/usr/bin/sleep 5
ExecStop=/usr/bin/tmux send-keys -t craftbukkit-console 'stop' C-m;
#Written by X41
#Modified by Centzilius
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
# Version 2, December 2004
#
# Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
#
# Everyone is permitted to copy and distribute verbatim or modified
# copies of this license document, and changing it is allowed as long
# as the name is changed.
++++++++++
[
>+++++++>++++++++++>+++>+<<<<-
]
>++.
>+.
+++++++.
.
+++.
>++.
function aurinstall {
curl https://aur.archlinux.org/packages/${1:0:2}/${1}/${1}.tar.gz | tar xz
cd ${1}
makepkg -scfi
}
@Centzilius
Centzilius / isbn.py
Created September 2, 2014 17:21
ISBN Checknumber Calculator
# -*- coding: UTF-8 -*-
import sys
class InvalidInput(Exception):
def __init__(self, error):
self.error = error
def __str__(self):
return self.error
try:
#!/usr/bin/env python3
from subprocess import call
from os import listdir
class File:
def __init__(self, path, start, end):
self.path = path
self.start = start
self.end = end
# -*- coding: cp1252 -*-
# http://fishis.de/wiki/index.php/Verschl%C3%BCsselte_Pickle-Datei
import pickle
import base64
def objekt_speichern(objekt, dateiname="pickle.txt"):
datei = file(dateiname, "w")
text = pickle.dumps(objekt)
chiffre = base64.b64encode(text)
while not (0.1 + 0.2 == 0.3):
pass

Keybase proof

I hereby claim:

  • I am centzilius on github.
  • I am centzilius (https://keybase.io/centzilius) on keybase.
  • I have a public key ASAepKyG9dfjKQIhDRYIR2PgKScGk8TAAnqpxe-i-MTKsgo

To claim this, I am signing this object: