6 ms·
How `curl -L cueup.com/jobs` works
- danicgross 14y agoOP here. I'm curious to learn of any other creative uses of ANSI and curl. Does anyone know of websites that use it as an easter egg?
- ysangkok 14y agosince you're only dependent on dumping stuff to the terminal, I think Telnet is comparable. Did you see the Blinkenlights Star Wars?
- pjscott 14y agoThere are some pretty cool Telnet BBSes still running: http://www.telnetbbsguide.com/brieflist.asp http://www.telnetbbsguide.com/brieflist.asp It's a good way to be suddenly overpowered by nostalgia. I feel this strange desire to PEEK and POKE, and perhaps to call interrupt 13h.
- dice 14y agoNot curl, but I did something similar for a particularly dramatic death scene in a MUD 15 years or so ago. The hardest part was shutting up all of the normal MUD chatter that the players get (OOC chat and the like).
- songgao 14y agoOne thing that I often use is curl ifconfig.me But this is so damn cool!
- deleted 14y ago[deleted]
- minikomi 14y agoI just added one to http://poyo.co http://poyo.co .. thanks for the idea!
- pfranz 14y agoSlashdot used to stick random Futurama quotes in their http header. I'm not seeing it anymore. curl -sI http://slashdot.org http://slashdot.org
- patrickod 14y agoIs anyone else unable to see this due to tech.cueup.com not resolving?
- pjscott 14y agoYou know the worst kind of DNS problem? The kind that only affects some people. Yeah, I can't resolve the domain name either. Ugh. For now, the Coral Cache hack works: http://tech.cueup.com.nyud.net/blog/2013/03/06/how-our-terminal-friendly-jobs-page-works/ http://tech.cueup.com.nyud.net/blog/2013/03/06/how-our-termi... EDIT: Looks fixed now.
- re_todd 14y agoIt might help to add Google's DNS to the list of DNS servers, e.g. on my Ubuntu, I sometimes add "nameserver 8.8.8.8" to the end of my "/etc/resolv.conf" file.
- ysangkok 14y agoWorks with Wget too: wget -q --user-agent="curl" -O - cueup.com/jobs
- recroad 14y agoHonestly, fuck anyone who does this for a job posting.
- arjie 14y agoWhy? There's a normal (nice looking) page for other user agents. You haven't lost anything.
- akavi 14y agoI dumped it into a file out of habit, which sort of ruined the effect. I did wonder why a ~300 line textfile took so long to DL, though.
- danicgross 14y agoAny hacks you can think of to detect this from the server?
- tedchs 14y agoCurl is not going to send different request headers to the server based on whether its stdout is redirected to a file.
- bdarnell 14y agoStart out by sending dummy data as fast as you can. Once you've sent a few TB you can be relatively confident that it's going to a terminal instead of a file (which would have filled up the disk by now). Then you can start slowly sending the real data.
- deleted 14y ago[deleted]
- spitfire 14y agoReminds me of an old dialup BBS. Can I post a comment on the wall?
- cheeze 14y agoMaybe it's just me (using PuTTY), but it is next to impossible to read while it scrolls up my screen. Once it's done scrolling I can't see most of the listings because by default my terminal doesn't save that many lines of history. Awesome idea though
- pjscott 14y agoI'm pretty sure there's a setting in PuTTY to increase the size of the scrollback buffer. Memory is cheap these days.
- philfreo 14y agoWhere are these colorMarkdown and htmlToMarkdown functions?
- hamburglar 14y agoThis is a cool idea, but anyone who needs "how it works" explained is really not the target audience.
- raverbashing 14y agoI'm afraid my system does not have yet support to http protocol This server does not apparently has any service listening on port 23 so unfortunately I can't telnet to it (I'm not sure what's this /jobs as well, is this a Gopher page? oh well...)
- laumars 14y agoPort 22 is SSH. Telneting to it wouldn't do much good aside telling you which sshd was listening. I'm also a little confused by what you mean when you said your system doesn't support "HTTP protocol", curl has been a staple for Unix and Linux for over a decade. Or are you trying to run curl from cmd.exe in windows?
- raverbashing 14y agoI meant port 23, sorry And maybe you're too young to understand the joke ;)
- laumars 14y agoPossibly. I know good jokes are ruined if they have to be explained, but would you mind on this occasion :)
- lloeki 14y agoSaving the explanation, try this: $ telnet towel.blinkenlights.nl
- laumars 14y agoI don't think there's a single nerd on the planet who hasn't already seen that.
- raverbashing 14y agoWell, here goes: Once upon a time (around 1995, first time I tried this 'internet' thing) the internet already existed. But this newfangled http protocol was not very popular (it existed since 1991) You see, Curl was created in 1997, Wget in 1996 The way to access systems was through telnet mostly. Some modern clients, like lynx, also supported Gopher http://en.wikipedia.org/wiki/Gopher_(protocol) http://en.wikipedia.org/wiki/Gopher_(protocol) (Yes, lynx got http support at a later time) So, their choice for a page readable from a terminal ends up being kind of an Anachronism =)
- iso-8859-1 14y agoSadly there seems to be no MIME type for ANSI art. Of course this should depend on the "Accept" header and not the User Agent. But it seems infeasible.
- redmattred 14y agoYour /jobs link in your sites footer is 404ing
- jkbr 14y agoWith HTTPie (master): http --pretty=none https://www.cueup.com/jobs User-Agent:curl (`--pretty=none` is needed because the server incorrectly sends `Content-Type: text/html`)