Skip to content

Instantly share code, notes, and snippets.

client_loop: send disconnect: Broken pipe

If you encounter the above issue while ssh to a remote host, you should try to add following options to the /etc/ssh/ssh_config.

Host *
  IPQoS=throughput
@zachflower
zachflower / rainbow.cpp
Last active February 19, 2024 09:34
Smooth RGB LED Color Transitions (Arduino)
int redPin = 11;
int greenPin = 10;
int bluePin = 9;
int r = 0;
int g = 0;
int b = 0;
void setup() {
pinMode(redPin, OUTPUT);
@oneohthree
oneohthree / quick-slugify.sh
Last active February 22, 2024 01:53
Quick bash slugify
echo "$STRING" | iconv -t ascii//TRANSLIT | sed -r s/[^a-zA-Z0-9]+/-/g | sed -r s/^-+\|-+$//g | tr A-Z a-z