rsp / scripts Goto Github PK
View Code? Open in Web Editor NEWRandom shell scripts for different tasks
License: MIT License
Random shell scripts for different tasks
License: MIT License
Observed in iproute2-ss180813: output is '1000'
This corresponds to the new output of ip route get n.n.n.n, that adds now default uid 1000 at the end.
Last line of code
ip route get $t | awk '{print $NF; exit}'
should now hardcode field 7
ip route get $t | awk '{print $7; exit}'
http://checkip.amazonaws.com
http://ipinfo.io/ip
and maybe also this
http://www.cloudflare.com/cdn-cgi/trace
The commands for https, telnet and ftp depends on 4.ifcfg.me which does not seem to be live anymore. It would be nice to have some means of getting an IP info via these protocols.
Observed in iproute2-ss180813: output is '1000'
This corresponds to the new output of ip route get n.n.n.n
, that adds now default uid 1000
at the end.
Last line of code
ip route get $t | awk '{print $NF; exit}'
should now hardcode field 7
ip route get $t | awk '{print $7; exit}'
No output when the setup only has an IPv6 address. The resolver returns a non-existing domain when invoked. Workaround is to include both queries. On IPv4 locations, the command will output the address for v4 and a timeout for v6
case "$1" in ""|dns) dig +short myip.opendns.com @resolver1.opendns.com ; dig +short -6 myip.opendns.com aaaa @resolver1.opendns.com ;;
Hi,
you do not measure dns in your benchmark.
Since ifcfg.me supports dns also.
nslookup . ifcfg.me
You should add this to your test.
What about IPv6?
You should mark out the providers that have IPv6 support.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.