Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am joergschiller on github.
  • I am joergschiller (https://keybase.io/joergschiller) on keybase.
  • I have a public key ASA8qXJqp5zEHjsax6oVvfFIy1jGBDTR-DezQSUZriVEGgo

To claim this, I am signing this object:

@joergschiller
joergschiller / notification_mailer.rb
Created October 24, 2012 15:36
Rails emails using the recipient's locale.
class NotificationMailer < ActionMailer::Base
default from: "Sender <sender@example.com>"
def mail_with_locale(headers = {}, &block)
locale = headers.delete(:locale) || I18n.default_locale
I18n.with_locale(locale) { mail_without_locale(headers, &block) }
end
alias_method_chain :mail, :locale
@joergschiller
joergschiller / canon_ufr2_driver_ubuntu.md
Created September 11, 2012 09:28
Canon imageRunner Advance C2025i on Ubuntu Linux
@joergschiller
joergschiller / xorg.conf
Created May 19, 2012 18:39
Fixing flicker on internal display with Nvidia Quadro 2000M on Ubuntu since driver version 290.10
Section "Device"
Identifier "Default Device"
Option "NoLogo" "True"
Option "FlatPanelProperties" "Dithering=Disabled" # fixes flicker on internal display
EndSection
@joergschiller
joergschiller / a2dp_sink_ubuntu_linux.md
Created January 24, 2012 23:05
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: