Skip to content

Instantly share code, notes, and snippets.

View contraexemplo's full-sized avatar
🏠
Working from home

Anna e só contraexemplo

🏠
Working from home
View GitHub Profile
$ pipenv install
Installing dependencies from Pipfile.lock (63af01)…
Ignoring importlib-metadata: markers 'python_version < "3.8"' don't match your environment
An error occurred while installing psycopg2==2.7.3.2! Will try again.
🐍 ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 54/54 — 00:00:14
Installing initially–failed dependencies…
Collecting psycopg2==2.7.3.2▉▉▉▉▉▉▉▉▉ 0/1 — 00:00:00
Using cached psycopg2-2.7.3.2.tar.gz (425 kB)
Building wheels for collected packages: psycopg2
Building wheel for psycopg2 (setup.py): started
@contraexemplo
contraexemplo / pulseaudio-noise-cancelling.md
Last active October 20, 2023 18:15
Como ativar o módulo de cancelamento de ruído do PulseAudio

Primeiro, verifique se o módulo está presente na sua instalação digitando pacmd em seu terminal, listando todos os módulos presentes pelo comando list-modules e procurando por module-echo-cancel. Não está presente? Você precisa adicionar algumas linhas ao arquivo de texto responsável pela configuração do PulseAudio.

Com o seu editor favorito, abra (com privilégios de administrador) o arquivo /etc/pulse/default.pa e adicione as seguintes linhas ao fim do arquivo:

### Enable Echo/Noise-Cancellation
load-module module-echo-cancel use_master_format=1 aec_method=webrtc aec_args="analog_gain_control=0\ digital_gain_control=1" source_name=echoCancel_source sink_name=echoCancel_sink
set-default-source echoCancel_source
set-default-sink echoCancel_sink
@contraexemplo
contraexemplo / screenshot-management.md
Last active May 8, 2020 21:38
Screen capture and screenshot management

My favorite screenshot capture software are Flameshot and Shutter. The latter hasn't had an active development in years, but I like to mention both of them because sometimes I simply can't actively choose between the two depending on the distro I'm using—for instance, Flameshot fails to launch on Pop!_OS 18.04 (a Ubuntu-based distribution) without some intense troubleshooting while Shutter does it successfully (and smoothly); they both fail to launch on Fedora 31 (which is the reason why I ended up abandoning the idea of having it as my main distro), but work fine on Manjaro (which is based on Arch Linux).

But why such software is so important to me to the point of making me give up on whole distributions? Besides offering an easy way to capture both the whole screen and portions of it, they also offer basic edit tools relevant for technical writers such as colorful arrows and boxes, blurring and pixelating. Shutter even offers options for selecting a single menu or cascading menus and capturing tool