Skip to content

Instantly share code, notes, and snippets.

View adsb-related-code's full-sized avatar

ADS-B related code adsb-related-code

View GitHub Profile
@adsb-related-code
adsb-related-code / gist:b1e42a3420186422ac1132770f59df0f
Created April 28, 2021 14:34
wpa_supplicant without shitty qoutes
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=US
network={
ssid="PoopWi"
scan_ssid=1
psk="crapsecurity"
}
@adsb-related-code
adsb-related-code / zero-w-tuner.sh
Created April 19, 2021 23:46
ADSBX image ZeroW make it work
#!/bin/bash
set -e
echo 'Disabling services to save the Zero ...'
echo 'Prom services ...'
sudo systemctl disable --now prometheus-dump1090-exporter.service
sudo systemctl disable --now prometheus-node-exporter.service
sudo systemctl disable --now prometheus-node-exporter-apt.timer
sudo systemctl disable --now prometheus-node-exporter-smartmon.timer
sudo systemctl disable --now prometheus-node-exporter-ipmitool-sensor.timer
sudo systemctl disable --now prometheus.service
package main
import (
"bufio"
"flag"
"fmt"
"log"
"net"
"os"
"time"
/usr/lib/go-1.10/src/internal/poll/fd_unix.go:243 +0x46
net.(*netFD).Write(0xc420198580, 0xc4274f4000, 0x61e52, 0x62000, 0xc4291d4000, 0x61e52, 0x62000)
/usr/lib/go-1.10/src/net/fd_unix.go:220 +0x4f
net.(*conn).Write(0xc42000e058, 0xc4274f4000, 0x61e52, 0x62000, 0x0, 0x0, 0x0)
/usr/lib/go-1.10/src/net/net.go:188 +0x6a
main.sendDataToClient(0x5acb60, 0xc42000e058, 0xc4291d4000, 0x61e52)
/home/abx/tcp-server/tcp-gist-coder543.go:43 +0x7d
created by main.sendDataToClients
/home/abx/tcp-server/tcp-gist-coder543.go:59 +0x11f
goroutine 3797 [semacquire]:
Goroutines: 11 Clients: 61
Last GC:1535572859550352140 Next GC: 46 MB
Heap from OS: 27 MB Heap Alloc: 23 MB
Free: 389 Heap Idle: 3.5 MB
Mallocs: 1305 Live (mallocs-free): 916
Heap Released: 0 B Heap InUse: 23 MB
Goroutines: 118 Clients: 66
Last GC:1535572917588411684 Next GC: 141 MB
Goroutines: 33 Clients: 66
Last GC: 1535564701628687411 Next GC: 172 MB
Memory Acq: 242 MB Heap Alloc: 159 MB
GC Pool Mem: 82 MB Heap InUse: 160 MB
Goroutines: 37 Clients: 65
Last GC: 1535564709572555770 Next GC: 63 MB
Memory Acq: 242 MB Heap Alloc: 39 MB
Memory Acq: 670 MB Heap Alloc: 599 MB
GC Pool Mem: 70 MB Heap InUse: 600 MB
Goroutines: 569 Clients: 68
Last GC: 1535562232445609828 Next GC: 724 MB
Memory Acq: 730 MB Heap Alloc: 388 MB
GC Pool Mem: 341 MB Heap InUse: 389 MB
Goroutines: 194 Clients: 67
Last GC: 1535556739816365845 Next GC: 244 MB
Memory Acq: 234 MB Heap Alloc: 125 MB
GC Pool Mem: 109 MB Heap InUse: 125 MB
Goroutines: 203 Clients: 67
Last GC: 1535556739816365845 Next GC: 244 MB
Memory Acq: 266 MB Heap Alloc: 229 MB