Skip to content

Instantly share code, notes, and snippets.

@dahnielson
dahnielson / UUID.php
Last active July 18, 2024 08:32
Pure PHP UUID generator
<?php
/**
* UUID class
*
* The following class generates VALID RFC 4122 COMPLIANT
* Universally Unique IDentifiers (UUID) version 3, 4 and 5.
*
* UUIDs generated validates using OSSP UUID Tool, and output
* for named-based UUIDs are exactly the same. This is a pure
* PHP implementation.
@leonkorteweg
leonkorteweg / mirror-remote-folder-lftp.md
Last active February 29, 2024 17:25
Mirror a remote folder from the command line

Mirror a remote folder from the command line

Small but incredibly useful guide from wiak, posted on http://superuser.com/questions/40281/how-do-i-get-an-entire-directory-in-sftp

How to mirror a remote folder with lftp

well this little guide should help, mirror a remote server to local folder with lftp

lftp sftp://user:password@server.org:22 -e 'mirror --verbose --use-pget-n=8 -c /remote/path /local/path'