Skip to content

Instantly share code, notes, and snippets.

View e7o-de's full-sized avatar

Sven Herzky e7o-de

View GitHub Profile
@e7o-de
e7o-de / A.php
Created August 2, 2012 11:36
PHP Multiple Inheritance
<?php
class A {
function x() { echo 'Ich bin Klasse A'; }
}
@e7o-de
e7o-de / gist:3116898
Created July 15, 2012 13:21
Gnome configuration
# Enable compositing
gconftool-2 -s '/apps/metacity/general/compositing_manager' --type bool true
@e7o-de
e7o-de / gist:3116889
Created July 15, 2012 13:19
notify-server
#!/usr/bin/php5
<?php
set_time_limit(0);
pcntl_signal(SIGTERM, 'sig_handler');
$sock = socket_create(AF_INET, SOCK_STREAM, 0);
socket_bind($sock, 'localhost', 2828) or die('Could not bind to address');
socket_listen($sock);