Skip to content

Instantly share code, notes, and snippets.

@robertompf
robertompf / form.tsx
Created July 9, 2025 01:35 — forked from Sutil/form.tsx
Shandcn UI Money Mask Input - NextJS.
"use client";
import { zodResolver } from "@hookform/resolvers/zod";
import { useForm } from "react-hook-form";
import MoneyInput from "src/components/custom/money-input";
import { Button } from "src/components/ui/button";
import { Form } from "src/components/ui/form";
import * as z from "zod";
const schema = z.object({
@robertompf
robertompf / .env
Created August 19, 2024 14:00 — forked from stravos97/.env
Setting up the Arr Stack (Sonarr, Radarr, Overseerr) with Gluetun(Nord VPN config)
# Base paths
BASE_PATH=CHANGE-ME # Base configuration directory (Different from Data_Path lcoation)
DATA_PATH=CHANGE-ME # Base data directory (Not /home)
MEDIA_PATH=${DATA_PATH}/media # Media storage location
DOWNLOADS_PATH=${DATA_PATH}/torrents # Download directory for qBittorrent (Different from Media_path location)
# Volume paths for different services
GLUETUN_VOLUME=${BASE_PATH}/gluetun
QBITTORRENT_CONFIG_VOLUME=${BASE_PATH}/qbittorrent/config
@robertompf
robertompf / Pimox7to8.txt
Created March 30, 2024 21:41 — forked from gtx28/Pimox7to8.txt
Pimox7 to PVE8 upgrade
***Pi-Mox setup on raspberry pi 4b (cm4 you will need add the appropriate steps for your hw setup)
***None of this is "Prod" ready so use at your own risk, your VM's/Containers are your own responsibility. You should already have adequate backups etc.
***Raspberry PI OS setup
Install raspbian x64 lite on raspberry pi
pull the latest copy of Raspberry PI OS x64 lite based on debian 11 bullseye from here: https://www.raspberrypi.com/software/operating-systems/#raspberry-pi-os-64-bit
open imager, click choose os, scroll to the bottom and select custom. open the image "2023-05-03-raspios-bullseye-arm64-lite.img.xz"