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
Section "ServerFlags" | |
Option "AllowEmptyInput" "false" | |
Option "AutoAddDevices" "false" | |
EndSection | |
Section "InputDevice" | |
Identifier "Mouse1" | |
Driver "mouse" | |
Option "Protocol" "IMPS/2" | |
Option "Device" "/dev/input/mice" |
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 | |
$http_host = isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : "(not sure)"; | |
$remote_addr = isset($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : "(not sure)"; | |
$ipv = 0; | |
if ((strpos($remote_addr, ".") > 0) && ((strpos($remote_addr, ":") == FALSE))) { | |
$ipv = 4; | |
$remote_addr_show = $remote_addr; | |
} else { | |
$ipv = 6; |
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 | |
# Dateiname: | |
# autoshutdown.sh | |
# Lizenz: | |
# MIT-Lizenz (http://opensource.org/licenses/MIT) | |
# Beschreibung: | |
# Faehrt den Rechner herunter, wenn nach 2 Durchlaeufen des Skripts (optimalerweise alle ~20 Minuten | |
# via cron/runwhen/whatever ausgefuehrt) folgende Bedingungen erfuellt sind: | |
# * Es existiert keine Datei "stop.txt" (Inhalt egal) im Root-Verzeichnis der Public-Freigabe | |
# des Samba-Servers (ermoeglicht es den Usern, einen System-Shutdown einfach zu blockieren) |
NewerOlder