Août 122018

The scality’s RING product is a distributed storage solution, which manages different replication and erasure coding security. –

1. What is a keyspace in the Scality RING

A RING keyspace is a circle starting at 00, ending at FF.

in reality, the numbers are not just 2 character long but 40 characters.

A keyspace is composed of node keyranges.

A keyrange is a space between a key on the keyspace, and the predecessor key.

Continue reading »

 Publié par à 16 h 51 min
Juin 182014

I have several backups of my old mobile phones, with a lot of pictures taken.

When I wanted to categorize them, it appeared that there was duplicated pictures (really? ;))

so a little script after that, I could found all duplicated files et choose which of them to delete.

This script will not touch your files but displays all duplicated found files both in your terminal and in a csv file.
feel free to open it with your preferred sheet program

FYI: The analysis is based on the size and checksum of the files, not on the date nor filename.

the result is:

$ ./ -dir /data/photos\ -\ images/
find duplicate files size
md5sum duplicated files size
isolate duplicated files found
print the result
53b69ddf18c82f222046e8f616955bc6;;/data/photos - images/photos classées/Annee_2011/miaou/IMAG0462.jpg;/data/photos - images/photos classées/Annee_2012/miaou/IMAG0462.jpg
the result can be found in: '/tmp/'

Continue reading »

Fév 202014

On m’a demandé comment copier sans écraser la destination si elle existe.

l’environnement est restreint, pas de rsync et doit tenir dans une ligne.

pas le temps de tester si le fichier existe, ce doit être rapide.

la solution est facile:

# yes |sed 's/y/n/' | cp -i source destination 

Continue reading »

 Publié par à 14 h 32 min
Juil 042013

Works on Bash only

cidr2dec() {
totalmask= ; bits=

for ((i=$cidr; $i>0; i--)); do bits="${bits}1" ; done
for ((i=$((32 - $cidr)); $i>0; i--)); do bits="${bits}0" ; done

for i in 1 9 17 25; do
bitmask=$(echo $bits |cut -c${i}-$(($i + 7)))
totalmask=${totalmask}$(echo 'obase=10; ibase=2;' $bitmask |bc).

echo ${totalmask%%.}


$ for i in 16 24 26 27 32 ; do cidr2dec $i ; done
Sep 302012

English is not my natural language, i accept all your corrections and will modify the texts as soon as possible.

1. English version

Update 7th October 2012 : adding the power off function for the remote.

1. Introduction

Xtreamer ultra is an HTPC (mini computer) using GNU/Linux operating system, providing a wonderful media center.

shipped with Ubuntu 10.10 (maverick merkaat code name). this release is no more supported by the development company (Canonical) so we can not have updates anymore.

I’ve seen a lot of users searching how to make Xtreamer work on Ubuntu 12.04, I hope this guide will help some people.

Xtreamer Ultra & Xtreamer Ultra2 are approximatively the same product as you can see at :  &

I only have Xtreamer Ultra so I can’t test these configurations on Ultra2

Continue reading »

Juil 052012

Un tas de développeurs ne regardent pas plus loin que leur nez et ne pensent pas « dans le temps ».
quand on écrit un programme, il ne faut pas « juste » prendre en compte l’existant mais aussi ce qui pourrait exister, il faut toujours cloisonner les choix d’action possible d’un script ou d’un programme.

j’ai encore eu un cas cette semaine, ou un de nos serveurs de mail va changer, son adresse IP aussi. j’ai donc voulu vérifier par acquis de conscience si son adresse n’était pas référencée/utilisée dans des scripts. un seul mot : effarant!
Continue reading »