2014년 3월 21일 금요일

pigz, tar - nautilus setting for multithreading

Use all cores for encoding and decoding file!

alias for .bashrc
alias tar='tar --use-compress-program="pigz --fast --recursive | pv"'


i.e)
Compress
tar --use-compress-program="pigz --best --recursive | pv" -cf archive.tar.gz YourData

with alias
tar -cf archive.tar.gz YourData


Decompress
pigz -dc target.tar.gz | pv | tar xf -

=========================


Monitor progress in a terminal
*use 'pv ' for watch progress



ex) tar -c Music | pv | pigz -0 > ./backup.tar.gz

pigz -0 => compress level 0 (no compress), replace number with proper level. level 9 is max.

 another example)
//set value in ./bashrc



alias tar="tar --use-compress-program=pigz"

//reload bashrc
source ~/.bashrc


How to unzip pigz
http://serverfault.com/questions/270814/fastest-way-to-extract-tar-gz

pigz -dc target.tar.gz | tar xf -

Or

tar -xvf --use-compress-program=pigz filenamehere

2014년 3월 15일 토요일

Remove grub2 from window partition.

actual command followed by #

1. boot from windows boot media(disk, usb..)

2. select 'repair window'

3. select command line tool

4. # diskpart

5. # list volume

6. # select volume 0(replace 0 with the number  volume of current boot media)

7. # cd ../boot

8. # bootsect /nt60 c: /mbr

9.reboot!

sublime close without confirmation

  Close without confirm   Yes, you can just write a plugin to set the view as scratch and close it. Then create a keybinding for that c...