Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| #include <windows.h> | |
| #include <memory> | |
| #include <string> | |
| //returns the serial number of the first physical drive in a std::string or an empty std::string in case of failure | |
| //based on http://codexpert.ro/blog/2013/10/26/get-physical-drive-serial-number-part-1/ | |
| std::string getFirstHddSerialNumber() { | |
| //get a handle to the first physical drive | |
| HANDLE h = CreateFileW(L"\\\\.\\PhysicalDrive0", 0, FILE_SHARE_READ|FILE_SHARE_WRITE, NULL, OPEN_EXISTING, 0, NULL); | |
| if(h == INVALID_HANDLE_VALUE) return {}; |