Skip to content

Instantly share code, notes, and snippets.

@leo-pfeiffer
leo-pfeiffer / pomodoro.sh
Last active May 7, 2024 12:41
Pomodoro timer for the (Mac OS) terminal
#!/bin/bash
set -eu
# sourceable pomodoro command
pomodoro() {
# print help
echo_help() {
# Display help
echo "Pomodoro timer for the terminal."
@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
@btskinner
btskinner / .bashrc
Created January 20, 2020 18:30
Bash profile settings
# -------
# .bashrc
# -------
# fix colors
export TERM=xterm-256color
# add to path
export PATH="/usr/local/opt:/usr/local/opt/ruby/bin:$PATH"
@btskinner
btskinner / .emacs
Last active May 9, 2022 20:23
My .emacs file
;; -----------------------------------------------------------------------------
;;
;; [ FILE ] Emacs customization file
;; [ NAME ] .emacs
;; [ PATH ] ~/.emacs
;; [ AUTH ] Benjamin Skinner @btskinner
;; [ INIT ] 2 August 2017
;; [ REVN ] 22 May 2021
;;
;; -----------------------------------------------------------------------------
@joepie91
joepie91 / vpn.md
Last active May 9, 2024 17:09
Don't use VPN services.

Don't use VPN services.

No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.

Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.

  • A Russian translation of this article can be found here, contributed by Timur Demin.
  • A Turkish translation can be found here, contributed by agyild.
  • There's also this article about VPN services, which is honestly better written (and has more cat pictures!) than my article.

<3


Ageism hits women harder than it does men.
All the "which do you think would make you happier" section answers put the responsibility on me to fix my issues with being a woman in STEM. I need my male colleagues to not talk over me and to verify they heard what I have to say. I would like my fair share of eye contact during technical discussions. I'm sick of the constant pissing matches that come from a solution not being a particular dev's solution so we have to refactor said existing solution AGAIN. As someone who is talked over and is denied eye contact, how hard do you think I have to fight to be heard or have my solutions last? Being told I'm recognized as talented in my field, only to have some basic computer science concept explained to me in the speaker's next breath (I do think this is a general geek problem so I won't call it mansplaining but the behavior is exhausting all the same).
A lot of my male co-workers don't want to see or are completely oblivious to the sexism that their f
@mbostock
mbostock / .block
Last active October 10, 2023 22:17
Mitchell’s Best-Candidate II
license: gpl-3.0