Skip to content

Instantly share code, notes, and snippets.

View juancsr's full-sized avatar
🧑‍💻
Learning rust

Juan Sarmiento juancsr

🧑‍💻
Learning rust
View GitHub Profile
@OndraZizka
OndraZizka / switchHeadphones.sh
Last active March 25, 2024 12:58
Bluetooth headset - switch between quality sound + no mic (A2DP) and crappy sound and mic (HSP/HFP)
#!/bin/bash
#### Restart Bluetooth
if [ "$1" == "resetBT" ] ; then
sudo rfkill block bluetooth && sleep 0.1 && sudo rfkill unblock bluetooth;
exit;
fi;
#### Toggle listen/speak
if [ "$1" == "" -o "$1" == "toggle" ] ; then
@andresvia
andresvia / proxyud
Last active February 28, 2017 21:32
HTTP_PROXY=http://10.20.4.15:3128
http_proxy=http://10.20.4.15:3128
HTTPS_PROXY=http://10.20.4.15:3128
https_proxy=http://10.20.4.15:3128
NO_PROXY=localhost,10.20.0.126,127.0.0.1,192.168.99.100,10.0.2.15,172.17.0.1,192.168.12.212,192.168.212.65,192.168.212.66,.udistrital.edu.co,.udistritaloas.edu.co,.xip.io
no_proxy=localhost,10.20.0.126,127.0.0.1,192.168.99.100,10.0.2.15,172.17.0.1,192.168.12.212,192.168.212.65,192.168.212.66.udistrital.edu.co,.udistritaloas.edu.co,.xip.io
export HTTP_PROXY
export http_proxy
export HTTPS_PROXY
export https_proxy