Skip to content

Instantly share code, notes, and snippets.

@crimoniv
crimoniv / pudb-client
Last active June 1, 2023 01:53
PuDB TTY PoC
#!/usr/bin/env python
from __future__ import print_function
from __future__ import unicode_literals
import argparse
import errno
import os
import select
import signal
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import sys
from os import environ
try:
from cStringIO import StringIO
except ImportError:
@crimoniv
crimoniv / a2dp.py
Created May 14, 2018 15:03 — forked from pylover/a2dp.py
Fixing bluetooth stereo headphone/headset problem in ubuntu 16.04, 16.10 and also debian jessie, with bluez5.
#! /usr/bin/env python3.5
"""
Fixing bluetooth stereo headphone/headset problem in ubuntu 16.04 and also debian jessie, with bluez5.
Workaround for bug: https://bugs.launchpad.net/ubuntu/+source/indicator-sound/+bug/1577197
Run it with python3.5 or higher after pairing/connecting the bluetooth stereo headphone.
This will be only fixes the bluez5 problem mentioned above .