Sunday, April 5, 2015

Setting Terminal Colors

Just a forewarning, this has been sitting in my drafts folder for a very long time, and I'm not sure if it is complete but figured I'd publish it now otherwise delete it.
  • On FreeBSD and Mac OS Xls shows colors if the CLICOLOR environment variable is set or if-G is passed on the command line. The actual colors are configured through the LSCOLORSenvironment variable (built-in defaults are used if this variable is not set). To show directories in light blue, use
    export LSCOLORS=Exfxcxdxbxegedabagacad

.bash_profile

export CLICOLOR=1
export LSCOLORS=gxbxhxdxcxhxhxhxhxcxcx


. ~/.bash_profile


Colors for Dark Terminal Themes:
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced

Dark Terminal Colors









Colors for Light Terminal Themes:
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad

Light Terminal color theme



















The color designators are as follows:

a black
b red
c green
d brown
e blue
f magenta
g cyan
h light grey
A bold black, usually shows up as dark grey
B bold red
C bold green
D bold brown, usually shows up as yellow
E bold blue
F bold magenta
G bold cyan
H bold light grey; looks like bright white
x default foreground or background

Note that the above are standard ANSI colors. The actual
display may differ depending on the color capabilities of
the terminal in use.

The order of the attributes are as follows:

1. directory
2. symbolic link
3. socket
4. pipe
5. executable
6. block special
7. character special
8. executable with setuid bit set
9. executable with setgid bit set
10. directory writable to others, with sticky bit
11. directory writable to others, without sticky bit

Complete Online Defensive Driving In Minutes Not Hours - 4k Video


Ever have to take online driving class? If so, this video will show you how to breeze through it in a matter of minutes instead of hours. Just a simple JavaScript command allows you to bypass the timer that forces you to wait 7-12 minutes per page. You don't need to know anything about JavaScript to use this cheat, and you can do it in most any modern browser. I used Google Chrome for this video, but it is a similar process in Firefox and Internet Explorer; all you have to do is get to the console (press F12 in Internet Explorer and Firefox is pretty much the same as Chrome.)

Here is an image of the script that got me started. After looking at this I thought I could just set minute to 0 and that would be it, but it turned out that this is not being used, still interesting to look at:


If you like my videos, please subscribe to me on YouTube:

Follow me on Twitter, @gFogerlie and Google+ https://plus.google.com/+GarrettFogerlie

If you have a video request you can let me know in the comments here or on my channel: