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 8000| (function () { | |
| try { | |
| const merchantId = "manhattan_br"; // Substitua pelo seu Merchant ID | |
| const fingerPrint = new Date().getTime(); | |
| const sessionId = `${merchantId}${fingerPrint}`; // Gera um sessionId único | |
| // Insere o script de fingerprinting dinâmico | |
| const script = document.createElement("script"); | |
| script.type = "text/javascript"; | |
| script.src = `https://h.online-metrix.net/fp/tags.js?org_id=k8vif92e&session_id=${sessionId}`; |
| (function () { | |
| try { | |
| const merchantId = "manhattan_br"; // Substitua pelo seu Merchant ID | |
| const fingerPrint = new Date().getTime(); | |
| const sessionId = `${merchantId}${fingerPrint}`; // Gera um sessionId único | |
| // Insere o script de fingerprinting dinâmico | |
| const script = document.createElement("script"); | |
| script.type = "text/javascript"; | |
| script.src = `https://h.online-metrix.net/fp/tags.js?org_id=k8vif92e&session_id=${sessionId}`; |
| export function classNames(...classes: (string | any | false)[]) { | |
| return classes.filter(Boolean).join(" "); | |
| } |
| import { useEffect, useState } from "react"; | |
| import { io, ManagerOptions, Socket, SocketOptions } from "socket.io-client"; | |
| export const useSocketIO = ( | |
| uri?: string | Partial<ManagerOptions & SocketOptions>, | |
| opts?: Partial<ManagerOptions & SocketOptions> | |
| ): [Socket] => { | |
| const [activeSocket, setActiveSocket] = useState<Socket>(null); | |
| useEffect(() => { |
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 8000| I use the following command to be able to use either vmware workstation pro 15 or hyper-v on the same pc. One at a time. | |
| If I want to use vmware workstation pro 15 I enter: | |
| Bcdedit /set hypervisorlaunchtype off | |
| Then restart | |
| If I want to use hyper-v I enter: |
| #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 {}; |