Skip to content

Instantly share code, notes, and snippets.

@Jip-Hop
Jip-Hop / README.md
Last active April 9, 2024 07:20
Persistent Debian 'jail' on TrueNAS SCALE to install software (docker-compose, portainer, podman, etc.) with full access to all files via bind mounts. Without modifying the host OS at all thanks to systemd-nspawn!
https://zhuanlan.zhihu.com/p/569452790
补充点可用的IP:
上海/电信:
180.163.150.34
180.163.151.34
180.163.151.162
180.163.150.162
@hunterjm
hunterjm / frigate_0.10_notification.yaml
Last active March 7, 2024 21:19
Frigate 0.10 Notifications
blueprint:
name: Frigate Notification (0.10.0)
description: |
## Frigate Mobile App Notification
This blueprint will send a notification to your device when a Frigate event for the selected camera is fired. The notification will initially include the thumbnail of the detection, but include an actionable notification allowing you to view the clip and snapshot.
With this blueprint, you may send the notification to multiple devices by leaving "Device" blank and instead use a [notification group][1].
### Software Version Requirements
@tprelog
tprelog / enable-docker.sh
Last active November 23, 2023 01:58
Use docker-compose on TrueNAS SCALE 22.12 (Bluefin) without Kubernetes
#!/usr/bin/env bash
#
# Enable docker and docker-compose on TrueNAS SCALE (no Kubernetes)
#
# This script is a hack! Use it at your own risk!!
# Using this script to enable Docker is NOT SUPPORTED by ix-systems!
# You CANNOT use SCALE Apps while using this script!
#
# 1 Create a dedicated Docker dataset in one of your zpools
@cntrump
cntrump / bcompare_patch.py
Last active November 25, 2023 07:27
Beyond Compare 4 Patcher
#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
import os
import sys
import platform
def useage():
print("useage: bcompare_patch.py /path/to/BCompare")
@gangefors
gangefors / Install FreeNAS SCALE on a partition and create a mirror.md
Last active April 26, 2024 17:30
How to install TrueNAS SCALE on a partition instead of the full disk

Install TrueNAS SCALE on a partition instead of the full disk

The TrueNAS installer doesn't have a way to use anything less than the full device. This is usually a waste of resources when installing to a modern NVMe which is usually several hundred of GB. TrueNAS SCALE will use only a few GB for its system files so installing to a 16GB partition would be helpful.

The easiest way to solve this is to modify the installer script before starting the installation process.

@Jip-Hop
Jip-Hop / boot.sh
Last active June 21, 2023 17:38
Using Docker on TrueNAS SCALE (no Kubernetes)
#!/usr/bin/env bash
#
# Enable docker and docker-compose on TrueNAS SCALE (no Kubernetes)
#
# This script is a hack! Use it at your own risk!!
# Using this script to enable Docker is NOT SUPPORTED by ix-systems!
# You CANNOT use SCALE Apps while using this script!
#
# 1 Create a dedicated Docker zvol on one of your zpools: zfs create -V 100G data/_docker
@nstanke
nstanke / enable_ws.sh
Last active March 5, 2024 14:43
Synology Bitwarden_rs Websocket setup without SSH
#!/bin/bash
LOC_DIR="/etc/nginx"
if [ ! -f $LOC_DIR/ws.locations ]; then
echo """
location /notifications/hub {
proxy_pass http://localhost:$3;
proxy_set_header Upgrade \$http_upgrade;
proxy_set_header Connection "upgrade";
@LittleNewton
LittleNewton / Microsoft.PowerShell_profile.ps1
Last active February 22, 2024 11:37
PowerShell 7.1 启动命令
<#
* FileName: Microsoft.PowerShell_profile.ps1 / PowerShell configuration file.
* Author: 刘 鹏
* Email: littleNewton6@gmail.com
* Created Date: 2021, Aug. 21
* Updated Date: 2023, Mar. 15
* Copyright: No copyright. You can use this code for anything with no warranty.
#>
@rikka0w0
rikka0w0 / ipxe_build.md
Last active March 21, 2024 23:00
Build IPXE

1. Install tools and config IPXE

# Install compiler and dependencies
sudo apt-get install -y git gcc make liblzma-dev

# Grab the source code
git clone https://github.com/ipxe/ipxe.git
cd ipxe/src

# Enable NFS support