Recent posteets

Sort by: Date / Title /

  1. 8 months ago by sebastien.ferry
    Parse the file liste_url.txt and open a new tab if the line starts with http Parcours le fichier liste_url.txt et ouvre un nouvel onglet si la ligne commence par http Warning: Firefox.exe needs to be accessible (PATH) Attention: Firefox.exe doit être accessible (PATH) The keypoint is in option -new-tab of Firefox. L'élément clé est l'option -new-tab de Firefox.
    1. for /F "tokens=1,2* delims=:" %i in (liste_url.txt) do if %i == http Firefox.exe -new-tab "%i:%j"
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/2137"></script>
  2. 10 months ago by sox
    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 :
    
    + <VirtualHost _default_:80>
    +         ServerAdmin contact@gayux.fr
    +         Redirect permanent / https://foo.bar/
    + </VirtualHost>
    
    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 "extended" 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
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/2136"></script>
  3. 11 months ago by macks
    1. #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:
    2.  
    3. $slug = Doctrine_Inflector::urlize($cadena);
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/2131"></script>
  4. sponsorised links
  5. 11 months ago by spirit
    1. #Linux
    2. for ip in $(seq 1 254); do ping -c 1 192.168.1.$ip>/dev/null; [ $? -eq 0 ] && echo "192.168.1.$ip UP" || : ; done
    3.  
    4. #Windows:
    5. for /L %I in (1,1,254) DO ping -w 30 -n 1 192.168.1.%I | find "Reply"
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/2130"></script>
  6. 1 year ago by neorom
    1. iptables -D table -s IP -j DROP
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/2129"></script>
  7. 1 year ago by neorom
    1. /etc/pure-ftpd/conf/PassivePortRange
    2.  
    3.  
    4. 50000 50100
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/2127"></script>
  8. 1 year ago by sox
    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 &
    [1] 6702
    Starting mysqld daemon with databases from /var/lib/mysql
    mysqld_safe[6763]: started
    
    Here you can see the new job (number "1") 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> 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> flush privileges;
    Query OK, 0 rows affected (0.02 sec)
    
    mysql> 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 "fg", then kill it by pressing "Ctrl+c" 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> exit
    Bye
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/2126"></script>
  9. 1 year ago by neorom
    1. VBoxManage clonevdi debian-1.vdi debian-2.vdi
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/2125"></script>
  10. 1 year ago by macks
    1. //agregar una clase usando jquery
    2.  
    3. $("#radio_c").addClass("required");
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/2124"></script>
  11. 1 year ago by macks
    1. // enviar datos de un formulario por POST
    2.         $(document).ready(function(){
    3.                         $("#mensaje").hide();
    4.                        
    5.                         $("#frmContact").validate({
    6.                                 event: "blur",rules: {'nombre': "required",'email': "required email",'consulta': "required"},
    7.                                 messages: {'nombre': "Por favor indica tu nombre",'email': "Por favor, indica una direcci&oacute;n de e-mail v&aacute;lida",'consulta': "Por favor, dime algo!"},
    8.                                 debug: true,errorElement: "label",
    9.                                 submitHandler: function(form){
    10.                                         $("#mensaje").show();
    11.                                         $("#mensaje").html("<img src='ajax-loader.gif' style='vertical-align:middle;margin:0 10px 0 0' /><strong>Enviando mensaje...</strong>");
    12.                                         $.ajax({
    13.                                                 type: "POST",
    14.                                                 url:"envio.php",
    15.                                                 contentType: "application/x-www-form-urlencoded",
    16.                                                 processData: true,
    17.                                                 data: "nombre="+escape($('#ContactName').val())+"&email="+escape($('#ContactRecipient').val())+"&mensaje="+escape($('#ContactMessage').val()),
    18.                                                 success: function(msg){
    19.                                                         $("#mensaje").html("<strong>Mensaje enviado correctamente. En breve recibir&aacute;s mi respuesta. Gracias!</strong>");
    20.                                                         document.getElementById("ContactName").value="";
    21.                                                         document.getElementById("ContactRecipient").value="";
    22.                                                         document.getElementById("ContactMessage").value="";
    23.                                                         setTimeout(function() {$('#mensaje').fadeOut('fast');}, 3000);
    24.  
    25.                                                 }
    26.                                         });
    27.                                 }
    28.                         });
    29.         });
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/2123"></script>

First / Previous / Next / Last / Page 1 of 79 (782 posteets)