Skip to content

Instantly share code, notes, and snippets.

@Galsungen
Galsungen / generation_pwd.php
Created October 2, 2012 19:28
Générateur de mots de passe aléatoires
<?php
// on declare une chaine de caracteres
$chaine = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#-_\/:!+*$%;,";
echo "<h1 align='center'>Générateur de mots de passes</h1>";
//Mot de passe de 6 caractères
$nb_caract = 6;
$pass = "";
for($u = 1; $u <= $nb_caract; $u++) {
@Galsungen
Galsungen / process.php
Created July 14, 2012 13:58 — forked from anonymous/process.php
Google Reader JSON to bookmarks.html
<?php
//i fork the first script to obtain an html file like one from Firefox to import it into Shaarli.
// bump this limit up as it can be quite memory intensive if you have a lot of shared items
ini_set('memory_limit', '64M');
// update to use your own file here
$json_file = "./shared-items.json";