Also check out HTTPie: https://github.com/jkbr/httpie/ I much prefer it over curl. $ http GET http://yourmom.ca/
Command line tools every web dev needs to know
11–20 of 71 posts
Re: Command line tools every web dev needs to know
#12We are interviewing for experienced developers at the moment and the lack of general unix knowledge is really surprising. A little bit of shell scripting goes a long way in automating away dev work.
Also, typing. I am frequently amazed to see professional software developers with years of experience in the field, who only type using their two index fingers. You probably do not need to type 120 WPM to be an amazing programmer, but typing without looking at the keyboard is absolutely essential.
Re: Command line tools every web dev needs to know
#13Another useful one; Fire up a instant web-server from local folder on http://localhost:8080 : > python -m SimpleHTTPServer
> python -m SimpleHTTPServer 5000
Re: Command line tools every web dev needs to know
#14Re: Command line tools every web dev needs to know
#15one of my favorites is querying dns to get wiki excerpts
dig +short txt bmw.wp.dg.cx
"(BMW), is an independent German automobile manufacturing company founded in 1916. It also produces motorcycles, is the owner of the MINI brand and is the parent company of Rolls-Royce Motor Cars. http://en.wikipedia.org/wiki/BMW"
http://www.commandlinefu.com/commands/view/2829/query-wikipe...Re: Command line tools every web dev needs to know
#16Earlier quoted context omitted.
Also, typing. I am frequently amazed to see professional software developers with years of experience in the field, who only type using their two index fingers. You probably do not need to type 120 WPM to be an amazing programmer, but typing without looking at the keyboard is absolutely essential.
Why? What projects have slipped due to programmer's inability to type in all the necessary code on time?
Re: Command line tools every web dev needs to know
#17Another useful one; Fire up a instant web-server from local folder on http://localhost:8080 : > python -m SimpleHTTPServer
> python3 -m http.server
Serving HTTP on 0.0.0.0 port 8000 ...
> python3 -m http.server 8080
Serving HTTP on 0.0.0.0 port 8080 ...Re: Command line tools every web dev needs to know
#18Even though this is Google and they probably don't have a problem with this, I don't think you should benchmark servers that don't belong to you. It's not nice and could be mistaken for a DOS attack.
Re: Command line tools every web dev needs to know
#19Re: Command line tools every web dev needs to know
#20Also check out HTTPie: https://github.com/jkbr/httpie/ I much prefer it over curl. $ http GET http://yourmom.ca/
see also burl: https://github.com/visionmedia/burl been good for testing requests against json apis