Skip to content

Instantly share code, notes, and snippets.

@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
@linucksrox
linucksrox / docker-compose.yml
Created November 21, 2023 18:49
Unifi Network Application 8.0.7 with mongodb - docker-compose.yml
version: '3.7'
services:
unifi-db:
image: docker.io/mongo:latest
container_name: unifi-db
volumes:
- ./data:/data/db
- ./init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#3F51B5</color>
<color name="colorPrimaryDark">#303F9F</color>
<color name="colorAccent">#FF4081</color>
<color name="colorLightOn">#FF2222</color>
<color name="colorLightOff">#AAAAAA</color>
</resources>
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="buttonWidth">50dp</dimen>
<dimen name="buttonSpacing">2dp</dimen>
</resources>
@linucksrox
linucksrox / layout_main.xml
Created August 23, 2019 14:25
lights out button grid layout demo for android
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_gravity="center_horizontal">
<LinearLayout
android:id="@+id/buttonRowA"
android:layout_width="wrap_content"