Skip to content

Instantly share code, notes, and snippets.

View 1ARdotNO's full-sized avatar

Einar Stenberg 1ARdotNO

View GitHub Profile
@dannberg
dannberg / obsidian-daily-note-template.txt
Last active November 15, 2024 15:28
Dann Berg's Daily Note Template for Obsidian. Uses Dataview & Templater plugins. Should be saved as a Markdown file in Obsidian. Read the full tour: https://dannb.org/blog/2022/obsidian-daily-note-template/
---
created: <% tp.file.creation_date() %>
---
tags:: [[+Daily Notes]]
# <% moment(tp.file.title,'YYYY-MM-DD').format("dddd, MMMM DD, YYYY") %>
<< [[Timestamps/<% tp.date.now("YYYY", -1) %>/<% tp.date.now("MM-MMMM", -1) %>/<% tp.date.now("YYYY-MM-DD-dddd", -1) %>|Yesterday]] | [[Timestamps/<% tp.date.now("YYYY", 1) %>/<% tp.date.now("MM-MMMM", 1) %>/<% tp.date.now("YYYY-MM-DD-dddd", 1) %>|Tomorrow]] >>
---
@ciaranmcnulty
ciaranmcnulty / notes.md
Last active March 25, 2024 06:36
Notes on using Docker on ARM Macs (November 2021)

Docker for Mac

On M1 machines, Docker for Mac is running a lightweight linux ARM VM, then running containers within that, so containers are essentially running natively. Don't be fooled by the fact the UI or binary CLI tools (e.g. docker) might require Rosetta.

Within that VM is an emulation layer called QEmu. This can be used by docker to run Intel containers. This does not use Rosetta at all, and has a roughly 5-6X performance penalty. (If you just upgraded your CPU this may result in a similar performance to your old machine!)

Pulling and running with Docker

Many images in public registries are multi-architecture. For instance at the time of writing on Docker Hub the php:8.0-cli image has the following digests:

@JustinGrote
JustinGrote / Dockerfile
Last active September 11, 2023 14:34
Powershell Universal VSCode devcontainer.json
#Typical values: lts, preview, 7.1.3, 7.2.0-preview.5
#See: https://hub.docker.com/_/microsoft-powershell
ARG PWSHVERSION=lts
FROM mcr.microsoft.com/powershell:${PWSHVERSION}-ubuntu-18.04
LABEL description="Powershell Universal"
SHELL ["pwsh", "-noninteractive", "-command"]
#Path to Powershell Universal
ARG PSUPATH=/home/Universal