Skip to content

Instantly share code, notes, and snippets.

# transform all zip file in a folder (no recurse) to rar
for %f in (*.zip) do (unzip %f -d %~nf && rar a -dr %~nf.rar %~nf && del %f)

Keybase proof

I hereby claim:

  • I am sstolz on github.
  • I am picasso (https://keybase.io/picasso) on keybase.
  • I have a public key ASCbmojU41LMlPp3Qd7AP_e2ABNUne4aMEhMTE5brGvGXgo

To claim this, I am signing this object:

@sstolz
sstolz / tva_intracom_fr.sh
Last active January 12, 2017 13:51
TVA intracommunautaire FR
# Calcul GRATUIT et pour tous du numéro de TVA intracom français
# !! le contrôle de ces clés n'implique pas l'existence réelle du numéro de TVA intracommunautaire !!
# Source : https://fr.wikipedia.org/wiki/Code_Insee#Le_num.C3.A9ro_de_TVA_Intracommunautaire
SIREN=111222333 && echo "FR $(echo '(12 + (3*(${SIREN} % 97))) % 97' | bc) ${SIREN}"
@sstolz
sstolz / wipe.sh
Created January 12, 2017 09:53
Wipe linux device with progress bar
#!/bin/bash
# resource
# https://wiki.archlinux.org/index.php/Securely_wipe_disk
dev="/sys/block/sda"
sector_number=$(cat ${dev}/size)
sector_size=$(cat ${dev}/queue/logical_block_size)
size=$((${sector_number} * ${sector_size}))