colewilson

Joined 5 years ago

Karma
171
Submissions
72
Member since
Oct 14
github: cole-wilson web: cole.ws
View on Hacker News

Recent submissions

Comment · 19 days ago
Very neat! It's also possible to do this 100% statically without checking the user agent, by using alternate terminal buffers:

   - `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.

Comment · 1 year ago
A few years ago, I posted my nosource.cole.ws challenge on here and recieved lots of positive feedback and wishes for a v3. Here it is! Can you find all of the flags?

EDIT: Looks like there were some ratelimiting issues that were just fixed, sorry about that.

Comment · 3 years ago
https://cole.ws

not truly a blog, but a list of projects I've done and I keep it updated

Comment · 3 years ago
I've fixed it, still unsure about the cause of the problem but it should be there now.
Comment · 3 years ago
I've fixed it, still unsure about the cause of the problem but it should be there now.
Comment · 3 years ago
Thanks! I'm working on adding a manual override, but the upstream data source has not been fixed yet: https://github.com/estiens/world_cup_json/issues/226.

EDIT: I have applied a basic fix for it on my end, but there may be instances where it still shows 1-1.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton