Petits bouts de code à usage divers.
#!/usr/bin/perl unless( $ARGV[1] ) { print "Usage : $O <fichier> <pattern> [intervalle]\nIntervalle par défaut = 1s.\n"; exit; } my $interval = $ARGV[2]?$ARGV[2]:1; my $l = ""; while(1) { open my $fd, "< $ARGV[0]"; while(<$fd>) { last if /$ARGV[1]/; } chomp; if( $_ ne $l ) { my $t = `date +[%H:%M:%S]`; chomp $t; print "$t ", $l = $_, "\n"; } close $fd; sleep $interval; }
#!/bin/sh if [ $# -ne 1 ]; then echo "Usage : mks <nom du script>" && exit 1 fi if [ -e "$1" ]; then echo "$1 existe déjà." && exit 1 fi > "$1" chmod +x "$1" if [ "${1: -3}" == ".pl" ]; then echo -e "#!/usr/bin/perl\n\n" > "$1" fi if [ "${1: -3}" == ".sh" ]; then echo -e "#!/bin/sh\n\n" > "$1" fi $EDITOR "$1"
#!/usr/bin/perl $s = ""; $p = "man"; #print $ENV{QUERY_STRING}; ($p) = $ENV{QUERY_STRING} =~ m!p=([a-z._]+)!; ($s) = $ENV{QUERY_STRING} =~ m!s=(.)!; open $fd, "man $s $p 2>&1 |"; @l = <$fd>; $l = join "", @l; $l =~ s!(.)\010\1!<b>\1</b>!sg; $l =~ s!_\010(.)!<u>\1</u>!sg; $l =~ s!</(.+)><\1>!!sg; $l =~ s!(</.>)?([a-z._]+)(</.>)?\((.)\)!< a href=man?p=\2&s=\4>\1\2\3\(\4\)</a>!sg; print <<END; Content-type: text/html\n <html> <head><title>$p($s)</title></head> <body><form><input type=text name=p><input type=submit value=man></form> <pre>$l</pre></body></html> END
Network -----------+----------- | +-------+------+ | mangle | | PREROUTING | <- MARK REWRITE +-------+------+ | +-------+------+ Policy rule database | PRDB | <- controlled by ip rule +-------+------+ | +-------+------+ | nat | | PREROUTING | <- DEST REWRITE +-------+------+ | packet is for +-------+------+ packet is for this address | INPUT | another address +--------------+ ROUTING +---------------+ | +--------------+ | +-------+------+ | | filter | | | INPUT | | +-------+------+ | | | +-------+------+ | | Local | | | Process | | +-------+------+ | | | +-------+------+ | | OUTPUT | +-------+-------+ | ROUTING | | filter | +-------+------+ | FORWARD | | +-------+-------+ +-------+------+ | | mangle | | | OUTPUT | MARK REWRITE | +-------+------+ | | | +-------+------+ | | nat | | | OUTPUT | DEST REWRITE | +-------+------+ | | | +-------+------+ | | filter | | | OUTPUT | | +-------+------+ | | | | | +----------------+ +--------------------+ | | | | +--+-------+---+ selection of the output | | interface, | FORWARDING | selection of the next hop, +-------+------+ encapsulation, etc. | | +-------+------+ | nat | | POSTROUTING | SOURCE REWRITE +-------+------+ | | +-------+------+ | TRAFFIC | | QUEUE | <- controlled by tc +-------+------+ | | -----------+----------- Network
Comments
=================================================================================
Very interesting points you have observed , regards for putting up. https://speedtest.ink/
카지노사이트
Https://yhn876.com 카지노사이트
For more services:-
Assignment Writing Tasks
Help In University Assignments
University Academic Writing Help Services
Assignment Help Experts
Assignment Writing Task
---------------I like the way you conduct your posts. Keep it up! 사천출장
http://www.bangaloreprincess.in/delhi-escorts.html
www.amazon.com/code
www.amazon.com/mytv enter code
www.amazon.com/mytv
www.amazon.com/mytv enter code
amazon.com/mytv
amazon.com/mytv
amazon.com/mytv
www.amazon.com/mytv enter code
amazon.com/mytv
www.amazon.com/code
www.amazon.com/mytv.com
www.amazon.com/mytv
www.amazon.com/mytv
www.amazon.com/mytv
amazon.com/mytv
www.amazon.com/code
garmin map update
garmin nuvi update
garmin.com/express
hulu.com/activate
hulu.com/activate
hulu.com/activate
hulu.com/activate
hulu.com/activate
mcafee.com/activate
mcafee.com/activate
mcafee.com/activate
mcafee.com/activate
www.amazon.com/mytv
amazon.com/code
amazon.com/mytv enter my code
www.amazon.com/mytv enter code
www.amazon.com/mytv login
mytv
amazon.com/us/code
amazon.com/mytv
norton.com/setup
Norton.com/setup key
www.Norton.com/setup
pbs.org/activate
pbs.org/activate
pbs.org/activate
pbs activate
amazon.com/redeem
amazon.com/redeem
amazon.com/redeem
roku/link
roku.com/link activate code
roku.com/link enter code
roku.com/link
www.roku.com/link
showtimeanytime/activate
showtimeanytime/activate
tubi.tv/activate enter code
tubi.tv/activate
xfinity.com/authorize roku
xfinity.com/authorize
www.xfinity.com/authorize
xfinity.com/authorize
xfinity.com/authorize roku
trakt.tv/activate
nfl.com/activate
nfl.com/activate
twitch.tv/activate
twitch.tv/activate
pluto.tv/activate
pluto.tv/activate
youtube.com/activate
www.youtube.com/activate
amazon.com/redeem
amazon.com/mytv
amazon.com/mytv
hulu.com/activate
netflix.com/activate
netflix.com/activate
----------------I will invite all my friends to your blog, you really got a great blog.;-~:; security company coventry
----------------------I’ve been surfing online more than three hours nowadays, yet I never found any fascinating article like yours. It is beautiful value enough for me. In my opinion, if all webmasters and bloggers made just right content as you probably did, the internet will probably be a lot more helpful than ever before. Exotic carts
--------------------the best dating websites are those sites which also gives you some freebies and souvenirs~ 메리트카지노
카지노사이트
https://yhn876.com 카지노사이트
watch mlb live stream
watch mlb baseball live stream
watch mlb live online
-==-=
I dont leave a lot of comments on a lot of blogs each week but i felt i had to here. Do you need many drafts to make a post? joker7979
http://www.bloggeron.net/thop-tv-for-windows-pc-and-mac/
avast bellen
Aerocity Escorts
Mahipalpur Escorts Service
Escorts in Paharganj
Vasant Kunj Call Girls
Call Girls in Saket
Valentine Days
Valentine Days
Valentine Days
Valentine Days
Valentine Days
Valentine Days
Valentine Days
Valentine Days
Valentine Days
Valentine Days
Valentine Days
Valentine Days
Valentine Days
Valentine Days
here here
Je vous tiens au courant.
For more services:- Marketing Dissertation Help in UK | DBMS Assignment Help in Australia
Scriptlets pg slot [url=https://www.pgslot168.com/]pg slot[/url]
Also, read a blog by Robin
IoT Solutions
Tools & Gadgets For Your Needs!
world news
bestcocktails
bestcocktails
bestcocktails
find home contractors
By: Economics Help Online
Check over here: บาคาร่า บาคาร่า
บริษัท รับสร้างบ้านที่มอบความไว้วางใจสูงสุดให้กับลูกค้าในทุกรายละเอียดของบริการก่อสร้างบ้าน
เซรั่มน้ำมันมะพร้าวสกัดเย็น และมาร์คหน้าข้าวหอมมะลิ
لعبة من سيربح المليون
لعبة جاتا
صب واي سيرفرس
زوما
العاب كلاش
IT Consulting Services & Business Solutions
Speaking of site, take a look at here: บาคาร่า
geometry dash
Error Code 0xc0000034
Résultat, mon slip pue.
floor tiles
Vacuum Sealer Reviews
best ski bags
Tiles Visualizer
for help.