sudo pkcon refresh
sudo pkcon update
sudo apt-get install --yes --no-install-recommends --ignore-missing \
apt-transport-https \
build-essential \
curl \
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { fileURLToPath } from "node:url"; | |
const __filename = fileURLToPath(import.meta.url); | |
const __dirname = fileURLToPath(new URL(".", import.meta.url)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run --rm -it -p 4000:80 -v /path/to/siteroot:/var/www/html php:apache-buster |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// ... | |
"exports": { | |
".": { | |
"import": "./dist/main.mjs", | |
"require": "./dist/main.cjs" | |
}, | |
"./style.css": { | |
"import": "./dist/style.css", | |
"require": "./dist/style.css" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -eu | |
DIRNAME="$(realpath "$(dirname -- "${BASH_SOURCE[0]}")")" | |
PROJECT_ROOT="$(realpath "${DIRNAME}/..")" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clean -dX --force |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker rm --force $(docker ps --all --quiet); docker rmi --force $(docker images --all --quiet); docker volume rm $(docker volume ls --quiet) |
NewerOlder