Skip to content

Instantly share code, notes, and snippets.

@shuairan
shuairan / volume
Last active August 29, 2015 14:17
change Pulseaudio volume from command line. BE CAREFUL: Setting the volume higher than 150% may harm your device or speakers!
#!/bin/bash
CRITICAL_LIMIT=153
SINK=1
input="$@"
new_vol=0
function usage {
@shuairan
shuairan / install_taiga_uberspace.md
Last active July 28, 2021 12:58
Taiga.io Backend und Frontend auf Uberspace installieren
<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 December 23, 2012 22:22
etherpad-lite uberspace 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 August 20, 2012 18:38
[Uberspace] Maildrop mailfilter: Sort subaddress-mails into already existing subdirs.
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 )
{