Added "down4me" plugin
parent
63a00c757d
commit
63c60e5fa3
|
|
@ -6,6 +6,10 @@ function ips {
|
||||||
ifconfig | grep "inet " | awk '{ print $2 }'
|
ifconfig | grep "inet " | awk '{ print $2 }'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function down4me() {
|
||||||
|
curl -s "http://www.downforeveryoneorjustme.com/$1" | sed '/just you/!d;s/<[^>]*>//g'
|
||||||
|
}
|
||||||
|
|
||||||
function myip {
|
function myip {
|
||||||
res=$(curl -s checkip.dyndns.org | grep -Eo '[0-9\.]+')
|
res=$(curl -s checkip.dyndns.org | grep -Eo '[0-9\.]+')
|
||||||
echo "Your public IP is: ${bold_green} $res ${normal}"
|
echo "Your public IP is: ${bold_green} $res ${normal}"
|
||||||
|
|
@ -13,7 +17,7 @@ function myip {
|
||||||
|
|
||||||
# Make a directory and immediately 'cd' into it
|
# Make a directory and immediately 'cd' into it
|
||||||
|
|
||||||
function mkcd(){
|
function mkcd() {
|
||||||
mkdir -p "$*"
|
mkdir -p "$*"
|
||||||
cd "$*"
|
cd "$*"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue