Yujia Qiao
Huazhong University of Science and Technology
Email: [email protected]
#!/bin/sh | |
mac_blacklist="01:00:8c:fa:1a:ae:d1" | |
leases=$(cat /tmp/dhcp.leases | sed 's/*/unknown/') | |
IFS=' | |
' | |
online_cnt=0 | |
# grep NUD status, see also https://www.ccexpert.us/routing-tcp-ip-2/neighbor-unreachability-detection.html |
# Compile and run c program, just like `go run` | |
# Usage: crun hello.c | |
# Put this to ~/.config/fish/config.fish, or create a file in ~/.config/fish/functions/ | |
function crun | |
set prog $argv[1] | |
set exec (mktemp) | |
if gcc $prog -o $exec | |
set_color brgreen | |
echo -e Compilation success. Running...\n |
Yujia Qiao
Huazhong University of Science and Technology
Email: [email protected]