Skip to content

Instantly share code, notes, and snippets.

Avatar

Laurent Monin zas

View GitHub Profile
View fix_blutooth_ad2p_sony_wh-1000XM3.txt
# Linux Mint Tricia 19.3
# Installed version was 5.50
# Headphones do not default to A2DP Sink
# fix: upgrade manually to 5.54
sudo apt install libdbus-1-dev libudev-dev libical-dev libreadline-dev
wget http://www.kernel.org/pub/linux/bluetooth/bluez-5.54.tar.xz
tar xz bluez-5.54.tar.xz
cd bluez-5.54/
./configure
View list_std_paths.py
from PyQt5.QtCore import QStandardPaths
def get_qt_enum(cls, enum):
d = {}
for key in dir(cls):
value = getattr(cls, key)
if isinstance(value, enum):
d[key] = value
return sorted(d, key=lambda k:d[k])
View uninstall_ip_blacklist.sh
#!/bin/bash
systemctl stop ip-blacklist.service && rm -rf /etc/systemd/system/ip-blacklist.service /etc/ip-blacklist/ && systemctl daemon-reload
View gist:ae47b6fd446af17151513c3aa5a4e9a8
DONE:
kiki
herb
lemmy
hip
burnside
cage
yehudi
wetton
bootsy
View docker_install.md

Remove old docker install:

sudo apt-get remove docker docker-engine docker.io containerd runc

Remove previous old version configs:

View class_NAME_TITLE_test.py
class P1():
@property
def name(self):
return getattr(self, 'NAME', self.__class__.__name__)
@property
def title(self):
return getattr(self, 'TITLE', self.name)
View keybase.md

Keybase proof

I hereby claim:

  • I am zas on github.
  • I am zas (https://keybase.io/zas) on keybase.
  • I have a public key ASAtsSSU0REPW2-TsW-_Uz64u2tcN3WwUvtg4nXHg-yODAo

To claim this, I am signing this object:

View http.py
#!/usr/bin/python
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
from subprocess import Popen, PIPE
import argparse
import json
import os
import shlex
import signal
import sys
View test_read.py
from contextlib import contextmanager
import io
import os
import shutil
import sys
import tempfile
import time
class Timer(object):
You can’t perform that action at this time.