Skip to content

Instantly share code, notes, and snippets.

View guoxiao's full-sized avatar
🐳

Xiao Guo guoxiao

🐳
  • Duolingo
  • Beijing, China
  • 18:04 (UTC +08:00)
  • X @guoxiao
View GitHub Profile
@guoxiao
guoxiao / TrueColour.md
Created August 25, 2016 06:04 — 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"
@guoxiao
guoxiao / wo.txt
Last active August 29, 2015 14:13 — forked from fei-ke/wo.txt
提速:
http://bj.wokuan.cn/web/improvespeed.php?ContractNo=宽带帐号&up=09&old=07&round=29
恢复: http://bj.wokuan.cn/web/lowerspeed.php?ContractNo=宽带帐号&round=85
上面up old表示提升和本来的两种宽带类型
09是100M
07是10M
round是随机数
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'
@guoxiao
guoxiao / README.md
Created October 12, 2013 17:42 — forked from nikcub/README.md