How to print out a list of a YouTube channel`s latest video uploads with the command-line.

There 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 the channel page and looking … Read more

How to copy text to a pastebin easily, and some other very useful tips.

This 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." | curl -F file=@- https://0x0.st/ This … Read more

How to print out a list of all BBC news headlines with the command line. This is very cool.

This 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. Updated command for 2017, as … Read more

How to get just the IP address of your Linux machine using curl.

To 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 command. jason@jason-desktop:~/Documents/ipinfo/src$ dig 8.8.8.8   … Read more

How to get weather information with curl on Linux.

The 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 ― ( ) ― ↓ 9 km/h … Read more

Get the internet facing IP address of a Linux machine easily.

This 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 information about the host that … Read more

How to get the geographical location of an IP address.

How 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 "" { "ip": "203.113.124.148", "hostname": "No … Read more

How to get the weather report from the command-line in America with Linux and other cool commands.

This 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 Central Park, NY Last updated … Read more