There are NUMEROUS different ways of grabbing your external IP/other info. The way I prefer is using ifconfig.me.
curl ifconfig.me
my IP as reported by ifconfig.me
it also has multiple switches like /ua for user agent string
Go to http://ifconfig.me for a full list of switches
Monday, October 24, 2011
Friday, October 7, 2011
cURL line to post data to pastebin
TL;DR curl -d 'paste_code="she said wut wut, catsinthebutt"' 'http://pastebin.com/api_public.php'
you have to send a POST to http://pastebin.com/api_public.php with the data you want applied in the 'paste_code' attribute. In this case, "she said wut wut, catsinthebutt" is the thing that will be posted to pastebin.
pipe that to pbcopy on a mac and bam your pastebin url is in your pastebin (yo dawg)
i said wut wut!
you have to send a POST to http://pastebin.com/api_public.php with the data you want applied in the 'paste_code' attribute. In this case, "she said wut wut, catsinthebutt" is the thing that will be posted to pastebin.
pipe that to pbcopy on a mac and bam your pastebin url is in your pastebin (yo dawg)
i said wut wut!
Subscribe to:
Posts (Atom)