Skip to content

Instantly share code, notes, and snippets.

@jamesmurdza
jamesmurdza / homebrew+rosetta2-setup.sh
Last active April 11, 2022 22:57
Setup dual-architecture Homebrew on a M1 Mac.
# Setup dual-architecture Homebrew on a M1 Mac.
# 1. Install Rosetta (if necessary):
softwareupdate --install-rosetta
# 2. Install Homebrew for M1:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# 2. Install Homebrew for Rosetta:
arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
@jamesmurdza
jamesmurdza / Ruby3.0+Jekyll+GithubPages.md
Last active May 12, 2022 02:54
Free site with custom domain in 10 minutes with Jekyll & GitHub Pages
@jamesmurdza
jamesmurdza / .gitignore_global
Created April 20, 2022 14:32
Global .gitignore Example File
# An example global gitignore file
#
# Place a copy if this at ~/.gitignore_global
# Run `git config --global core.excludesfile ~/.gitignore_global`
# Folder view configuration files
.DS_Store
# Files that might appear on external disks
.Spotlight-V100
@jamesmurdza
jamesmurdza / Hardhat+macOS.md
Last active May 12, 2022 12:22
Hardhat on macOS Tutorial

👷‍♀️ Hardhat on macOS Tutorial

Based on this tutorial.

Prerequisites:

% sw_vers
ProductName:	macOS
ProductVersion:	11.6
@jamesmurdza
jamesmurdza / Truffle+macOS.md
Last active May 12, 2022 03:10
Truffle on macOS Tutorial

Truffle on macOS Tutorial

Based on this tutorial.

Prerequisites:

% sw_vers
ProductName:	macOS
ProductVersion:	11.6
@jamesmurdza
jamesmurdza / Minimalist+Web+Deployment+2022.md
Last active November 5, 2022 12:52
Minimalist website deployment strategy for 2022

Minimalist website deployment strategy for 2022

This short document gives suggestions for how to deploy websites in 2022 without any more expenses or work than is necessary. After getting accustomed to the right tools, it should be able to set up a fast and secure hosted website in about 30 minutes while only paying the cost of the domain name.

Domain names and DNS

Cloudflare offers low/no markup domain name registration with a free DNS service. This will virtually always be your cheapest option for domain name renewals. They don't list prices for all TLDs upfront, so use this list to get your best estimate.

Notes:

@jamesmurdza
jamesmurdza / SEO-Website-Localization.md
Created May 12, 2022 04:43
Search engine friendly website localization

Search engine friendly website localization

Using code like this in the HTML head:

<link rel="alternate" hreflang="en-US” href="https://mywebsite.com" />
<link rel="alternate" hreflang="fr” href="https://mywebsite.com/fr" />
<link rel="alternate" hreflang="zh-Hans” href="https://mywebsite.com/cn" />
@jamesmurdza
jamesmurdza / Batch-Transcribe-with-Google-Cloud.md
Last active May 22, 2022 23:38
Batch transcribe long audio files using Google Cloud