.
This commit is contained in:
+1
-3
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user