colewilson
Joined 5 years ago
Karma
171
Submissions
72
Member since
Oct 14
github: cole-wilson
web: cole.ws
View on Hacker NewsJoined 5 years ago
- `curl -L https://cole.ws` (my personal portfolio site) does this
It embeds the actual HTML inside an alternate terminal buffer (starting with `<!--\x1b[?1049h-->\r` and ending with `<!--\x1b[?1049l\x1b[3D\r`), and has the curl-able content appended to the end.When you curl it, it still writes the HTML to your terminal, but immediately clears that buffer and writes the ANSI version to your real screen. In browsers, this ANSI stuff is hidden in an HTML comment. This is useful for static sites on GitHub pages or something.
EDIT: Looks like there were some ratelimiting issues that were just fixed, sorry about that.
not truly a blog, but a list of projects I've done and I keep it updated
EDIT: I have applied a basic fix for it on my end, but there may be instances where it still shows 1-1.