This document contains various operations you can use when working with Git branches such as moving commits, updating branch names, creating branches from a tag, etc.
git branch newbranch
import os | |
def main(): | |
makefile_path = os.path.join(os.getcwd(), "Makefile") | |
with open(makefile_path, "r") as makefile: | |
content = makefile.readlines() | |
new_content = "" |
import requests | |
class Event: | |
"""An Event that gets triggered when an HTTP event occurs.""" | |
def __init__(self): | |
self._event_handlers = [] | |
def __iadd__(self, handler): |
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(): |
Quickly setup multiple websites via Docker containers on a single server via Traefik.
Edit the email
found in the traefik.toml
file and run docker compose up -d
to get started in production (LetsEncrypt will generate SSL certs for all your sites).
If you'd like to use Traefik during development, you'll want to comment out the lines that have SSL/HTTPS/443
comments/code in the docker-compose.yml
file.
Hosts: You'll need to add each site url to your /etc/hosts
file before it can be visited.