Check Sha256Sum on Windows 11 PowerShell
certutil -hashfile "C:\Users\phane\OneDrive\Desktop\neon-user-20240412-1535.iso" SHA256
const { fn } = require("./async-err-lib.cjs"); | |
(async () => { | |
await fn(); | |
})(); |
Check Sha256Sum on Windows 11 PowerShell
certutil -hashfile "C:\Users\phane\OneDrive\Desktop\neon-user-20240412-1535.iso" SHA256
{ | |
// ... | |
"exports": { | |
".": { | |
"import": "./dist/main.mjs", | |
"require": "./dist/main.cjs" | |
}, | |
"./style.css": { | |
"import": "./dist/style.css", | |
"require": "./dist/style.css" |
#!/usr/bin/env bash | |
set -eu | |
DIRNAME="$(realpath "$(dirname -- "${BASH_SOURCE[0]}")")" | |
PROJECT_ROOT="$(realpath "${DIRNAME}/..")" |
/* | |
* Deprecated: Use import.meta.dirname instead. | |
* https://nodejs.org/api/esm.html#importmetadirname | |
*/ | |
import { fileURLToPath } from "node:url"; | |
const __filename = fileURLToPath(import.meta.url); | |
const __dirname = fileURLToPath(new URL(".", import.meta.url)); |
docker run --rm -it -p 4000:80 -v /path/to/siteroot:/var/www/html php:apache-buster |
MySQL:
CREATE DATABASE dbname CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON dbname.* to username@localhost;
/** | |
* Assert if objects are equal. This function also considers `not` | |
* @return true if obj1 and obj2 are equal, otherwise false | |
*/ | |
function _objEquals(obj1, obj2) { | |
const keys1 = obj1.getOwnPropertyNames().sort(sortByCharCode), | |
keys2 = obj2.getOwnPropertyNames().sort(sortByCharCode), | |
sortByCharCode = function(key1, key2) { | |
if (key1 < key2) { | |
return -1; |