Skip to content

Instantly share code, notes, and snippets.

View rfde's full-sized avatar

Till rfde

View GitHub Profile
@rfde
rfde / custom.css
Created August 17, 2015 16:00
Tiny Tiny RSS: Benutzerdefiniertes Stylesheet
@import url(http://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic,700italic);
div.postContent {
text-align: justify;
font-family: "Droid Serif", serif;
font-size: 16px;
line-height: 24px;
}
div.cdmContentInner {
@rfde
rfde / 02-wirelesspresenter.conf
Created November 30, 2014 13:02
Xorg-Konfiguration für Trust TK3300p Wirelesspresenter. Getestet unter Fedora 20. Diese Datei als /etc/X11/xorg.conf.d/02-wirelesspresenter.conf ablegen. Es müssen zusätzlich die Pakete xorg-x11-drv-mouse, xorg-x11-drv-keyboard installiert werden. Es kann zu Problemen mit anderen Eingabegeräten kommen.
Section "ServerFlags"
Option "AllowEmptyInput" "false"
Option "AutoAddDevices" "false"
EndSection
Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
@rfde
rfde / infopage.php
Last active August 29, 2015 14:00
Füge folgende Zeile zur der Apache-SSL-Konfiguration hinzu: SSLOptions +StdEnvVars
<?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;