user:thomas utente che ha creato il gist
user:thomas
title:mygist titolo del gist
title:mygist
filename:myfile.txt nome di file nel gist
filename:myfile.txt
extension:yml estensione del file nel gist
extension:yml
language:go linguaggio del file nel gist
language:go
topic:homelab Gist con l'argomento dato
topic:homelab
Entra
Unito 1 year ago
move the socket
mv /var/run/docker.sock /var/run/docker.sock.original
redirect all socket communications to a tcp listener in port 1234
socat TCP-LISTEN:1234,reuseaddr,fork UNIX-CONNECT:/var/run/docker.sock.original
arp command with vendor information
arp -n | grep -viE "inc|iface" \ | while read -r ip type mac state ifname; \ do vendor=$(echo ${mac^^} \ | sed 's/://g' \ | cut -c 1-6); echo -ne "${ifname}\t${ip}\t${mac} $(grep ${vendor} /usr/share/ieee-data/oui.txt \ | cut --output-delimiter=" " -c 1-6,23- )\n"; \ done
Creato da Opengist ⋅ Load: 36ms⋅