Maxime Chambreuil

Monday July 2, 2007

How to use CVS ? What are the basic commands ?

Max @ 22:08 | Filed under: Information Technology

Set your CVSROOT variable environment in your .bashrc :

$ export CVSROOT=:ext:@:/path/to/cvs/repository

To import an existing project to the CVS server :

$ cd files/of/your/project
$ cvs import -m " - Initial version."
 init devel

To upload files to the CVS server :

$ cvs commit -m "Comments"

To retrieve files from the CVS server :

$ cvs checkout
 

To update your files from the CVS server :

$ cvs update

To get information of a file :

$ cvs log  

To compare your file from his copy on the CVS :

$ cvs diff

Administration

Max @ 22:04 | Filed under: Information Technology

GNU/LinuxHow to add a user to an existing group ?

$ adduser -g group -d /home/group/user user

How to create a block device from a file ?

For a 100M size file:

$ dd if=/dev/zero of=/root/block1 bs=100M count=1
$ losetup /dev/loop0 /root/block1
$ mkfs -j /dev/loop0
$ mount -t ext3 /dev/loop0 /mnt/newfs

How do I do an automatic backup ?

#!/bin/bash

cd /over/the/repository/to/backup
date +%d-%m-%Y > date
tar -zcvf /repository/for/backup/`head date`.tgz /repository/to/backup
rm date

How do I do an automatic dump ?

For PostgreSQL database :

#!/bin/bash

cd /repository/for/dumpfile
date +%d-%m-%Y > date
pg_dump -D database -U username > `head date`.database.sql
rm date

The password will be asked at the prompt, which is a problem I have never solved yet.

For MySQL database :

#!/bin/bash

cd /repository/for/dumpfile
date +%d-%md%Y > date
mysqldump -D database -u username -p passwd > `head date`.database.sql
rm date

You can copy these lines in a file, and move it to /etc/cron.daily/, for example.

How do I rip a DVD ?

Max @ 22:02 | Filed under: Information Technology

MS WindowsYou can download the method of Sonic :

  • The pdf documentation only : [ PDF ]
  • The complete Tarball Files containing all installation files of required softwares and the previous pdf file : [ TGZ , 3,56 M ]

Movies

Max @ 21:55 | Filed under: Cinema

 

DVDs

The Big Blue by Luc Besson, with Rosanna Arquette, Jean Reno and Jean-Marc Barr.

The Big Blue

The Pact of Wolves by Christophe Gans, with Samuel Le Bihan, Monica Bellucci, Vincent Cassel, Jeremie Renier, Emilie Dequenne and Mark Dacascos.

Pact of Wolves

DivX

  • A stolen Life
  • Amelie Poulain (2 CDs)
  • American Beauty
  • Black Hawk Down (VO, 2 CDs)
  • Blade Runner
  • Bloody Rivers
  • Bridget Jones Diary
  • Cube
  • Don’t say a word (VO)
  • Espadon Operation
  • eXistenZ
  • Fast and Furious
  • Fight Club
  • Final Fantasy
  • Fiding Forrester
  • James Bond : Die another day (VO, 2 CDs)
  • Joan of Arc
  • Joy Ride (VO)
  • Lost Children City
  • Matrix
  • Men In Black 2
  • O Brother
  • Panic room
  • Payback
  • Planet of the Apes
  • Requiem for a Dream ( VO )
  • Seven
  • Sexe Intentions
  • Shrek
  • Star Wars – Episode 2 (VO, 2 CDs)
  • Taxi 2
  • The 6th Sens
  • The 9th Door
  • The Infernal Montparnasse Tower
  • Thomas Crown Affair
  • Tomb Raider
  • Vicious Beauty
  • What women want
  • What you did last summer
  • X-Men

Manu Chao @ Jean Drapeau Park

Max @ 19:29 | Filed under: Music

DSCN0379

« Previous Page

Copyright © Maxime Chambreuil