I hereby claim:
- I am andreycizov on github.
- I am andreycizov (https://keybase.io/andreycizov) on keybase.
- I have a public key ASCxzilikrO1Fkzwv-ciT5kJUghPemSNx2lcPjjdAS555go
To claim this, I am signing this object:
def trace_return(pretty_printer): | |
def decorator(fun): | |
def decorated(*args, **kwargs): | |
import sys | |
import inspect | |
last_line = None | |
entered = False | |
def tracer(frame, event, arg=None): |
#!/bin/sh | |
env XDG_CURRENT_DESKTOP=GNOME gnome-control-center | |
ls /usr/lib/gnome-settings-daemon | parallel -j 0 /usr/lib/gnome-settings-daemon/{} |
#!/bin/sh -ex | |
# THIS SCRIPT ASSUMES YOU DON'T HAVE A CUSTOM DUNST SETUP IN ~/.config/dunst/dunstrc!!!!!! | |
# https://geekoverdose.wordpress.com/2019/08/01/i3-window-manager-selectively-make-any-notification-urgent-urgency-flag-to-highlight-the-workspace/ | |
mkdir -p ~/bin | |
DUNST=~/bin/dunst-urgent-notification | |
cat >$DUNST <<BEGIN |
#!/bin/bash | |
# mousemon.sh - Andrey Cizov ([email protected]) 2018 (no license applied, free to use on any terms) | |
# | |
# Sometimes you'd like to have more control on what toggles the screensaver on your Ubuntu. | |
# In my scenario the mouse is too sensitive, so whenever I lock the screen subsequently turning | |
# off the monitors - it's too easy to turn them back on by accidentally touching the mouse. | |
# Even mildly loud bass is enough to do so. | |
# This script disables a selected device whenever the lock screen is activated. |
# /etc/systemd/system/pulseaudio.service | |
[Unit] | |
Description=PulseAudio system server | |
# make sure we start after the network is available | |
After=network.target network-online.target | |
Wants=network-online.target | |
[Service] |
def trc(postfix: Optional[str] = None) -> logging.Logger: | |
""" | |
Automatically generate a logger from the calling function | |
:param postfix: append another logger name on top this | |
:return: instance of a logger with a correct path to a current caller | |
""" | |
x = inspect.stack()[1] |
I hereby claim:
To claim this, I am signing this object:
import logging | |
import os | |
from multiprocessing.pool import Pool as OrigPool | |
from coverage import Coverage | |
from multiprocessing.context import Process, DefaultContext, _concrete_contexts | |
logger = logging.getLogger(__name__) |
import multiprocessing | |
import os | |
from concurrent.futures import ProcessPoolExecutor | |
from concurrent.futures.process import _process_worker as _old_process_worker | |
from threading import Thread | |
_thread_worker = _old_process_worker | |
def _process_worker(max_threads, call_queue, result_queue): |