fenk.org

Private website of Thorsten Fenk

Chicken marinade

  • 1 Mandarine
  • 1 piece of ginger
  • 1 hot chile
  • Garlic clove(s)
  • Coriander
  • Cumin
  • Sage
  • Oil

Blend and rub it on the chicken.

Perfect forward secrecy mit nginx

Insert the following snippet into /etc/nginx/sites-enabled/default

Comment in other ssl dirctives.

ssl                  on;
ssl_certificate      /etc/nginx/ssl/server.crt;
ssl_certificate_key  /etc/nginx/ssl/server.key;
ssl_session_timeout  5m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers "EECDH+ECDSA+AESGCM EECDH+aRSA+AESGCM EECDH+ECDSA+SHA384 EECDH+ECDSA+SHA256 EECDH+aRSA+SHA384 EECDH+aRSA+SHA256 EECDH+aRSA+RC4 EECDH EDH+aRSA RC4 !aNULL !eNULL !LOW !3DES !MD5 !EXP !PSK !SRP !DSS";

Remote file sync using unison and inotifywait

The following one liner watches the sync/ folder in my home directory and calls unison to syncronize it with a remote folder.

#!/bin/sh
inotifywait -mr -e close_write -e create -e delete -e move /home/fenkt/sync/ | while read DELETE CREATE MOVE ; do unison ; done

Take pictures with mplayer and a webcam

The values for width and heigth may need adjustment to the capabilities of your webcam.

  #!/bin/sh
  mplayer tv:// -tv driver=v4l2:device=/dev/video0
  mplayer tv:// -tv driver=v4l2:device=/dev/video0:width=1600:height=1200:outfmt=rgb24 -frames 3 -vo jpeg
  rm 00000001.jpg 00000002.jpg

Flash Cookies nach /tmp/ umleiten

On most Linux distributions, the content of the /tmp/ directory is deleted on startup. To get rid of persistent flash cookies just:

$ ln -s /tmp/ ~/.macromedia