Skip to content

Instantly share code, notes, and snippets.

@severnt
severnt / gist:f8a14345a0b4f8dc9c57e35d15403c64
Created December 22, 2023 21:00
Fix Panasonic SA-XR25 static/no audio
There are four surface mounted caps, 22uf/10v under the surround processor PCB on the main PCB.
Just replace them all.
https://www.fixya.com/support/t451420-receiver_lost_audio
https://youtu.be/INQLUGuHHFI
@severnt
severnt / vpnc-script
Last active May 25, 2022 13:39
vpnc-script with Cisco split DNS
#!/bin/sh -x
#
# Originally part of vpnc source code:
# © 2005-2012 Maurice Massar, Jörg Mayer, Antonio Borneo et al.
# © 2009-2022 David Woodhouse <dwmw2@infradead.org>, Daniel Lenski <dlenski@gmail.com> et al.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
@severnt
severnt / detectproxy.main.go
Created December 14, 2021 00:19
https web server that can detect when the client is using a proxy by computing request to request delta vs TCP RTT
package main
import (
// "fmt"
// "io"
"context"
"crypto/tls"
"log"
"math"
"net"
@severnt
severnt / github-go2PR.js
Created October 26, 2020 15:31
Bookmarklet to jump to PR
javascript:(function(){ m=document.location.href.match(/^https:\/\/github\.com\/[^/]+\/[^/]+/);if (!m) { window.alert('Not github window!') } else { pr=window.prompt('PR number?'); if(pr){document.location.href = m[0]+'/pull/'+pr;}}; })();
### Keybase proof
I hereby claim:
* I am severnt on github.
* I am severnt (https://keybase.io/severnt) on keybase.
* I have a public key ASD_frKUd7863HaouPQ87THHk12nj-F7pZYJHy1aIuDcHQo
To claim this, I am signing this object: