13. January 2018

How to change Windows 10 to grayscale mode and back to color mode

Windows 10 (Fall Creators Update 2017 – winver: 1709) has one neat feature which might be handy for graphic designers and photographers. You can quickly can turn your display quickly to grayscale (black and white).

Some people activates this feature just by accident and they do not know how to turn Windows 10 back to color mode.

The keyboard shortcut is pretty simple:

Windows + CTRL + C

Color mode of Windows 10:

Grayscale (black and white) mode of Windows 10:

You can read more at Microsoft web site.

5. February 2017

Colorful log from MQTT with timestamp

The easiest way to subscribe to all messages on MQTT server like Mosquitto is following command:

mosquitto_sub -v -t '/#'

The only problem is that result is just plain text without timestamp which makes it harder to spot some messages.

The solution to the problem is quite simple. Just pipe output of subscription command to xargs which will inject date and to ccze which will add colors. Here is the command:

mosquitto_sub -v -t '/#' | xargs -d$'\n' -L1 sh -c 'date "+%d.%m.%Y %T $0"' | ccze -m ansi

Result: