Skip to content

Instantly share code, notes, and snippets.

View 1ARdotNO's full-sized avatar

Einar Stenberg 1ARdotNO

View GitHub Profile
@linucksrox
linucksrox / README.md
Created October 24, 2024 19:27
Talos Linux democratic-csi nfs and iscsi with Truenas Scale

How To Deploy

The .yaml file is actually a values file for the Helm chart democratic-csi/democratic-csi

  • Make sure TrueNAS has a dataset nvme2tb/k8s (or update the yaml file)
  • If you're using iSCSI, do the following in TrueNAS:
    • Create a dataset nvme2tb/k8s/iscsi
    • Make sure Block (iSCSI) Shares Targets is running, and click Configure
    • Save the defaults for Target Global Configuration
    • Add a portal on 0.0.0.0:3260
  • Add an Initiator Group, Allow all initiators, and name it something like k8s-talos
@dannberg
dannberg / obsidian-daily-note-template.txt
Last active April 16, 2025 07:10
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