-

 - e-mail

 

 -

   NeoliteBSD

 -

 LiveInternet.ru:
: 25.07.2007
: 39
: 25
: 106

:

Tips&Tricks.


: (6), (4), (4), (2), (7), (9)
(0)

Perl Windows

, 04 2009 . 14:11 +
, Perl Windows. . : tar gzip. :

1. , Perl %PATH%. , ;-)
2. Tar for Windows - http://gnuwin32.sourceforge.net/downlinks/tar-bin.php.
3. Gzip for Windows - http://gnuwin32.sourceforge.net/downlinks/gzip.php
4. ( D:\Program Files\GnuWin32\).
5. D:\Program Files\GnuWin32\bin\ tar.exe, libintl-2.dll, libiconv-2.dll gzip.exe Perl - D:\Perl\bin\.

nmake dist, , =)

P.S. , , .
Tips&Tricks

(0)

ps

, 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);
    }
}

Tips&Tricks

(0)

.

, 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...hforumID3&omm=0&m=1l#5
Tips&Tricks


(0)

Perl Windows

, 07 2009 . 12:44 +
, . nmake.

1. Perl http://www.activestate.com/activeperl/downloads/
2. ( , D:\Perl\)
3. nmake -: ftp://ftp.microsoft.com/Softlib/MSLFILES/NMAKE15.EXE
4. D:\Perl\usr\bin\.
5. - : nmake.exe, nmake.err - readme.txt

D:\Perl\usr\bin\ %PATH% .

P.S. , .
Tips&Tricks

:  
(0)

-

, 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/
Tips&Tricks

:  
(0)

, MC JOE

, 03 2008 . 20:08 +
 (699x535, 78Kb)

. , , " ".

Tips&Tricks

(0)

Apache

, 01 2008 . 12:57 +
.

1. httpd.conf.

code:
ServerSignature Off
ServerTokens ProductOnly

, ,
code:
Server: Apache
.

, ,
Tips&Tricks

(0)

Proxy Auto-Config File Format

, 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
Tips&Tricks


:  

 : [1]