, 01 2009 . 15:52
+
xps perl FreeBSD:
perl-:
#!/usr/bin/perl
#use strict;
#use warnings;
#use diagnostics;
my %pids = ();
my $width = int(qx(/usr/bin/tput cols))-1;
my @processes = split(/[\r\n]/,qx(/bin/ps axwwo pid,ppid,stat,command));
shift(@processes);
foreach (@processes)
{
my $pid = int(substr($_,0,5));
my $ppid = int(substr($_,6,5));
my $stat = substr($_,12,4);
my $command = substr($_,17);
$pids{$pid} = [$pid,$ppid,$stat,$command];
}
process(\%pids, 1, '', $width);
sub pr($$$)
{
my ($proc,$level,$width) = @_;
print "\033[1;32m$level\\_".$proc->[0]."\033[0;1;33m ".$proc->[2]."\033[0m ".$proc->[3]."\033[0m\n";
}
sub process
{
my ($pids, $pid, $level, $width) = @_;
pr($pids->{$pid},$level,$width);
my @parents = sort { $a <=> $b } grep (($pids->{$_}[0] && $pids->{$_}[1] == $pid), keys %{$pids});
foreach my $parent (@parents)
{
my $add = ($parent == $parents[-1]) ? ' ' : ' |';
process($pids, $pids->{$parent}[0], $level.$add, $width);
}
}
, 12 2009 . 21:36
+
ls
CLICOLOR:
shell :
setenv CLICOLOR YES
LSCOLORS:
shell :
setenv LSCOLORS ExGxFxdxCxDxDxhbadExEx
ExGxFxdxCxDxDxhbadExEx
- (fb - foreground, background):
:
DIR=Ex
SYM_LINK=Gx
SOCKET=Fx
PIPE=dx
EXE=Cx
BLOCK_SP=Dx
CHAR_SP=Dx
EXE_SUID=hb
EXE_GUID=ad
DIR_STICKY=Ex
DIR_WO_STICKY=Ex
grep
GREP_COLOR GREP_OPTIONS:
:
setenv GREP_COLOR '1;31'
setenv GREP_OPTIONS ' --color=auto'
less (man)
LESS_TERMCAP_xx:
:
setenv LESS_TERMCAP_mb '\033[01;31m' # begin blinking
setenv LESS_TERMCAP_md '\033[01;38;5;74m' # begin bold
setenv LESS_TERMCAP_me '\033[0m' # end mode
setenv LESS_TERMCAP_se '\033[0m' # end standout-mode
setenv LESS_TERMCAP_so '\033[38;5;246m' # begin standout-mode - info box
setenv LESS_TERMCAP_ue '\033[0m' # end underline
setenv LESS_TERMCAP_us '\033[04;38;5;146m' # begin underline
\033 ( ESC, ^E). ee (easy editor) Ctrl+O - 027.
:
http://plug-and-pray.blogspot.com/2008/02/lscolors.html
http://habrahabr.ru/blogs/linux/65857/
http://www.opennet.ru/cgi-bin/openforum/vsluhboard...rum=vsluhforumID3&omm=0&m=1l#5
, 07 2009 . 12:44
+
, 04 2008 . 12:23
+
.. , . .. . : 5 , 4, , 3-?
:
IETester 0.2.2
IETester IE-, IE8 beta 1, IE7 IE 6 and IE5.5 on Vista and XP.
, -, . , , -, .
,
Multiple IE
, IE , 1. - , , 3- 6- . 7- .
:
http://www.hpcfactor.com/downloads/msie/
, 04 2008 . 12:02
+
. . . .PAC .
, , , . , , , ... , , . - : , , , . , , : , . " URL " FF.
, , URL ? . : , FF . =) proxy.pac:
proxy.pac:
var ProxyAddress="80.92.xx.xx:ppppp";
function FindProxyForURL(url, host)
{
if (host == 'vkontakte.ru' || host == 'moikrug.ru' || host.match('odnoklassniki\.ru'))
{
return "PROXY "+ProxyAddress+"; DIRECT";
}
return "DIRECT";
}
:
http://wp.netscape.com/eng/mozilla/2.0/relnotes/demo/proxy-live.html