Techno's blog
The futur is …-
Accent français
Posted on November 5th, 2010 No commentsRécupere chez www.commentcamarche.net Lire le reste de ce post.
-
How to change is IP
Posted on April 27th, 2010 No commentsBonjour,
Allez une petite astuce pour changer son ip de sorti chez gandi dans un premier temps mettre à jours vos paquetapt-get update
Puis installer un paquet de gandi afin qu'il puisse ajouter les ips
apt-get install gandi-hosting-vm
Redémarré votre serveur et faite un Ifconfig pour vérifié que votre IP soit bien présente et par la suite taper cette ligne de commande :
/sbin/iptables -t nat -A POSTROUTING -o eth0 -s 192.168.1.1 -j SNAT --to 10.0.0.1
En prenant 192.168.1.1 comme votre ancien IP et 10.0.0.1 comme étant votre nouvelle ip. Penser a redémarré votre serveur avant de refaire cette opération sinon il y aura un conflit avec l'iptable actuelle. -
Count the queue with mailq
Posted on March 17th, 2010 No comments
Hello,
So today we will use a little command that we count the number of email in our queue in postfix, we use mailq :
mailq | tail -1
With this the commande will show only the last ligne so if your queue is full it will take a little time. -
Concat 001 file
Posted on March 15th, 2010 No comments
Hello Here I come,
Today a little things, I found on the net few month ago and it is very useful for my. Sometime when we download or get some file will be cut under the type .001, .002,... and you have a hard time to find a good logiciel easy that can help you to reunify the file. So let's gain some time, first open the terminal and go to your directory where the file is :
cd /Users/YourRep/AnotherRep/
Next use this simple command :
cat yourfile.avi.001 yourfile.avi.002 > yourfinalfile.avi
And that it, when the file is split in this type you can see his extension , .rar, .zip before the 001 so you juste have to cut the 001 and you have your file with is extension. If we have more than 2 or 3 file you can use this. But You must be sure that
Oui car le plus souvent vous pouvez voir l'extension de votre fichier un .rar, .zip avant le 001 donc il suffit juste d'enlever le 001 pour indiquer le nom final de votre fichier. Et si nous avons plusieurs fichier de la même syntaxe nous pouvons faire un raccourci comme cela en prenant garde que tout vos fichier découper on la même base. :
cat yourfile.avi.* > yourfinalfile.avi
-
Small Joke
Posted on March 11th, 2010 No comments -
How to empty the queue on qmail and plesk
Posted on March 11th, 2010 2 comments
How can we empty our queue under Qmail and plesk ? I have found a little script who works perfectly, I let you test it yourself.
sh /var/qmail/bin/qmail-qstat #Show the number of email in your queue
wget http://wepraisehim.org/qmailclear.sh #Downlod the script
sh qmailclear.sh #Launch the script
sh /var/qmail/bin/qmail-qstat #Check if our queue is empty
That's it, the script stop and relaunch qmail so we juste have to wait. Of cours you need to be on ssh to launch this commande
-
No post this week
Posted on March 2nd, 2010 No comments -
ShortCut for Safari
Posted on February 25th, 2010 No comments
Hello,
So it's been a while since my last post. Today I only post some shortcut about Safari because I am always use it and I always ask myself how I switch between two tab so here we go, how use safari with the keyboard only. -
Update SP3 on OS X
Posted on May 7th, 2009 No comments -
WordPress xLanguage and Evermore
Posted on April 17th, 2009 No comments


