Check Sha256Sum on Windows 11 PowerShell
certutil -hashfile "C:\Users\phane\OneDrive\Desktop\neon-user-20240412-1535.iso" SHA256
Check Sha256Sum on Windows 11 PowerShell
certutil -hashfile "C:\Users\phane\OneDrive\Desktop\neon-user-20240412-1535.iso" SHA256
git remote add -f repo-a git@github.com:someone/repo-a.git
git merge repo-a/main --allow-unrelated-histories
See: https://medium.com/altcampus/how-to-merge-two-or-multiple-git-repositories-into-one-9f8a5209913f
{ | |
// ... | |
"exports": { | |
".": { | |
"import": "./dist/main.mjs", | |
"require": "./dist/main.cjs" | |
}, | |
"./style.css": { | |
"import": "./dist/style.css", | |
"require": "./dist/style.css" |
echo -e "Jumpei Ogawa <git@phanective.org> <phanect@users.noreply.github.com>\nJumpei Ogawa <git@phanective.org> <old@example.com>" | tee ./mailmap | |
git filter-repo --mailmap mailmap |
#!/usr/bin/env bash | |
set -eu | |
DIRNAME="$(realpath "$(dirname -- "${BASH_SOURCE[0]}")")" | |
PROJECT_ROOT="$(realpath "${DIRNAME}/..")" |
import { fileURLToPath } from "node:url"; | |
const __filename = fileURLToPath(import.meta.url); | |
const __dirname = fileURLToPath(new URL(".", import.meta.url)); |
git clean -dX --force |
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;