30 août, par Germain Guglielmetti
Un court exemple valant mieux qu’un long discours :
$host = 'localhost'; $base = ''; $user = ''; $pass = ''; $con = mysql_connect($host, $user, $pass); mysql_select_db($base, $con); div style="font-family: monospace; font-weight: normal; font-style: normal; margin:0; pad
2 août, par Germain Guglielmetti
URL de référence
http://www.gentoo.org/doc/fr/cron-guide.xml
Principales commandes
pour dcron, fcron, vixie-cron & bcron) Version Éditer le crontab Supprimer le crontab Nouveau crontab Lister le crontab dcron crontab -e crontab -d [user] crontab fichier crontab -l fcron fcrontab -e fcrontab -r [user] fcrontab fichier fcrontab -l vixie-cron & bcron crontab -e crontab -r -u [utilisateur] crontab fichier crontab (...)
24 juin, par Germain Guglielmetti
Ouvrir un Terminal et taper :
cd /Applications/iTunes.app/Contents/MacOS sudo mv iTunes iTunesX sudo curl http://www.ast.cam.ac.uk/~app26/itunes/iTunes -O sudo chmod uog+x iTunes
Contenu du fichier à curler au cas où celui-ci viendrait à disparaître : #!/usr/bin/env python
import sys, os, subprocess
launch = True
ps = subprocess.Popen("/bin/ps -x", shell=True, stdout=subprocess.PIPE)
for l in ps.stdout.read().split("\n") : if "Spotify" in l : (...)
13 mai, par Germain Guglielmetti
Symptômes
En passant en GET un paramètre qui a déjà été passé précédemment, on multiplie dans l’URL le nombre d’occurrences. Exemple : http://commodesk.com/items/index/0/ponderate/1?sort=pubDate&dir=desc&since=12&since=1&since=12&since=24&since=1&since=12
Idée
On utilise une expression régulière placée dans une fonction qu’on appelle avant d’écrire l’URL propre : <?php class utils { /** * supprimer des paramètres d'une URL * * @param (...)
9 mai, par Germain Guglielmetti
Symptomes : host ~ # emerge webmin
* IMPORTANT: 2 news items need reading for repository 'gentoo'. * Use eselect news to read news items.
Calculating dependencies... done!
!!! All ebuilds that could satisfy "app-admin/webmin" have been masked. !!! One of the following masked packages is required to complete your request:
app-admin/webmin-1.500 (masked by: ~x86 keyword)
For more information, see the MASKED PACKAGES section in the emerge man page or refer to the Gentoo (...)