Skip to content

Instantly share code, notes, and snippets.

View phanect's full-sized avatar

Jumpei Ogawa phanect

View GitHub Profile
{
// ...
"exports": {
".": {
"import": "./dist/main.mjs",
"require": "./dist/main.cjs"
},
"./style.css": {
"import": "./dist/style.css",
"require": "./dist/style.css"
@phanect
phanect / local-php-server.sh
Last active December 13, 2023 21:23
local-php-server.sh
docker run --rm -it -p 4000:80 -v /path/to/siteroot:/var/www/html php:apache-buster
@phanect
phanect / template-script.mjs
Last active December 20, 2023 22:26
JSM (JavaScript modules, aka. ESM) Template for task scripts
import { fileURLToPath } from "node:url";
const __filename = fileURLToPath(import.meta.url);
const __dirname = fileURLToPath(new URL(".", import.meta.url));
@phanect
phanect / git-merge-repos.md
Last active April 18, 2024 00:09
Allow merging of two Git reoisitories

Check Sha256Sum on Windows 11 PowerShell

certutil -hashfile "C:\Users\phane\OneDrive\Desktop\neon-user-20240412-1535.iso" SHA256
@phanect
phanect / neon-setup.md
Last active April 21, 2024 21:12
Personal setup instruction for my KDE neon box

1. Update and install software

sudo pkcon refresh
sudo pkcon update

sudo apt-get install --yes --no-install-recommends --ignore-missing \
  apt-transport-https \
  curl \
 git \