Acccelerate CD/dvd player
The cd or dvd reader was mounted on /dev/cdrom sudo hdparm -d1 /dev/cdrom sudo cp /etc/hdparm.conf /etc/hdparm.conf_backup sudo gedit /etc/hdparm.conf Add in this file, the… Read More »Acccelerate CD/dvd player
The cd or dvd reader was mounted on /dev/cdrom sudo hdparm -d1 /dev/cdrom sudo cp /etc/hdparm.conf /etc/hdparm.conf_backup sudo gedit /etc/hdparm.conf Add in this file, the… Read More »Acccelerate CD/dvd player
export PROMPT_COMMAND=“${PROMPT_COMMAND:+$PROMPT_COMMAND ; }”‘echo $$ $USER “$(history 1)”|logger -p user.alert -t bash_history’ readonly PROMPT_COMMAND
#Pour changer les permissions récursivement sur les dossiers sans toucher aux autres fichiers : chmod u-w $(ls -l -R | sed -n ‘/^d/p’ | awk… Read More »Changer les permissions récursivement sur les dossiers uniquement
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… Read More »Resetting a forgotten MySQL root password
UPDATE user SET user_password = MD5(CONCAT(user_id, ‘-‘, MD5(‘somepass’))) WHERE user_name = ‘someuser’;
You can check and compare sort orders provided by these two collations here: http://www.collation-charts.org/mysql60/mysql604.utf8_general_ci.european.html http://www.collation-charts.org/mysql60/mysql604.utf8_unicode_ci.european.html utf8_general_ci is a very simple collation. What it does -… Read More »utf8_unicode_ci vs utf8_general_ci
apt-get install postfix # Choisir configuration type ‘Site internet’ ////////////////////////// //– etc/postfix/main.cf ////////////////////////// myhostname = bart mydomain = mydomain.com myorigin = $myhostname.$mydomain alias_maps = hash:/etc/aliases… Read More »Configuration de base d’un postfix
Note Creates a grey overlay in background and a modal window in foreground <!DOCTYPE html PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”> <html> … Read More »Create a Lightbox effect only with CSS – no javascript needed (modal window)
# Sur linux pour avoir une interface virtuelle qui tag sur le vlan 2 et attachée à eth0 # Nécessite le package vlan (apt-get install… Read More »Tagging VLAN 802.1Q entre switch CISCO (trunk) et linux
Trabajando con archivos y directorios con Python¶ Listado de archivos en un directorio¶ Para buscar todos los archivos con una extensión, por ejemplo .jpg: import… Read More »Trabajando con archivos y directorios | Python