Skip to content

Instantly share code, notes, and snippets.

View maxdevjs's full-sized avatar
💭
╯︵ ┻━┻

maxdevjs maxdevjs

💭
╯︵ ┻━┻
View GitHub Profile
@maxdevjs
maxdevjs / TrueColour.md
Created January 3, 2017 14:51 — forked from XVilka/TrueColour.md
True Colour (16 million colours) support in various terminal applications and terminals

Colours in terminal

It's a common confusion about terminal colours... Actually we have this:

  • plain ascii
  • ansi escape codes (16 colour codes with bold/italic and background)
  • 256 colour palette (216 colours + 16 ansi + 24 gray) (colors are 24bit)
  • 24bit true colour ("888" colours (aka 16 milion))
printf "\x1b[${bg};2;${red};${green};${blue}m\n"
@maxdevjs
maxdevjs / gist:728e121b520ddfd8af3b34e5583f8336
Created November 11, 2016 02:15
QMPlay2 broken on Ubuntu 16.04
Installion of https://github.com/zaps166/QMPlay2 complains
Unknown media type in type 'all/all'
Unknown media type in type 'all/allfiles'
the package is broken and must be uninstalled.
Solution:
not sure if actually necessary, but from http://askubuntu.com/questions/456183/what-does-unknown-media-type-in-type-all-all-mean#456249
@maxdevjs
maxdevjs / styles.less
Created October 26, 2016 03:22 — forked from MattMcFarland/styles.less
Ligature fonts for atom
atom-text-editor {
font-family: 'Fira Code';
font-style: normal;
text-rendering: optimizeLegibility;
}
atom-text-editor::shadow {
.string.quoted,
.string.regexp {
-webkit-font-feature-settings: "liga" off, "calt" off;
}