This commit is contained in:
Nachuan Tang
2022-07-07 15:22:57 -05:00
parent 6431cb402e
commit 8ee9275b53
2 changed files with 1 additions and 10 deletions
+1 -3
View File
@@ -13,8 +13,6 @@ else
DOTFILE_DIR=$(dirname ${BASH_SOURCE[0]})/
fi
source "$DOTFILE_DIR/bash_tools/helper.sh"
function ipinfo(){
local api_str="http://ip-api.com/json/$1?fields=query,country,regionName,city,district,zip,isp,org,reverse,mobile,proxy,hosting"
if ! hash python; then
@@ -36,7 +34,7 @@ function odict(){
# self host directory
function dict(){
python $DOTFILE_DIR/bash_tools/dict.py $1
python $DOTFILE_DIR/bash_tools/dict.py $1 $2
}
# Linux specific functions
-7
View File
@@ -1,7 +0,0 @@
# get self-host server ip
SERVERIP=x.useless.pw
$(which ifconfig > /dev/null 2>&1) && \
ip=$(ifconfig | grep -Po "10.0.0.[01][0-9]+")
[ "$ip" != "" ] && SERVERIP=10.0.0.100