Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block shuairan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
shuairan / .mailfilter
Created Aug 20, 2012
[Uberspace] Maildrop mailfilter: Sort subaddress-mails into already existing subdirs.
View .mailfilter
MAILDIR = "$HOME/Maildir"
# EMails an Erweiterungen in Unterordner verschieben falls dieser existiert
if (/^To: .*mail-(.*)
SUBMAILDIR = `find $MAILDIR -iname ".$MATCH1" | head -n 1`
`test -d $EMAILDIR/new && exit 1 || exit 0`
if ( $RETURNCODE == 1 )
shuairan / htaccess
Created Dec 23, 2012
etherpad-lite uberspace htaccess
View htaccess
# the following allows "nice" urls such as
RewriteEngine On
RewriteRule p/*$ [NC,L]
RewriteCond %{REQUEST_URI} !^/locales/
RewriteCond %{REQUEST_URI} !^/locales.ini
RewriteCond %{REQUEST_URI} !^/admin
RewriteCond %{REQUEST_URI} !^/p/
RewriteCond %{REQUEST_URI} !^/static/
RewriteCond %{REQUEST_URI} !^/pluginfw/
RewriteCond %{REQUEST_URI} !^/javascripts/
View user.conf
<Directory "/Users/<shortuser>/Sites/">
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
DocumentRoot "/Users/<shortuser>/Sites/"
NameVirtualHost *:80
shuairan /
Last active Aug 14, 2019 Backend und Frontend auf Uberspace installieren
shuairan / volume
Last active Aug 29, 2015
change Pulseaudio volume from command line. BE CAREFUL: Setting the volume higher than 150% may harm your device or speakers!
View volume
function usage {
You can’t perform that action at this time.