Ruby

configlinux

Install Nokogiri (with HTML5 parsing)

gem install nokogiri

Since Nokogiri 1.11 the gem ships precompiled native libraries for Linux and macOS, so there is no compiler step and no brew install libxml2 libxslt to set up first. The old ARCHFLAGS="-arch x86_64" workaround is no longer needed on current versions.

HTML5 parsing used to live in a separate nokogumbo gem. Since Nokogiri 1.12 it is built in: drop nokogumbo as a dependency and parse with Nokogiri.HTML5(...).

Discourse: force full HTTPS (including OAuth callbacks)

In file config/initializers/09-omniauth.rb:

OmniAuth.config.full_host = 'https://...domain...'

Related

Keyboard shortcuts

/Open search
CtrlKOpen search (Cmd+K on macOS)
?Show this cheat sheet
Ctrl/Show this cheat sheet (Cmd+/ on macOS)
EscClose search or this cheat sheet

Turns off the single-key shortcuts (/, ?). Ctrl/Cmd+K and Ctrl/Cmd+/ stay.