Skip to content

Instantly share code, notes, and snippets.


Keybase proof

I hereby claim:

  • I am joergschiller on github.
  • I am joergschiller ( on keybase.
  • I have a public key ASA8qXJqp5zEHjsax6oVvfFIy1jGBDTR-DezQSUZriVEGgo

To claim this, I am signing this object:

joergschiller / notification_mailer.rb
Created Oct 24, 2012
Rails emails using the recipient's locale.
View notification_mailer.rb
class NotificationMailer < ActionMailer::Base
default from: "Sender <>"
def mail_with_locale(headers = {}, &block)
locale = headers.delete(:locale) || I18n.default_locale
I18n.with_locale(locale) { mail_without_locale(headers, &block) }
alias_method_chain :mail, :locale
joergschiller /
Created Sep 11, 2012
Canon imageRunner Advance C2025i on Ubuntu Linux
joergschiller / xorg.conf
Created May 19, 2012
Fixing flicker on internal display with Nvidia Quadro 2000M on Ubuntu since driver version 290.10
View xorg.conf
Section "Device"
Identifier "Default Device"
Option "NoLogo" "True"
Option "FlatPanelProperties" "Dithering=Disabled" # fixes flicker on internal display
joergschiller /
Created Jan 24, 2012
A2DP Sink on Ubuntu Linux with bluez (streaming bluetooth stereo audio from smartphone to pc)

Howto Enable and Use A2DP Sink on Ubuntu Linux with Bluez

  1. Add Enable=Source to /etc/bluetooth/audio.conf right after [General].

  2. Find address in form XX:XX:XX:XX:XX:XX of phone with hcitool scan.

  3. Pair and trust smartphone with sudo bluez-simple-agent hci0 XX:XX:XX:XX:XX:XX and sudo bluez-test-device trusted XX:XX:XX:XX:XX:XX yes.

  4. Create loopback in pulseaudio connection bluetooth a2dp source with alsa sink: