Skip to content

Instantly share code, notes, and snippets.

@fnky
fnky / ANSI.md
Last active May 15, 2025 05:58
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@cecilemuller
cecilemuller / 2019-https-localhost.md
Last active April 30, 2025 12:33
How to create an HTTPS certificate for localhost domains

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).

@RoboPhred
RoboPhred / monaco-react-tsx.ts
Created April 6, 2018 23:54
Monaco playground snippet for TSX support
// The Monaco Editor can be easily created, given an
// empty container and an options literal.
// Two members of the literal are "value" and "language".
// The editor takes the full size of its container.
// Important Bit #1: Typescript must see the 'file' it is editing as having
// a .tsx extension
const modelUri = monaco.Uri.file("foo.tsx")
// Important Bit #2
@willurd
willurd / web-servers.md
Last active May 15, 2025 16:42
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000