Skip to content

Instantly share code, notes, and snippets.

@zas
zas / http.py
Created February 6, 2017 21:36
#!/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

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:

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

Remove old docker install:

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

Remove previous old version configs:

DONE:
kiki
herb
lemmy
hip
burnside
cage
yehudi
wetton
bootsy
#!/bin/bash
systemctl stop ip-blacklist.service && rm -rf /etc/systemd/system/ip-blacklist.service /etc/ip-blacklist/ && systemctl daemon-reload
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])
# 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
@zas
zas / README.md
Last active June 22, 2023 21:04
Klim Dash resume after suspend fix / Linux Mint 20.1 / Ubuntu 20.04