4 ms·
You can also run fast.com from the command-line: https://github.com/sindresorhus/fast-cli https://github.com/sindresorhus/fast-cli
by mofle 10y ago
You can also run fast.com from the command-line: https://github.com/sindresorhus/fast-cli https://github.com/sindresorhus/fast-cli
- joeblau 10y agoThis is cool; just ran it, but I couldn't tell that it was doing anything. Maybe adding some soft of indicator/throbber that lets you know it's processing. fast | cat 860 Mbps
- mofle 10y agoIt shows an animated spinner if you don't redirect the output.
- joeblau 10y agoAh okay awesome! Thanks.
- deleted 10y ago[deleted]
- mi100hael 10y agoWhy are you redirecting the output of the script which would otherwise be printed to a program that does nothing but print the output?
- corobo 10y agoBest guess is because it's what the --help says to do if you just glance at it $ fast --help Usage $ fast $ fast > file Example $ fast | cat 90 Mbps
- fidz 10y agoI am impressed that Phantom could do almost everything https://github.com/sindresorhus/fast-cli/blob/master/api.js#L34 https://github.com/sindresorhus/fast-cli/blob/master/api.js#...
- Tiksi 10y agoHere's a quick oneliner I threw together that does pretty much the same thing for those of us that dont have/want npm and node: mkfifo /tmp/fast.com.test.fifo ;token=$(curl -s https://fast.com/app-ed402d.js|egrep -om1 'token:"[^"]+'|cut -f2 -d'"'); curl -s "https://api.fast.com/netflix/speedtest?https=true&token=$token" |egrep -o 'https[^"]+'|while read url; do first=${url/speedtest/speedtest\/range\/0-2048}; next=${url/speedtest/speedtest\/range\/0-26214400};(curl -s -H 'Referer: https://fast.com/' -H 'Origin: https://fast.com' "$first" > /tmp/fast.com.test.fifo; for i in {1..10}; do curl -s -H 'Referer: https://fast.com/' -H 'Origin: https://fast.com' "$next">>/tmp/fast.com.test.fifo; done)& done & pv /tmp/fast.com.test.fifo > /dev/null; rm /tmp/fast.com.test.fifo