Skip to content

Instantly share code, notes, and snippets.

@granbom
granbom / default-win10.reg
Last active October 16, 2020 19:06
Solarized console on Windows 10 WSL
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Console]
"ColorTable00"=dword:000c0c0c
"ColorTable01"=dword:00da3700
"ColorTable02"=dword:000ea113
"ColorTable03"=dword:00dd963a
"ColorTable04"=dword:001f0fc5
"ColorTable05"=dword:00981788
"ColorTable06"=dword:00009cc1
@granbom
granbom / openssl IMAP connect
Created March 6, 2018 02:39
IMAP test with openssl
openssl s_client -crlf -connect example.com:993
tag login user@example.com password
tag LIST "" "*"
tag SELECT INBOX
tag STATUS INBOX (MESSAGES)
tag FETCH x:y (BODY[HEADER])
tag FETCH y (BODY)
tag FETCH y (BODY[n])
tag LOGOUT
run
control /name Microsoft.DefaultPrograms /page pageFileAssoc
replace black colour to one new colour
mogrify -path "target/path/" +level-colors lightgray "source/path/*.png"
replace black and white image with new "color" (note the comma)
mogrify -path "target/path/" +level-colors lightgray, "source/path/*.png"