4 ms·
> Only downside is that the urls look a bit ugly. If /fred returns HTML, then the URL is perfectly fine, since the only real consumer of fred.md or fred.json a
by MenhirMike 3y ago
> Only downside is that the urls look a bit ugly.
If /fred returns HTML, then the URL is perfectly fine, since the only real consumer of fred.md or fred.json are automated systems/API clients, and they couldn't care less what the URL looks like, only that it's predictable.
- manwe150 3y agoIt is a good trick with GitHub though that you can add .patch or .diff to the url to fetch the content without styling
- amake 3y agoIt's not just styling. The content is actually a `git format-patch` patch for the former a unified-format diff for the latter.
- going_north 3y agoAnother good one for GitHub is that you can do github.com/[username].png to get that username's profile picture.
- theblazehen 3y agoAnd github.com/[username].keys to get their ssh keys
- barosl 3y agoWe have github.com/[username].gpg to get their OpenPGP keys, too!
- rapnie 3y agoJust go for .secrets to get it all in one request.
- withinboredom 3y ago2 things. What about any of that is "secret?" This endpoint does not work.
- mewpmewp2 3y agoTry .credit-card instead. Pretty sure that one works.
- moondev 3y agoAdding .pibb to a gist url is another nice trick