Skip to content

Instantly share code, notes, and snippets.

@dbrw
dbrw / fix-microphone-background-noise.sh
Created December 4, 2020 08:50 — forked from adrianolsk/fix-microphone-background-noise.sh
FIx linux microfone background noise
# Microphone Realtime background noise reduction script
# author Luigi Maselli - https://grigio.org licence: AS-IS
# credits: http://askubuntu.com/questions/18958/realtime-noise-removal-with-pulseaudio
# run as: sudo && pulseaudio -k
# wget -qO - https://gist.github.com/adrianolsk/bfa32f3227dc674eff72a2008f6c0316 | sudo bash && pulseaudio -k
sudo cp /etc/pulse/default.pa /etc/pulse/default.pa.bak
sudo cat <<EOT >> /etc/pulse/default.pa
load-module module-echo-cancel source_name=noechosource sink_name=noechosink
@dbrw
dbrw / log_py2_script
Created November 17, 2017 08:09
error from nvim
2017-11-17 15:02:45,739 [DEBUG @ msgpack_stream.py:send:33] 10309 - sent [0, 1, 'vim_get_api_info', ()]
2017-11-17 15:02:45,741 [DEBUG @ base.py:run:138] 10309 - Entering event loop
2017-11-17 15:02:45,741 [DEBUG @ msgpack_stream.py:_on_data:54] 10309 - waiting for message...
2017-11-17 15:02:45,741 [DEBUG @ msgpack_stream.py:_on_data:56] 10309 - received message: [0, 1, 'poll', []]
2017-11-17 15:02:45,741 [DEBUG @ async_session.py:_on_request:86] 10309 - received request: poll, []
2017-11-17 15:02:45,741 [DEBUG @ msgpack_stream.py:_on_data:54] 10309 - waiting for message...
2017-11-17 15:02:45,742 [DEBUG @ msgpack_stream.py:_on_data:59] 10309 - unpacker needs more data...
2017-11-17 15:02:45,744 [DEBUG @ msgpack_stream.py:_on_data:54] 10309 - waiting for message...
2017-11-17 15:02:45,745 [DEBUG @ msgpack_stream.py:_on_data:56] 10309 - received message: [1, 1, None, [1, {'functions': [{'return_type': 'Integer', 'since': 1, 'method': True, 'parameters': [['Buffer', 'buffer']], 'name': 'nvim_buf_line_count'},