Have you ever needed to test mail functions for a project and didn't want to spam the real web? Use Mailcatcher!
docker run -d -p 1080:1080 -p 1025:1025 --name=mailcatcher -itd --network=mailcatcher sj26/mailcatcher
import requests | |
class Event: | |
"""An Event that gets triggered when an HTTP event occurs.""" | |
def __init__(self): | |
self._event_handlers = [] | |
def __iadd__(self, handler): |
Local development requires you to edit your /etc/hosts
file constantly to add custom local domains. Maintaining this file across machines and projects can become taxing. Let's use a service like dnsmasq
to dynamically set any .localhost
domain to point to 127.0.0.1
# Install dnsmasq
brew install dnsmasq
sudo brew services start dnsmasq
# Configure
#!/bin/bash | |
# Copy a set of files to each repo in a dir, create a branch, and push to origin | |
# Requires GitHub CLI: `brew install gh` and must be logged in with `gh auth login` | |
# GitHub CLI Docs: https://cli.github.com/manual/ | |
MAIN_BRANCH="master" | |
BRANCH_NAME="ignore_cassette_diffs" | |
COMMIT_MESSAGE="chore: ignore cassette diffs via gitattributes" | |
PR_TITLE="$COMMIT_MESSAGE" |
iMovie only works when run on a filesystem supported by Apple (APFS or macOS Extended). Your NAS most likely isn't running this file system for drives. Follow this guide to be able to run your iMovie library off a NAS.
Disk Utility
Setting up programming languages can take some time and differs per language. Here are some guides on each one to get you up and running in no time. NOTE: This guide is intended for macOS development.
M1 Macs & Homebrew: You will need to add the following to your path: /opt/homebrew/bin
and /opt/homebrew/sbin
Run brew install --cask dotnet-sdk
to get started. This will install the SDK along with Mono. See the C# page for more information: https://formulae.brew.sh/cask/dotnet-sdk
import json | |
import os | |
# Invert a dictionary's keys and values | |
# USAGE: FILE=myfile.json venv/bin/python invert_dictionary.py | |
FILE = os.getenv('FILE') | |
def main(): |