Use macOS native color picker in VS Code (like “Insert Color” in TextMate)

A tiny extension for Visual Studio Code, written by me (GitHub).

Posted in Releases | Tagged | Leave a comment

VS Code: bind one key to multiple commands without an extension

People wanting to assign multiple commands to a single keybinding in VS Code typically use an extension, such as multi-command or macros. However, there is another, lesser known method to achieve this using built-in functionality of VS Code — user level tasks.

Continue reading
Posted in How to’s | Tagged | 5 Comments

Apple Pro Display XDR: presets not showing up after firmware update

Problem: Apple Pro Display XDR not showing its built-in presets in System Preferences > Displays and clicking “Customize…” brings up an empty window.

Continue reading
Posted in Solutions | Tagged , | Leave a comment

Datadog: nginx access.log / error.log permission denied

Problem:

... | CORE | WARN | (pkg/logs/input/file/scanner.go:211 in startNewTailer) | open /var/log/nginx/access.log: permission denied
... | CORE | WARN | (pkg/logs/input/file/scanner.go:211 in startNewTailer) | open /var/log/nginx/error.log: permission denied
Continue reading
Posted in How to’s | Tagged , | Leave a comment

Datadog: “could not retrieve nginx version info”

Apparently Datadog fails to retrieve nginx version information when server_tokens directive in nginx configuration is set to off.

Continue reading
Posted in How to’s | Tagged , | Leave a comment

Refresh web-browser without leaving VS Code

I’ve created an extension for VS Code which lets you refresh your web-browser (Safari or Chrome) by pressing Cmd-R without leaving VS Code. Meet Refresh Browser (GitHub).

Posted in Releases | Tagged | Leave a comment

Apache Guacamole: RDP printer not working, “error parsing HTTP request header”, “Invalid character found” etc

If you’re using Apache Guacamole 1.0.0 behind an nginx reverse proxy, and Guacamole’s RDP printer doesn’t work, and browser console logs error 400, welcome to read further.

Continue reading
Posted in Solutions | Tagged , | Leave a comment

Apache Guacamole: how to change the default URL path (/guacamole) to something else

Say you want to change Apache Guacamole’s URL from http://server:8080/guacamole to something like http://server:8080/my-hidden-guacamole-instance (or perhaps you’re using nginx to proxy requests to Guacamole / Tomcat and you don’t want any path at all).

(See Docker image specific instructions in the comments section below).

Continue reading
Posted in How to’s | Tagged | 7 Comments

macOS High Sierra: Spotlight search not working — “Database mapping failed” error spammed to the system log

Solution can be found here (read the post that starts from “I’ve solved this…” by Design Complex).

Continue reading
Posted in Solutions | Tagged | Leave a comment

macOS High Sierra doesn’t start after updating (stuck on Apple logo) — “failed to unwrap volume key” error

The first thing you want to do when your Mac system doesn’t start is to start up into the verbose mode to see if there any error messages. Don’t try to fix the problem before diagnosing!

Continue reading
Posted in Solutions | Tagged | Leave a comment