Get a nice weather report with Powershell on Windows.
How to use Powershell to get a weather report on the command-line.
Read MoreHow to use Powershell to get a weather report on the command-line.
Read MoreThere is an easy way to print out a list of a YouTube channel`s latest video uploads with the command line. This involves curl and grep. This is a very neat trick. Below is an example of this in action. Get the Youtube channel-id by viewing the HTML source of…
Read MoreExtracting text from a website can be hard to do, but there are easier ways to get around this. The curl utility is used to view the contents of a website in the terminal. This is part of the solution. But we need to filter the output for a particular…
Read MoreThis command will copy text to a pastebin online using curl. 4.4 Mon Sep 16 jason@Yog-Sothoth 0: $ echo "This is a message I want to save online." | curl -F file=@- https://0x0.st/4.4 Mon Sep 16 jason@Yog-Sothoth 0: $ echo "This is a message I want to save online." |…
Read MoreThis simple one-liner will print out all of the news headlines from the BBC news website in a simple text format. This is useful if you want to do something with a list like this. Or if you just want a listing to see if there is anything interesting happening….
Read MoreTo get just the IP address of your Internet facing Linux machine, use this command. jason@jason-desktop:~/Documents/ipinfo/src$ curl icanhazip.comjason@jason-desktop:~/Documents/ipinfo/src$ curl icanhazip.com This will return just your IP address. This is another way to get this information. jason@jason-desktop:~/Documents$ curl ipinfo.io/ipjason@jason-desktop:~/Documents$ curl ipinfo.io/ip To get information about a DNS server, use the dig…
Read MoreThe curl command on Linux may be used to get weather information from the Internet. The curl wttr.in/”new york” command will retrieve weather information from wttr.in. [jason@darknet:~] curl wttr.in/"new york" Weather for City: New York, United States of America \ / Clear .-. 6 – 8 °C ― (…
Read MoreThis simple command will print out the Internet facing IP address of a Linux machine in no time. curl ifconfig.me/ipcurl ifconfig.me/ip This will return the useragent that is used to access this URL. ubuntu ~ $ curl ifconfig.me/ua curl/7.35.0ubuntu ~ $ curl ifconfig.me/ua curl/7.35.0 Use this string to get all…
Read MoreHow to get the geographical location of an IP address. This simple command will get this for you. [jason@darknet:~] curl ipinfo.io/203.113.124.148 ; echo "" { "ip": "203.113.124.148", "hostname": "No Hostname", "city": "", "region": "", "country": "TH", "loc": "13.7500,100.4667", "org": "AS9737 TOT Public Company Limited" }[jason@darknet:~] curl ipinfo.io/203.113.124.148 ; echo ""…
Read MoreThis is how to get the weather report for any American zip code with the Linux command-line. Type sudo apt-get install weather-util to install this utility on Linux Mint 14. In this example we are checking New York City. john@adeptus-mechanicus ~ $ weather 10001 Current conditions at New York City…
Read More