Skip to content

Instantly share code, notes, and snippets.

View iamjohnmills's full-sized avatar

John Mills iamjohnmills

View GitHub Profile

Gist Overview: Publish React build files to Github Pages using a branch (2025)


For New Projects

  1. Create a new branch from master git checkout -b public
  2. Remove dist from .gitignore
  3. Add your github base url (eg. myusername.github.io) to build configs.
  4. Build project, then add/commit files.
@iamjohnmills
iamjohnmills / ZSHRC.md
Last active May 3, 2025 23:14
Customzing your Macos terminal with ZSH and Themes

Gist Overview: Make a sleek custom ZSH prompt and theme for ZSH on MacOS (2025)


Customize ZSH Profile Prompt

# Open ZSHRC profile file
nano ~/.zshrc
@iamjohnmills
iamjohnmills / LOCALES.md
Last active May 3, 2025 22:35
Timezone and Locale list as JS array

Gist Overview: Locales and Timezones in Javascript array syntax (2024)


// Locales
const locales = ['af-ZA','am-ET','ar-AE','ar-BH','ar-DZ','ar-EG','ar-IQ','ar-JO','ar-KW','ar-LB','ar-LY','ar-MA','arn-CL','ar-OM','ar-QA','ar-SA','ar-SD','ar-SY','ar-TN','ar-YE','as-IN','az-az','az-Cyrl-AZ','az-Latn-AZ','ba-RU','be-BY','bg-BG','bn-BD','bn-IN','bo-CN','br-FR','bs-Cyrl-BA','bs-Latn-BA','ca-ES','co-FR','cs-CZ','cy-GB','da-DK','de-AT','de-CH','de-DE','de-LI','de-LU','dsb-DE','dv-MV','el-CY','el-GR','en-029','en-AU','en-BZ','en-CA','en-cb','en-GB','en-IE','en-IN','en-JM','en-MT','en-MY','en-NZ','en-PH','en-SG','en-TT','en-US','en-ZA','en-ZW','es-AR','es-BO','es-CL','es-CO','es-CR','es-DO','es-EC','es-ES','es-GT','es-HN','es-MX','es-NI','es-PA','es-PE','es-PR','es-PY','es-SV','es-US','es-UY','es-VE','et-EE','eu-ES','fa-IR','fi-FI','fil-PH','fo-FO','fr-BE','fr-CA','fr-CH','fr-FR','fr-LU','fr-MC','fy-NL','ga-IE','gd-GB','gd-ie','gl-ES','gsw-FR','gu-IN','ha-Latn-NG','he-IL','hi-IN','hr-BA','hr-HR','hs
@iamjohnmills
iamjohnmills / MINECRAFT.md
Last active May 3, 2025 22:57
Minecraft Docker Setup (ITZG, MACOS) 2025

Gist Overview: Setup a Minecraft Server in Docker on MacOS (2025)


Java Edition Setup
Compatibility: Windows, Mac

🔘 Step 1: Initialize

@iamjohnmills
iamjohnmills / WORDS.md
Last active May 3, 2025 22:34
Get a dictionary on Macos

Gist Overview: Create a comprehensive list of English words with MacOS.


Copy /usr/share/dict/words as words.txt

(async () => {
  const fs = require('fs');
 const readline = require('readline');