From d4dd309698938f3807d4a2edfd5e536cffdc8850 Mon Sep 17 00:00:00 2001 From: maudin Date: Wed, 15 Sep 2021 12:18:00 +0200 Subject: [PATCH] better ips finder --- hybris.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hybris.zsh b/hybris.zsh index 587ad7f..b338cd5 100644 --- a/hybris.zsh +++ b/hybris.zsh @@ -21,7 +21,7 @@ dualscreen() {[ $# -eq 1 ] && xrandr --auto && xrandr --output $1 --primary e() {emacsclient -n $@ > /dev/null 2>&1} tramp() {emacsclient -n $(for x in $@; do echo /root@$x:README; done) > /dev/null 2>&1} fd() {fdfind -H -I -L $@} -ips() {i=0; while [ $i -lt 10 ]; do curl -s ipinfo.io | jq -r '.ip'; i=$(($i + 1)); done | sort | uniq -c} +ips() {ssh ubnt@unifi-flux-capacitor curl -q --interface eth0 ipinfo.io 2> /dev/null | jq -r '.ip'; ssh ubnt@unifi-flux-capacitor curl -q --interface eth2 ipinfo.io 2> /dev/null | jq -r '.ip'} unifi-balance() {ssh ubnt@192.168.42.1 /opt/vyatta/bin/vyatta-op-cmd-wrapper 'show load-balance watchdog' 2> /dev/null} j() {if [ $# -eq 0 ]; then marks; else jump $@; fi} loop() {while [ 1 ]; do sh -c "$@"; done}