<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
<channel>
    <title>Posteet</title> 
    <link>http://www.posteet.com/</link> 
    <description>Recent posteets posted to Posteet</description>
    <ttl>60</ttl>

    
    <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/posteet" /><feedburner:info uri="posteet" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
        <title>Opening multiple tabs in Firefox from a file / Ouvrir des onglets dans Firefox à partir d'une liste d'adresses dans un fichier</title>
        <link>http://feedproxy.google.com/~r/posteet/~3/OO00t4ZVxeY/2137</link>
        <description>
        <![CDATA[<pre>for /F &quot;tokens=1,2* delims=:&quot; %i in (liste_url.txt) do if %i == http Firefox.exe -new-tab &quot;%i:%j&quot;</pre> <a href="http://www.posteet.com/tags/cmd">[cmd]</a>  <a href="http://www.posteet.com/tags/command">[command]</a>  <a href="http://www.posteet.com/tags/dos">[dos]</a>  <a href="http://www.posteet.com/tags/firefox">[firefox]</a>  <a href="http://www.posteet.com/tags/onglets">[onglets]</a>  <a href="http://www.posteet.com/tags/tabs">[tabs]</a> ]]>        </description>
        <dc:creator>sebastien.ferry</dc:creator>
        <pubDate>Thu, 08 Sep 2011 11:36:15 +0200</pubDate>

            <category>cmd</category>
            <category>command</category>
            <category>dos</category>
            <category>firefox</category>
            <category>onglets</category>
            <category>tabs</category>
    
    <feedburner:origLink>http://www.posteet.com/view/2137</feedburner:origLink></item>

  
    <item>
        <title>Sécuriser l'interface web d'EyesOfNetwork</title>
        <link>http://feedproxy.google.com/~r/posteet/~3/59S5HsR_wew/2136</link>
        <description>
        <![CDATA[<pre>Convention de lecture :
Les lignes commençant par ~# sont des lignes de commandes shell
Les lignes commençant par - sont les lignes à supprimer
Les lignes commençant par + sont les lignes à rajouter

Installation du module ssl d'Apache :
~# yum install mod_ssl

~# cd /etc/httpd

Si vous voulez ajouter vos propres certificats, éditer le fichier conf.d/ssl.conf :

- SSLCertificateFile /etc/pki/tls/certs/localhost.crt
+ SSLCertificateFile /etc/pki/tls/certs/foo.tld.crt

- SSLCertificateKeyFile /etc/pki/tls/private/localhost.key
+ SSLCertificateKeyFile /etc/pki/tls/private/foo.tld.key

- SSLCACertificateFile /etc/pki/tls/certs/ca-bundle.crt
+ SSLCACertificateFile /etc/pki/CA/private/GandiStandardSSLCA.pem

Si vous voulez forcer l'utilisation d'HTTPS, à la fin du fichier conf/ssl.conf :

+ &lt;VirtualHost _default_:80&gt;
+         ServerAdmin contact@gayux.fr
+         Redirect permanent / https://foo.bar/
+ &lt;/VirtualHost&gt;

Pour supprimer les informations remontés par Apache (visible sur une page d'erreur par exemple), éditer le fichier conf/httpd.conf :

- ServerTokens OS
+ ServerTokens Prod

- ServerSignature On
+ ServerSignature Off

Et rajouter à la fin :
+ #
+ # Allow TRACE method
+ #
+ # Set to &quot;extended&quot; to also reflect the request body (only for testing and
+ # diagnostic purposes).
+ #
+ # Set to one of:  On | Off | extended
+ #
+ TraceEnable Off

Pour finir, recharger la configuration du serveur Apache :
~# /etc/init.d/httpd reload</pre> <a href="http://www.posteet.com/tags/EoN">[EoN]</a>  <a href="http://www.posteet.com/tags/https">[https]</a> ]]>        </description>
        <dc:creator>sox</dc:creator>
        <pubDate>Tue, 21 Jun 2011 11:56:36 +0200</pubDate>

            <category>EoN</category>
            <category>https</category>
    
    <feedburner:origLink>http://www.posteet.com/view/2136</feedburner:origLink></item>

  
    <item>
        <title>Slug de una cadena usando Doctrine</title>
        <link>http://feedproxy.google.com/~r/posteet/~3/gsUTy9tibP4/2131</link>
        <description>
        <![CDATA[<pre>#Doctrine posee un behaviour Slugabble por el cual obtenemos cadenas de texto URL amigable. Éste método es muy util para #utilizar en cualquier campo que queramos indexar para atacar la base de datos. Podemos acceder a éste método mediante:

$slug = Doctrine_Inflector::urlize($cadena);</pre> <a href="http://www.posteet.com/tags/doctrine">[doctrine]</a>  <a href="http://www.posteet.com/tags/symfony">[symfony]</a>  <a href="http://www.posteet.com/tags/tips">[tips]</a> ]]>        </description>
        <dc:creator>macks</dc:creator>
        <pubDate>Fri, 27 May 2011 19:47:14 +0200</pubDate>

            <category>doctrine</category>
            <category>symfony</category>
            <category>tips</category>
    
    <feedburner:origLink>http://www.posteet.com/view/2131</feedburner:origLink></item>

  
    <item>
        <title>Finding All Hosts On the LAN From Linux / Windows Workstation</title>
        <link>http://feedproxy.google.com/~r/posteet/~3/3lB_Fb7QZGQ/2130</link>
        <description>
        <![CDATA[<pre>#Linux
for ip in $(seq 1 254); do ping -c 1 192.168.1.$ip&gt;/dev/null; [ $? -eq 0 ] &amp;&amp; echo &quot;192.168.1.$ip UP&quot; || : ; done

#Windows:
for /L %I in (1,1,254) DO ping -w 30 -n 1 192.168.1.%I | find &quot;Reply&quot;</pre> <a href="http://www.posteet.com/tags/bash">[bash]</a>  <a href="http://www.posteet.com/tags/bat">[bat]</a>  <a href="http://www.posteet.com/tags/hosts">[hosts]</a>  <a href="http://www.posteet.com/tags/lan">[lan]</a>  <a href="http://www.posteet.com/tags/linux">[linux]</a>  <a href="http://www.posteet.com/tags/ping">[ping]</a>  <a href="http://www.posteet.com/tags/up">[up]</a>  <a href="http://www.posteet.com/tags/windows">[windows]</a> ]]>        </description>
        <dc:creator>spirit</dc:creator>
        <pubDate>Sun, 22 May 2011 15:36:22 +0200</pubDate>

            <category>bash</category>
            <category>bat</category>
            <category>hosts</category>
            <category>lan</category>
            <category>linux</category>
            <category>ping</category>
            <category>up</category>
            <category>windows</category>
    
    <feedburner:origLink>http://www.posteet.com/view/2130</feedburner:origLink></item>

  
    <item>
        <title>enlever règle iptable</title>
        <link>http://feedproxy.google.com/~r/posteet/~3/wEQRnoomhFM/2129</link>
        <description>
        <![CDATA[<pre>iptables -D table -s IP -j DROP</pre> <a href="http://www.posteet.com/tags/failtoban">[failtoban]</a>  <a href="http://www.posteet.com/tags/firewall">[firewall]</a>  <a href="http://www.posteet.com/tags/iptables">[iptables]</a>  <a href="http://www.posteet.com/tags/linux">[linux]</a> ]]>        </description>
        <dc:creator>neorom</dc:creator>
        <pubDate>Mon, 16 May 2011 11:12:01 +0200</pubDate>

            <category>failtoban</category>
            <category>firewall</category>
            <category>iptables</category>
            <category>linux</category>
    
    <feedburner:origLink>http://www.posteet.com/view/2129</feedburner:origLink></item>

  
    <item>
        <title>activer passive mode sur pure-ftpd</title>
        <link>http://feedproxy.google.com/~r/posteet/~3/QRZn329X7YE/2127</link>
        <description>
        <![CDATA[<pre>/etc/pure-ftpd/conf/PassivePortRange


50000 50100</pre> <a href="http://www.posteet.com/tags/administration">[administration]</a>  <a href="http://www.posteet.com/tags/debian">[debian]</a>  <a href="http://www.posteet.com/tags/ftp">[ftp]</a>  <a href="http://www.posteet.com/tags/pure-ftpd">[pure-ftpd]</a> ]]>        </description>
        <dc:creator>neorom</dc:creator>
        <pubDate>Sun, 10 Apr 2011 17:00:00 +0200</pubDate>

            <category>administration</category>
            <category>debian</category>
            <category>ftp</category>
            <category>pure-ftpd</category>
    
    <feedburner:origLink>http://www.posteet.com/view/2127</feedburner:origLink></item>

  
    <item>
        <title>Resetting a forgotten MySQL root password</title>
        <link>http://feedproxy.google.com/~r/posteet/~3/PKI7ovjhiG0/2126</link>
        <description>
        <![CDATA[<pre>First of all you will need to ensure that your database is stopped:

root@steve:~# /etc/init.d/mysql stop

Now you should start up the database in the background, via the mysqld_safe command:

root@steve:~# /usr/bin/mysqld_safe --skip-grant-tables &amp;
[1] 6702
Starting mysqld daemon with databases from /var/lib/mysql
mysqld_safe[6763]: started

Here you can see the new job (number &quot;1&quot;) has started and the server is running with the process ID (PID) of 6702.

Now that the server is running with the --skip-grant-tables flag you can connect to it without a password and complete the job:

root@steve:~$ mysql --user=root mysql
Enter password:

mysql&gt; update user set Password=PASSWORD('new-password-here') WHERE User='root';
Query OK, 2 rows affected (0.04 sec)
Rows matched: 2  Changed: 2  Warnings: 0

mysql&gt; flush privileges;
Query OK, 0 rows affected (0.02 sec)

mysql&gt; exit
Bye

Now that you've done that you just need to stop the server, so that you can go back to running a secure MySQL server with password restrictions in place. First of all bring the server you started into the foreground by typing &quot;fg&quot;, then kill it by pressing &quot;Ctrl+c&quot; afterwards.

This will now allow you to start the server:

root@steve:~# /etc/init.d/mysql start
Starting MySQL database server: mysqld.
Checking for corrupt, not cleanly closed and upgrade needing tables..

Now everything should be done and you should have regained access to your MySQL database(s); you should verify this by connecting with your new password:

root@steve:~# mysql --user=root --pass=new-password-here
Welcome to the MySQL monitor.  Commands end with ; or g.
Your MySQL connection id is 5 to server version: 5.0.24a-Debian_4-log

Type 'help;' or 'h' for help. Type 'c' to clear the buffer.

mysql&gt; exit
Bye</pre> <a href="http://www.posteet.com/tags/mysql">[mysql]</a>  <a href="http://www.posteet.com/tags/password">[password]</a> ]]>        </description>
        <dc:creator>sox</dc:creator>
        <pubDate>Sun, 27 Mar 2011 13:04:08 +0200</pubDate>

            <category>mysql</category>
            <category>password</category>
    
    <feedburner:origLink>http://www.posteet.com/view/2126</feedburner:origLink></item>

  
    <item>
        <title>dupliquer vm virtual box</title>
        <link>http://feedproxy.google.com/~r/posteet/~3/Uj-p08O2VEI/2125</link>
        <description>
        <![CDATA[<pre>VBoxManage clonevdi debian-1.vdi debian-2.vdi</pre> <a href="http://www.posteet.com/tags/debian">[debian]</a>  <a href="http://www.posteet.com/tags/dupliquer">[dupliquer]</a>  <a href="http://www.posteet.com/tags/vbox">[vbox]</a>  <a href="http://www.posteet.com/tags/virtualbox">[virtualbox]</a> ]]>        </description>
        <dc:creator>neorom</dc:creator>
        <pubDate>Sat, 26 Mar 2011 12:50:09 +0100</pubDate>

            <category>debian</category>
            <category>dupliquer</category>
            <category>vbox</category>
            <category>virtualbox</category>
    
    <feedburner:origLink>http://www.posteet.com/view/2125</feedburner:origLink></item>

  
    <item>
        <title>Tips de JQuery</title>
        <link>http://feedproxy.google.com/~r/posteet/~3/_kBWUQRrDls/2124</link>
        <description>
        <![CDATA[<pre>//agregar una clase usando jquery

$(&quot;#radio_c&quot;).addClass(&quot;required&quot;);</pre> <a href="http://www.posteet.com/tags/frontend">[frontend]</a>  <a href="http://www.posteet.com/tags/jquery">[jquery]</a>  <a href="http://www.posteet.com/tags/tips">[tips]</a> ]]>        </description>
        <dc:creator>macks</dc:creator>
        <pubDate>Tue, 22 Mar 2011 23:01:42 +0100</pubDate>

            <category>frontend</category>
            <category>jquery</category>
            <category>tips</category>
    
    <feedburner:origLink>http://www.posteet.com/view/2124</feedburner:origLink></item>

  
    <item>
        <title>enviar datos por post - - JQUERY --  AJAX</title>
        <link>http://feedproxy.google.com/~r/posteet/~3/Pw3tJIC3bJk/2123</link>
        <description>
        <![CDATA[<pre>// enviar datos de un formulario por POST
	$(document).ready(function(){
			$(&quot;#mensaje&quot;).hide();
			
			$(&quot;#frmContact&quot;).validate({
				event: &quot;blur&quot;,rules: {'nombre': &quot;required&quot;,'email': &quot;required email&quot;,'consulta': &quot;required&quot;},
				messages: {'nombre': &quot;Por favor indica tu nombre&quot;,'email': &quot;Por favor, indica una direcci&amp;oacute;n de e-mail v&amp;aacute;lida&quot;,'consulta': &quot;Por favor, dime algo!&quot;},
				debug: true,errorElement: &quot;label&quot;,
				submitHandler: function(form){
					$(&quot;#mensaje&quot;).show();
					$(&quot;#mensaje&quot;).html(&quot;&lt;img src='ajax-loader.gif' style='vertical-align:middle;margin:0 10px 0 0' /&gt;&lt;strong&gt;Enviando mensaje...&lt;/strong&gt;&quot;);
					$.ajax({
						type: &quot;POST&quot;,
						url:&quot;envio.php&quot;,
						contentType: &quot;application/x-www-form-urlencoded&quot;,
						processData: true,
						data: &quot;nombre=&quot;+escape($('#ContactName').val())+&quot;&amp;email=&quot;+escape($('#ContactRecipient').val())+&quot;&amp;mensaje=&quot;+escape($('#ContactMessage').val()),
						success: function(msg){
							$(&quot;#mensaje&quot;).html(&quot;&lt;strong&gt;Mensaje enviado correctamente. En breve recibir&amp;aacute;s mi respuesta. Gracias!&lt;/strong&gt;&quot;);
							document.getElementById(&quot;ContactName&quot;).value=&quot;&quot;;
							document.getElementById(&quot;ContactRecipient&quot;).value=&quot;&quot;;
							document.getElementById(&quot;ContactMessage&quot;).value=&quot;&quot;;
							setTimeout(function() {$('#mensaje').fadeOut('fast');}, 3000);

						}
					});
				}
			});
	});</pre> <a href="http://www.posteet.com/tags/frontend">[frontend]</a>  <a href="http://www.posteet.com/tags/jquery">[jquery]</a>  <a href="http://www.posteet.com/tags/tips">[tips]</a> ]]>        </description>
        <dc:creator>macks</dc:creator>
        <pubDate>Tue, 22 Mar 2011 22:59:22 +0100</pubDate>

            <category>frontend</category>
            <category>jquery</category>
            <category>tips</category>
    
    <feedburner:origLink>http://www.posteet.com/view/2123</feedburner:origLink></item>

  
    <item>
        <title>jquery tips</title>
        <link>http://feedproxy.google.com/~r/posteet/~3/fxzIavQ3-9A/2122</link>
        <description>
        <![CDATA[<pre>//validación del formulario de preguntas
$(document).ready(function() {	
	$(&quot;#encuestaForm&quot;).validate({
		messages: {'txt_descripcion_encuesta': &quot;Ingresa la descripción de la encuesta&quot;,
					'cbo_tipo': &quot;Seleccione un tipo de encuesta&quot;,
		},
	}); 
});</pre> <a href="http://www.posteet.com/tags/frontend">[frontend]</a>  <a href="http://www.posteet.com/tags/jquery">[jquery]</a>  <a href="http://www.posteet.com/tags/validaciones">[validaciones]</a> ]]>        </description>
        <dc:creator>macks</dc:creator>
        <pubDate>Tue, 22 Mar 2011 22:56:49 +0100</pubDate>

            <category>frontend</category>
            <category>jquery</category>
            <category>validaciones</category>
    
    <feedburner:origLink>http://www.posteet.com/view/2122</feedburner:origLink></item>

  
    <item>
        <title>rsyslog TCP forwarding</title>
        <link>http://feedproxy.google.com/~r/posteet/~3/qMLxuotBL2k/2121</link>
        <description>
        <![CDATA[<pre>In the format shown above, UDP is used for transmitting the message. The destination port is set to the default auf 514. Rsyslog is also capable of using much more secure and reliable TCP sessions for message forwarding. Also, the destination port can be specified. To select TCP, simply add one additional @ in front of the host name (that is, @host is UPD, @@host is TCP). For example:


*.* @@finlandia

To specify the destination port on the remote machine, use a colon followed by the port number after the machine name. The following forwards to port 1514 on finlandia:


*.* @@finlandia:1514

This syntax works both with TCP and UDP based syslog. However, you will probably primarily need it for TCP, as there is no well-accepted port for this transport (it is non-standard). For UDP, you can usually stick with the default auf 514, but might want to modify it for security rea-
sons. If you would like to do that, it's quite easy:


*.* @finlandia:151</pre> <a href="http://www.posteet.com/tags/debian">[debian]</a>  <a href="http://www.posteet.com/tags/forward">[forward]</a>  <a href="http://www.posteet.com/tags/forwarding">[forwarding]</a>  <a href="http://www.posteet.com/tags/linux">[linux]</a>  <a href="http://www.posteet.com/tags/rsyslog">[rsyslog]</a>  <a href="http://www.posteet.com/tags/syslog">[syslog]</a>  <a href="http://www.posteet.com/tags/TCP">[TCP]</a> ]]>        </description>
        <dc:creator>neorom</dc:creator>
        <pubDate>Tue, 22 Feb 2011 17:08:09 +0100</pubDate>

            <category>debian</category>
            <category>forward</category>
            <category>forwarding</category>
            <category>linux</category>
            <category>rsyslog</category>
            <category>syslog</category>
            <category>TCP</category>
    
    <feedburner:origLink>http://www.posteet.com/view/2121</feedburner:origLink></item>

  
    <item>
        <title>Récupère tous les liens d'un flux RSS Twitter</title>
        <link>http://feedproxy.google.com/~r/posteet/~3/laQ4CqDdH9M/2117</link>
        <description>
        <![CDATA[<pre>Ici on récupère les tweets du compte &quot;NouveauLivre&quot; (http://twitter.com/NouveauLivre), on filtre sur la ligne &quot;&lt;description&gt;&quot; et on utilise une expression régulière qui &quot;match&quot; les liens bit.ly pour Amazon (http://amzn.to/).

curl http://twitter.com/statuses/user_timeline/67956966.rss | grep '&lt;description&gt;' | sed -rne &quot;s_.*(http://amzn.to/[a-zA-Z0-9]*).*_1_p&quot;</pre> <a href="http://www.posteet.com/tags/bit.ly">[bit.ly]</a>  <a href="http://www.posteet.com/tags/curl">[curl]</a>  <a href="http://www.posteet.com/tags/filtre">[filtre]</a>  <a href="http://www.posteet.com/tags/regex">[regex]</a>  <a href="http://www.posteet.com/tags/rss">[rss]</a>  <a href="http://www.posteet.com/tags/twitter">[twitter]</a> ]]>        </description>
        <dc:creator>cyo</dc:creator>
        <pubDate>Sat, 29 Jan 2011 11:51:15 +0100</pubDate>

            <category>bit.ly</category>
            <category>curl</category>
            <category>filtre</category>
            <category>regex</category>
            <category>rss</category>
            <category>twitter</category>
    
    <feedburner:origLink>http://www.posteet.com/view/2117</feedburner:origLink></item>

  
    <item>
        <title>Récupérer le lien qui se cache derrière un lien de type 'shorturl'</title>
        <link>http://feedproxy.google.com/~r/posteet/~3/dWlTqWPuWIQ/2116</link>
        <description>
        <![CDATA[<pre>curl -I http://bit.ly/aBcDeF | grep '^Location: ' | awk '{ print $2; }'</pre> <a href="http://www.posteet.com/tags/bash">[bash]</a>  <a href="http://www.posteet.com/tags/curl">[curl]</a>  <a href="http://www.posteet.com/tags/shorturl">[shorturl]</a>  <a href="http://www.posteet.com/tags/url">[url]</a> ]]>        </description>
        <dc:creator>cyo</dc:creator>
        <pubDate>Sat, 29 Jan 2011 10:12:25 +0100</pubDate>

            <category>bash</category>
            <category>curl</category>
            <category>shorturl</category>
            <category>url</category>
    
    <feedburner:origLink>http://www.posteet.com/view/2116</feedburner:origLink></item>

  
    <item>
        <title>Find files modified in the last two days</title>
        <link>http://feedproxy.google.com/~r/posteet/~3/3cGvqs3tl0k/2113</link>
        <description>
        <![CDATA[<pre>find / -mtime 2 -o -ctime 2</pre> <a href="http://www.posteet.com/tags/bash">[bash]</a>  <a href="http://www.posteet.com/tags/ctime">[ctime]</a>  <a href="http://www.posteet.com/tags/files">[files]</a>  <a href="http://www.posteet.com/tags/find">[find]</a>  <a href="http://www.posteet.com/tags/linux">[linux]</a>  <a href="http://www.posteet.com/tags/modifications">[modifications]</a>  <a href="http://www.posteet.com/tags/mtime">[mtime]</a>  <a href="http://www.posteet.com/tags/shell">[shell]</a> ]]>        </description>
        <dc:creator>spirit</dc:creator>
        <pubDate>Tue, 14 Dec 2010 23:05:57 +0100</pubDate>

            <category>bash</category>
            <category>ctime</category>
            <category>files</category>
            <category>find</category>
            <category>linux</category>
            <category>modifications</category>
            <category>mtime</category>
            <category>shell</category>
    
    <feedburner:origLink>http://www.posteet.com/view/2113</feedburner:origLink></item>


</channel>
</rss>

