Skip to content

Instantly share code, notes, and snippets.

@nstanke
nstanke / enable_ws.sh
Last active March 5, 2024 14:43
Synology Bitwarden_rs Websocket setup without SSH
#!/bin/bash
LOC_DIR="/etc/nginx"
if [ ! -f $LOC_DIR/ws.locations ]; then
echo """
location /notifications/hub {
proxy_pass http://localhost:$3;
proxy_set_header Upgrade \$http_upgrade;
proxy_set_header Connection "upgrade";
@ArrEssJay
ArrEssJay / gps.sh
Last active August 7, 2022 13:47
Parse gpsd JSON messges with telegraf
#!/bin/bash
gpspipe -w | jq -c -M '. | select( (.class == "SKY" and has("satellites") == true) or .class == "TPV")' | while IFS= read obj
do
echo $obj
done