Skip to content

Instantly share code, notes, and snippets.


Fredrik Boulund boulund

  • Karolinska Institutet
  • Stockholm, Sweden
View GitHub Profile
ruxi /
Last active Mar 13, 2021
__author__ = ""
__copyright__ = "Copyright 2020, 2018,"
__license__ = "MIT"
__version__ = "0.0.2"
# update: June 13, 2020
# created: Feb 19, 2018
# desc: seaborn jointplot with 'hue'
# prepared for issue:
# resolved (22 Aug 2020):
dghodgson /
Last active Dec 15, 2019
A python script for automatically adding a loopback module to Pulse Audio for a bluetooth audio source when it's connected, and automatically removing the loopback module when the bluetooth device disconnects.Original code found here:
# based on monitor-bluetooth
# Changes by Domen Puncer <>
import gobject
import dbus
import dbus.mainloop.glib
import os
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:

brantfaircloth / gist:944741
Created Apr 27, 2011
blat blast8 tabular format
View gist:944741
text = Query id, Subject id, % identity, alignment length, mismatches, gap openings, q. start, q. end, s. start, s. end, e-value, bit score
csv = "Query id","Subject id","% identity","alignment length","mismatches","gap openings","q. start","q. end","s. start","s. end","e-value","bit score"