This method was from http://unix.stackexchange.com/questions/65077/is-it-possible-to-see-cp-speed-and-percent-copied.
Install pv
first
$ brew -v install pv
$ tar cv newstapa | pv | tar x -C /Volumes/FATHER/Media/
$ tail /var/log/auth.log | tac |
import unicodedata | |
nfc_string = '10 [2013010017] \xe1\x84\x89\xe1\x85\xa9\xe1\x84\x85\xe1\x85\xa7\xe1\x86\xab\xe1\x84\x8b\xe1\x85\xb4 KAL\xe1\x84\x80\xe1\x85\xb5 \xe1\x84\x80\xe1\x85\xa7\xe1\x86\xa8\xe1\x84\x8e\xe1\x85\xae\xe1\x84\x89\xe1\x85\xa1\xe1\x84\x80\xe1\x85\xa5\xe1\x86\xab 1\xe1\x84\x8c\xe1\x85\xae\xe1\x84\x82\xe1\x85\xa7\xe1\x86\xab \xe1\x84\x83\xe1\x85\xa2\xe1\x84\x8e\xe1\x85\xa2\xe1\x86\xa8 \xe1\x84\x86\xe1\x85\xb5\xe1\x86\xbe \xe1\x84\x80\xe1\x85\xa1\xe1\x86\xa8\xe1\x84\x80\xe1\x85\xae\xe1\x86\xa8 \xe1\x84\x83\xe1\x85\xa9\xe1\x86\xbc\xe1\x84\x92\xe1\x85\xa3\xe1\x86\xbc, 1984. \xe1\x84\x8c\xe1\x85\xa5\xe1\x86\xab4\xe1\x84\x80\xe1\x85\xaf\xe1\x86\xab(V.3 8.21-9.5).pdf' | |
print unicodedata.normalize('NFC', nfc_string) |
# -*- coding: utf-8 -*- | |
import pprint | |
class MyPrettyPrinter(pprint.PrettyPrinter): | |
def format(self, _object, context, maxlevels, level): | |
if isinstance(_object, unicode): | |
return "'%s'" % _object.encode('utf8'), True, False | |
elif isinstance(_object, str): |
# -*- coding: utf-8 -*- | |
""" | |
Copyright 2005 Spike^ekipS <spikeekips@gmail.com> | |
This program is free software; you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation; either version 2 of the License, or | |
(at your option) any later version. | |
This program is distributed in the hope that it will be useful, |
# -*- coding: utf-8 -*- | |
""" | |
# nfc2nfd.py | |
Simply convert nfc(ed) file to nfd(ed) file | |
Written by Spike^ekipS <spikeekips@gmail.com> | |
# Installation |
# -*- coding: utf-8 -*- | |
import qrcode | |
import pprint # noqa | |
import sys # noqa | |
import csv | |
for i in csv.reader(file('1.csv'), dialect='excel'): | |
o = dict( |
This method was from http://unix.stackexchange.com/questions/65077/is-it-possible-to-see-cp-speed-and-percent-copied.
Install pv
first
$ brew -v install pv
$ tar cv newstapa | pv | tar x -C /Volumes/FATHER/Media/