user:thomas 由用户创建的 Gists
user:thomas
title:mygist 包含指定标题的 Gists
title:mygist
filename:myfile.txt 包含指定文件名的 Gists
filename:myfile.txt
extension:yml 包含指定扩展名的 Gists
extension:yml
language:go 包含指定编程语言的 Gists
language:go
topic:homelab 具有给定主题的 Gists
topic:homelab
登录
comprehensive battery information
powercfg /batteryreport
windows health checkup
dism /online /cleanup-image /checkhealth
header: fixed
.fixed-header { position: fixed; top: 20px; }
header: sticky
taking control of virtual machine ID allocation in proxmox
lower = 201 # lower vid limit upper = 250 # upper vid limit
pvesh set /cluster/options --next-id lower=201,upper=250
determine the system installation time
stat --format "%w" /
allow users to access the kernel ring buffer and view the messages using dmesg
sysctl kernel.dmesg_restrict=0
device info via udev
udevadm info -a -n /dev/{device_to_query}
limiting interface throughput using htb
tc qdisc add dev {interface} root handle 1: htb tc class add dev {interface} parent 1: classid 1:50 htb rate 50mbit ceil 50mbit tc class add dev {interface} parent 1: classid 1:100 htb rate 100mbit ceil 100mbit tc class add dev {interface} parent 1: classid 1:500 htb rate 500mbit ceil 500mbit iptables -t mangle -A POSTROUTING -o {interface} -d {ip} -j CLASSIFY --set-class 1:50 iptables -t mangle -A POSTROUTING -o {interface} -d {ip} -j CLASSIFY --set-class 1:100 iptables -t mangle -A POSTROUTING -o {interface} -d {ip} -j CLASSIFY --set-class 1:500
dns and dhcp
dnsmasq --no-daemon --port=53 \ --dhcp-range=192.168.255.100,192.168.255.200 --dhcp-leasefile=/dev/null \ --bind-interfaces --interface=eth0 --listen-address=192.168.200.1
tftp only
dnsmasq --no-daemon --port=0 \
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
由 Opengist 强力驱动 ⋅ Load: 193ms⋅