Skip to content

Instantly share code, notes, and snippets.

View hermzz's full-sized avatar

Hermann Käser hermzz

View GitHub Profile

Keybase proof

I hereby claim:

  • I am hermzz on github.
  • I am hermzz (https://keybase.io/hermzz) on keybase.
  • I have a public key whose fingerprint is FA17 D5CB 0005 E7F1 ECCF BD2A 34CB 36F9 7D55 9359

To claim this, I am signing this object:

@hermzz
hermzz / postfix_howto.txt
Created January 13, 2014 10:50
postfix howto
## Queue
- List messages
postqueue -p
- Flush the queue:
postqueue -f
- Attempt deliver of one message
postqueue -i [ID]
- Delete message
postsuper -d [ID]
@hermzz
hermzz / owncloud-update.sh
Last active December 28, 2015 21:09
ownCloud update steps
rm -rf old.owncloud
cp -a owncloud old.owncloud
rm -rf owncloud-latest.tar.bz2
wget http://download.owncloud.org/community/owncloud-latest.tar.bz2
sed "s/maintenance' => false/maintenance' => true/g" owncloud/config/config.php
tar xf owncloud-latest.tar.bz2
chmod -R 775 owncloud/config owncloud/apps
sed "s/maintenance' => true/maintenance' => false/g" owncloud/config/config.php
@hermzz
hermzz / SSL notes.md
Last active December 17, 2015 18:59

Use namespace SSL cert

cat $HOST.key $HOST.crt > $HOST.pem
cat AddTrustExternalCARoot.crt COMODORSA* > sslbundle.crt

Generate self-signed SSL cert

openssl genrsa -des3 -passout pass:x -out $HOST.pass.key 2048
openssl rsa -passin pass:x -in $HOST.pass.key -out $HOST.key

rm $HOST.pass.key

@hermzz
hermzz / init.lsyncd.sh
Last active April 27, 2016 16:26
Lsyncd2 init.d script for Debian Squeeze
#! /bin/sh
### BEGIN INIT INFO
# Provides: lsyncd
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the lsyncd daemon
# Description: starts lsyncd using start-stop-daemon
@hermzz
hermzz / init.nginx.sh
Last active October 6, 2015 18:07
Improved nginx start script
#! /bin/sh
### BEGIN INIT INFO
# Provides: nginx
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the nginx web server
# Description: starts nginx using start-stop-daemon