Skip to content

Instantly share code, notes, and snippets.

shuairan

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
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
#!/bin/bash
CRITICAL_LIMIT=153
SINK=1
input="$@"
new_vol=0
function usage {
@shuairan
shuairan / install_taiga_uberspace.md
Last active Aug 14, 2019
Taiga.io Backend und Frontend auf Uberspace installieren
View install_taiga_uberspace.md
View user.conf
<Directory "/Users/<shortuser>/Sites/">
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
DocumentRoot "/Users/<shortuser>/Sites/"
NameVirtualHost *:80
@shuairan
shuairan / htaccess
Created Dec 23, 2012
etherpad-lite uberspace htaccess
View htaccess
# the following allows "nice" urls such as https://etherpad.example.org/padname
RewriteEngine On
RewriteRule p/*$ http://etherpad.example.org/ [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/
@shuairan
shuairan / .mailfilter
Created Aug 20, 2012
[Uberspace] Maildrop mailfilter: Sort subaddress-mails into already existing subdirs.
View .mailfilter
MAILDIR = "$HOME/Maildir"
DEFAULT = "$MAILDIR"
# EMails an Erweiterungen in Unterordner verschieben falls dieser existiert
if (/^To: .*mail-(.*)@example.com/:h)
{
SUBMAILDIR = `find $MAILDIR -iname ".$MATCH1" | head -n 1`
`test -d $EMAILDIR/new && exit 1 || exit 0`
if ( $RETURNCODE == 1 )
{
You can’t perform that action at this time.