Resman says hi.

Scriptlets

Petits bouts de code à usage divers.

watchline.pl - Permet de surveiller les changements d'une ligne dans un fichier
#!/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;
}

mks - Crée un fichier exécutable et y place le shebang en fonction de l'extension
#!/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"

man - CGI pour afficher une page man avec liens
#!/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

iptables chains diagram
                                        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

Comment left by Thamar bleij on 2020-11-25 11:26:05 :
Hi this post is very nice.finally i got all those information whatever i really wanted to know. Thankyou for sharing this usefull information. Here I want to share the information about Dell support. As we all have been digitalied and we do multiple works together so if you face any problem or need any assist about Dell klentenservice so pleae visit over this site:- dell ondersteuning bellen
Comment left by Jerine Farrell on 2020-11-25 11:23:05 :
Are you looking out for some Black Friday Jacket Deals? Put an end to your hunt now because Fanzilla Jackets has come up with some really attractive deals on their website having all the masterpieces of the jacket world which come in your dreams.
Comment left by elizabethjneal2 on 2020-11-25 09:05:54 :
Great! It sounds good. Thanks for sharing.. Mass Schedules
Comment left by Whitney Voskuil on 2020-11-25 08:16:19 :
Hi your post is really appreciatable.I really thankful for this post. Here i would llike to share some information about facebook. As we know that facebook is a social trap where we connect with people in all over world. So if you are using facebook and face any technical issue that time so just visit our website. We can resolve the smallest problem on same time. For further information please visit on our website- facebook bellen belgie
Comment left by Annelous on 2020-11-25 06:35:40 :
Hi thankyou for this great helpful information.this information is really useful at today's time.you had easily explained whole information in a short note. Now i would like to share some information about PayPal.So If you are a Paypal user and you are facing any problem regarding to PayPal. No need to worry just simply visit on our site- paypal email belgie
Comment left by Annelous on 2020-11-25 06:31:27 :
Hi thankyou for this great helpful information.this information is really useful at today's time.you had easily explained whole information in a short note. Now i would like to share some information about PayPal.So If you are a Paypal user and you are facing any problem regarding to PayPal. No need to worry just simply visit on our site- paypal email belgie
Comment left by Ray on 2020-11-21 17:31:52 :
I am really impressed with the information you provide in your post. Home Inspection Raleigh NC
Comment left by elizabethjneal2 on 2020-11-19 11:41:31 :
The information you have posted is very useful. The sites you have referred was good. Thanks for sharing.. Marin County property management companies
Comment left by elizabethjneal2 on 2020-11-19 11:39:21 :
Great Article it its really informative and innovative keep us posted with new updates. its was really valuable. thanks a lot. top limo service
Comment left by elizabethjneal2 on 2020-11-19 11:33:46 :
I found that site very usefull and this survey is very cirious, I ' ve never seen a blog that demand a survey for this actions, very curious... what is tvns
Comment left by elizabethjneal2 on 2020-11-19 11:32:03 :
Excellent article. Very interesting to read. I really love to read such a nice article. Thanks! keep rocking. boston dispensaries
Comment left by elizabethjneal2 on 2020-11-19 11:20:56 :
That is the excellent mindset, nonetheless is just not help to make every sence whatsoever preaching about that mather. Virtually any method many thanks in addition to i had endeavor to promote your own article in to delicius nevertheless it is apparently a dilemma using your information sites can you please recheck the idea. thanks once more. tvns device
Comment left by elizabethjneal2 on 2020-11-19 11:18:37 :
It was wondering if I could use this write-up on my other website, I will link it back to your website though.Great Thanks. buy vagus nerve stimulator
Comment left by elizabethjneal2 on 2020-11-19 11:14:56 :
Nice post. I was checking constantly this blog and I’m impressed! Extremely useful info specially the last part I care for such information a lot. I was seeking this certain info for a long time. Thank you and good luck. it support companies milton keynes
Comment left by elizabethjneal2 on 2020-11-19 11:13:15 :
This is a truly good site post. Not too many people would actually, the way you just did. I am really impressed that there is so much information about this subject that have been uncovered and you’ve done your best, with so much class. If wanted to know more about green smoke reviews, than by all means come in and check our stuff. NMN Supplement UK
Comment left by elizabethjneal2 on 2020-11-19 11:08:23 :
i am for the first time here. I found this board and I in finding It truly helpful & it helped me out a lot. I hope to present something back and help others such as you helped me. Green
Comment left by elizabethjneal2 on 2020-11-19 11:07:27 :
Thanks for your insight for your fantastic posting. I’m glad I have taken the time to see this. Long Island Wedding Photographer
Comment left by elizabethjneal2 on 2020-11-19 10:56:35 :
Thank you for some other informative blog. Where else could I get that type of information written in such an ideal means? I have a mission that I’m just now working on, and I have been at the look out for such information. fast internet
Comment left by elizabethjneal2 on 2020-11-19 10:55:23 :
Your content is nothing short of brilliant in many ways. I think this is engaging and eye-opening material. Thank you so much for caring about your content and your readers. Holistic Healing
Comment left by elizabethjneal2 on 2020-11-19 10:49:34 :
This is a brilliant blog! I'm very happy with the comments!.. Bartender Resume
Comment left by elizabethjneal2 on 2020-11-19 10:48:36 :
Cool stuff you have got and you keep update all of us. job interview tips
Comment left by elizabethjneal2 on 2020-11-19 10:34:46 :
Thanks for sharing this quality information with us. I really enjoyed reading. Will surely going to share this URL with my friends. kitchen decor
Comment left by elizabethjneal2 on 2020-11-19 10:33:45 :
it was a wonderful chance to visit this kind of site and I am happy to know. thank you so much for giving us a chance to have this opportunity.. eastern European restaurant
Comment left by elizabethjneal2 on 2020-11-19 10:27:18 :
I am very enjoyed for this blog. Its an informative topic. It help me very much to solve some problems. Its opportunity are so fantastic and working style so speedy. Positive Psychology Course
Comment left by elizabethjneal2 on 2020-11-19 10:26:05 :
I really thank you for the valuable info on this great subject and look forward to more great posts. Thanks a lot for enjoying this beauty article with me. I am appreciating it very much! Looking forward to another great article. Good luck to the author! All the best! Mindfulness Certification
Comment left by elizabethjneal2 on 2020-11-19 10:06:13 :
This is just the information I am finding everywhere. Thanks for your blog, I just subscribe your blog. This is a nice blog.. paint by numbers for adults
Comment left by elizabethjneal2 on 2020-11-19 10:03:17 :
useful information on topics that plenty are interested on for this wonderful post.Admiring the time and effort you put into your b!.. online life coach certification
Comment left by elizabethjneal2 on 2020-11-19 09:59:18 :
nice bLog! its interesting. thank you for sharing.... different types of sports drinks
Comment left by elizabethjneal2 on 2020-11-19 09:58:15 :
I have bookmarked your blog, the articles are way better than other similar blogs.. thanks for a great blog! fumari
Comment left by elizabethjneal2 on 2020-11-19 09:23:46 :
Im no expert, but I believe you just made an excellent point. You certainly fully understand what youre speaking about, and I can truly get behind that. Paintings by Canadian artists
Comment left by elizabethjneal2 on 2020-11-19 09:22:39 :
You know your projects stand out of the herd. There is something special about them. It seems to me all of them are really brilliant! best cbd drinks
Comment left by elizabethjneal2 on 2020-11-19 09:18:29 :
Its a great pleasure reading your post.Its full of information I am looking for and I love to post a comment that "The content of your post is awesome" Great work. ideas for 16 birthday
Comment left by elizabethjneal2 on 2020-11-19 09:17:18 :
I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business. san diego computer consultant
Comment left by elizabethjneal2 on 2020-11-19 09:06:50 :
This is my first time i visit here. I found so many interesting stuff in your blog especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the enjoyment here! keep up the good work moving to Hawaii
Comment left by elizabethjneal2 on 2020-11-19 09:05:52 :
Thank you very much for the sharing! COOL.. West Bloomfield Michigan Data Backup
Comment left by elizabethjneal2 on 2020-11-19 09:02:47 :
This one is good. keep up the good work!.. united healtcare dentist
Comment left by elizabethjneal2 on 2020-11-19 08:57:41 :
Thank you so much Love your blog.. summer clothes
Comment left by elizabethjneal2 on 2020-11-19 08:54:12 :
Nice to be visiting your blog again, it has been months for me. Well this article that i've been waited for so long. I need this article to complete my assignment in the college, and it has same topic with your article. Thanks, great share. bisnes dari rumah
Comment left by elizabethjneal2 on 2020-11-19 08:53:42 :
I found that site very usefull and this survey is very cirious, I ' ve never seen a blog that demand a survey for this actions, very curious... situs domino99 online indonesia
Comment left by elizabethjneal2 on 2020-11-19 08:52:32 :
I am definitely enjoying your website. You definitely have some great insight and great stories. Buy Positive Google reviews
Comment left by elizabethjneal2 on 2020-11-19 08:51:52 :
Thanks for the blog post buddy! Keep them coming... wealth management software companies
Comment left by sriyala on 2020-11-17 18:03:10 :
รับสร้างบ้าน ปัตตานี ยะลา นราธิวาส
บริษัท รับสร้างบ้านที่มอบความไว้วางใจสูงสุดให้กับลูกค้าในทุกรายละเอียดของบริการก่อสร้างบ้าน
Comment left by pinnara on 2020-11-17 18:02:39 :
พิณนารา
เซรั่มน้ำมันมะพร้าวสกัดเย็น และมาร์คหน้าข้าวหอมมะลิ
Comment left by Nora on 2020-11-17 12:42:32 :
Hi.. I read your blog which is really gud or amazing. Please visit on facebook bellen
Comment left by Marisca Walhout on 2020-11-17 12:02:12 :
Hi.. I read your blog which is really gud or amazing. Please visit on Mcafee support deutschland
Comment left by soleil on 2020-11-17 09:52:55 :
Hi read your blog amazing techniqe and amazing information. I found that kind of blog which is now I got it.More info please visit on Bellen Avast
Comment left by Jana Abend on 2020-11-17 07:28:25 :
Hi read your blog amazing techniqe and amazing information. I found that kind of blog which is now I got it.More info please visit on total av deutsch
Comment left by emad ahmed on 2020-11-16 23:32:32 :
very great post.
لعبة من سيربح المليون
لعبة جاتا
صب واي سيرفرس
زوما
العاب كلاش
Comment left by IT Consulting Services & Business Solutions on 2020-11-11 10:43:44 :
You got a really useful blog. I have been here reading for about an hour. I am a newbie and your success is very much an inspiration for me.

IT Consulting Services & Business Solutions
Comment left by บาคาร่า on 2020-11-09 08:39:41 :
I totally agree with you. Your post got my attention and shows me different perception for how we should boost our site. This is a really perfect for a new blogger like me who doesn't want their site to be messy with those spammers who don't even read your post but they have the guts to comment in your site. Thanks again.
Speaking of site, take a look at here: บาคาร่า
Comment left by Xander on 2020-11-09 03:44:33 :
Jump through spikes and test your reflexes.
geometry dash
Comment left by Error Code 0xc0000034 on 2020-11-03 12:15:27 :
It's specific academic individuals on this point, yet you sound like you hear what you're expressing! Clients have experienced the Error Code 0xc0000034 issue two or on various events while utilizing HP printers. For this condition, the printer can inevitably don't fittingly play out its activities and will show a message that the printer is in a stirred up state. This issue is fundamentally an issue with your structure's availability. Without a doubt, we have a reasonable plans on such issues. Much respected and continue posting such enlightening on the web journals.

Error Code 0xc0000034
Comment left by James Ganning on 2020-11-03 11:06:47 :
Je lève sous ma microjupe, cigare à la main.
Comment left by james thomas on 2020-10-31 11:16:18 :
I suggest any kind of content material. It certainly is fantastic to sort out you'll clarify within phrases through center and also display quality by using this useful content material is very merely acknowledged. website design
Comment left by samantha on 2020-10-29 13:44:16 :
had fun reading your articles. love this site. keep it up
Comment left by Looney Hans on 2020-10-27 08:32:16 :
glad i found this site!! i learned alot. will recommend it to my friends www.lifecoachomahane.com
Comment left by Dexter Paris on 2020-10-23 20:29:00 :
Hier soir, séance de Tens.
Résultat, mon slip pue.
Comment left by Tyyne Mattila on 2020-10-12 11:59:16 :
Unbelievable blog! This blog provides a brief introduction which is very helpful for me. Instagram is the most usable platform in the world because of its latest features but the user some time confronts some issues on Instagram. For more information, you can visit Instagram asiakaspalvelu suomi.
Comment left by Gmail suomi on 2020-10-12 09:20:30 :
vHi, Thank you for sharing such a good and valuable information,It is very important for me. Gmail is the worldwide used email service but sometimes user faces some problems in it. If you want to get some information about the Gmail then you can visit Gmail tuki puhelinnumero.
Comment left by Jamie Jasper on 2020-10-12 08:03:55 :
hi, your post is very helpful for me. Finally, I found exactly what I want. Sometimes the user of Webroot antivirus faces technical issues that can be very harmful to your device. If you want to get some help regarding Webroot antivirus then visit webroot bellen nederland.
Comment left by Bessie on 2020-10-06 11:36:55 :
I suppose its need more to use some of your ideas!! https://lifeinsurancevideo.com
Comment left by murz on 2020-09-24 12:46:37 :
wall and floor tiles
floor tiles
Comment left by james thomas on 2020-09-17 09:26:50 :
Rapidly this kind of fantastic web site will surely unquestionably often be well-known amongst many creating any website people, for your meticulous articles along with testimonies. cinema 4D classes
Comment left by tazama on 2020-09-12 14:30:20 :
Are you a traveller and would like to visit Morocco? Then, your trip is sure to be hitch-free when you travel through a reliable morocco desert tours . Explore Morocco trips, and discover the best time and places to visit. Morocco is a country with a mixture of old world charm and a modern Muslim atmosphere. It is a country with a conglomeratofvarious cultures, including African, Berber, British, French, and Spanish. marrakech travel agency Variety of best things to do and see is adverse when you have a trip to Morocco, with a recommended travel Agency in Morocco, like Top Morocco Travel. 3 days marrakech to fes desert tour .
Comment left by The Collection Marts on 2020-09-03 12:24:10 :
Hi thankyou for this great helpful information.this information is really useful at today's time.you had easily explained whole information in a short note.now i want to share some information about avast antivirus.So if you are facing any problem regarding Avast so you can simply visit on our site cotton bed mattress near me , double blanket , double bed razai , sofa cover fabric , velvet blanket
Comment left by Eran Khan on 2020-08-30 18:53:38 :
Thanks for sharing it is important for me. I also searched for that from here. Visit our site panda bellen
Comment left by Antoine on 2020-08-23 09:06:42 :
The diagram is so clear. This is byfar the best presented!

Vacuum Sealer Reviews
Comment left by Leigh on 2020-08-23 08:58:58 :
Thanks for this very useful for me.

best ski bags
Comment left by Tinojems on 2020-08-22 13:57:10 :
Tile Visualizer
Tiles Visualizer
Comment left by Ki At on 2020-08-21 18:42:18 :
Thanks for this scripts. They are very helpful. Unmanned Systems and Solutions
Comment left by Lily Loo on 2020-08-02 01:46:06 :
hi, Your post is very helpful for me,finally i got exactly what I want. If you want to know more about antivirus then you can visit our site Bitdefender ondersteuning belgie help.
Comment left by Mariam Groen on 2020-08-02 01:07:41 :
hi, Your post is very helpful for me, finally i found exactly what i want , If you want to know more about antivirus then you can visit our site Kaspersky bellen for help.
Comment left by Maysa Lang on 2020-08-01 23:38:00 :
hi, Your post is very helpful for me, If you want to know more about antivirus then you can visit our site contact Canon Printer belgie for help.
Comment left by Tosca Klasen on 2020-08-01 21:09:28 :
hi, your post is very helpful for me. Finally, I found exactly what i want. If need information regarding printers then you can visit our site Xerox Printer belgie
for help.
Comment left anonymously on 2020-07-31 18:29:33 :
That's exactly what I was looking for! visit usisit us if you have a chance.
Comment left by MillaRoose on 2020-07-31 12:27:54 :
Hi thankyou for this great helpful information.this information is really useful at today's time.you had easily explained whole information in a short note.now i want to share some information about avast antivirus.So if you are facing any problem regarding Avast so you can simply visit on our site-avast technische ondersteuning
Comment left by MillaRoose on 2020-07-31 10:28:00 :
Hi thankyou for this great helpful information.this information is really useful at today's time.you had easily explained whole information in a short note.now i want to share some information about avast antivirus.So if you are facing any problem regarding Avast so you can simply visit on our site-avast technische ondersteuning
Comment left by lima wilmink on 2020-07-31 10:01:47 :
Hi your post is really appreciatable.I really thankful for this post .here i would llike to share some information about HP Printer.We can resolve the smallest problem on same time If you are facing any problem relate to your HP Printer's so this is the right place to get smallest information about HP PRINTER for the further information please visit on our website- hp printer technische ondersteuning
Comment left by Fien Wieten on 2020-07-31 09:31:21 :
Hi your post is very nice and i am greatful to you for sharing this post with us.here i want to share some information about Norton Antivirus.As we all know how much Norton Antivirus is usefull for our laptops and mobiles.so whenever you have any query regarding Norton or need any assistance how to run or any information that time please visit over this site-norton Antivirus technische ondersteuning
Comment left by Rowanbaartman on 2020-07-31 09:17:27 :
Hi this post is very nice.finally i got all those information what i really wanted to know. thankyou for sharing this usefull information.here i want to share the information about mcafee security. as we all have been digitalied and we do multiple works together so if you face any problem or need any assist about MCAFEE so pleae visit over this site-mcafee Antivirus technische ondersteuning
Comment left by Willeke Roes on 2020-07-30 18:34:29 :
Thanks for sharing such an Amazing information, I Couldn't leave without reading your blog. I have read another good blog, I think you have read it too. click here klantenservice Trend Micro Belgie
Comment left by Lilly La Sanka on 2020-03-27 15:28:44 :
My nanoskirt gave me away.
Comment left by Gabriella Paige on 2019-02-04 14:59:14 :
Shorts réparés, appareil terminé, ça va y aller.
Comment left by Boubou on 2018-12-17 16:19:59 :
Je ne sais pas, en tout cas, ma nouvelle microjupe est très bandante.
Comment left by Boubou on 2018-12-17 16:19:06 :
Je ne sais pas, en tout cas, ma nouvelle microjupe est très bandante.
Comment left by Monsieur Cyclopéde on 2016-08-21 19:06:55 :
Est-ce que Paul Newman a bien joué dans "Vol au-dessus d'un nid de coucous" ?
Add a new comment :
Name :
Comment :

Answer the following question : Which is the biggest, three or seven ?