find . ! -empty -type f -exec md5sum {} + | sort | uniq -w32 -dD
참고 사이트 : https://unix.stackexchange.com/questions/277697/whats-the-quickest-way-to-find-duplicated-files
Huubro storys
기술
find . ! -empty -type f -exec md5sum {} + | sort | uniq -w32 -dD
참고 사이트 : https://unix.stackexchange.com/questions/277697/whats-the-quickest-way-to-find-duplicated-files
docker cp 명령어를 이용하면 별도의 네트워크등 을 이용하지 않고 host 에서 파일을 컨테이너으로 전송 할수 있다.
$ docker cp /sourcefile contaner-a:/temp
$ docker cp contaner-a:/temp/sourcefile /temp
참고 사이트 : http://www.leafcats.com/163
apache mod_wsgi 에서 virtualenv 을(를) 사용하기 위한 .wsgi Code
참고 url : http://flask.pocoo.org/docs/0.12/deploying/mod_wsgi/#working-with-virtual-environments
# python 2.x
activate_this = '/path/to/env/bin/activate_this.py'
execfile(activate_this, dict(__file__=activate_this))
# python 3
activate_this = '/path/to/env/bin/activate_this.py'
with open(activate_this) as file_:
exec(file_.read(), dict(__file__=activate_this))
python version 3.6.4
import random, string
def randomstr(n):
return ''.join(random.choice(string.ascii_lowercase + string.digits) for i in range(n))