Skip to content

Instantly share code, notes, and snippets.

View iamjairo's full-sized avatar

Jairo Solassa iamjairo

  • Amsterdam
View GitHub Profile
@iamjairo
iamjairo / syno-cli.sh
Created August 9, 2026 06:59 — forked from rezarajan/syno-cli.sh
A curl-based synology-cli tool for listing, locking and unlocking shares. Works with DSM 7.2.2 + and 2FA.
#!/usr/bin/env bash
# synology-cli.sh
# Works with DSM 7.2.2 and 2FA
set -euo pipefail
NAS_URL=""
while getopts ":u:" opt; do
case $opt in
u) NAS_URL="$OPTARG" ;;
*) echo "Usage: $0 [-u https://your-nas:5001]"; exit 1 ;;
@iamjairo
iamjairo / virtual-dsm-lxc-gpu.sh
Created August 9, 2026 06:54 — forked from wolfyportal/virtual-dsm-lxc-gpu.sh
two scripts for proxmox to create vdsm on LXC (normal or gpu pass-through)
# the author(@theciso) deleted it from their repository, so this is another backup
# I cloned from here to use it more easily
# https://github.com/vdsm/virtual-dsm/pull/988/commits/6afb3f1acc4e55e7f36b87a61020ce2facea514d
#!/bin/bash
# Constants
CONFIG_DIR="/etc/pve/lxc"
TMP_DIR="/tmp"
@iamjairo
iamjairo / synology_spk_platforms.md
Created August 9, 2026 06:42 — forked from MilosHavranek/synology_spk_platforms.md
Synology platform list - SPK arch list

Synology platform list - SPK arch list

This platform list serves as a helper for making SPK packages.

Example:

arch="noarch"

arch="x86"
@iamjairo
iamjairo / istore.sh
Created August 2, 2026 15:55 — forked from iGlitch/istore.sh
OpenWRT iStore English "Installer"
#!/bin/sh
# iStore English Patcher by Glitch
echo "Welcome to the iStore English Patcher"
echo "What do you want to do?"
echo "1. Make iStore English"
echo "2. Revert to Chinese iStore"
#echo "3. Make iStore Dark Theme"
#echo "4. Restore iStore's Original Theme"
echo "3. Exit"
read n
@iamjairo
iamjairo / syno-wildcard.sh
Created July 24, 2026 19:30 — forked from gtrabanco/syno-wildcard.sh
Synology acme.sh wildcard cert creation
#!/usr/bin/env bash
# DOMAINS
DOMAINS="example.com,*.example.com"
# DNS Provider
CERT_DNS="dns_namecheap" # For more: https://github.com/acmesh-official/acme.sh/wiki/dnsapi
NAMECHEAP_API_KEY=''
NAMECHEAP_USERNAME=''
NAMECHEAP_SOURCEIP=''
@iamjairo
iamjairo / renew_ssl_synology.md
Created July 24, 2026 19:28 — forked from huettern/renew_ssl_synology.md
Wildcard certificate on Synology NAS

Use certbot to create a wildcard certificat with DNS challenge

DOMAIN="example.com"
sudo certbot certonly  --manual --manual-public-ip-logging-ok --preferred-challenges dns-01 --server https://acme-v02.api.letsencrypt.org/directory -d "*.$DOMAIN"

Follow the instructions on the console and create the DNS TXT record.

Copy the generated files to a working directory

We are going to use the acme.sh script to accomplish this. For authentication of the domain name, we will use the DNS option. First login to your Synology with ssh as the admin user and then sudo -i to get root access. When you login into the Synology with ssh you will end up in the /root path. I assume for the rest of the guide we run everything from that path. Now we need to get the script and change the permissions so it is executable.

wget https://raw.githubusercontent.com/Neilpang/acme.sh/master/acme.sh
chmod a+x acme.sh

Next we issue the certificate:

./acme.sh --issue -d *.website.come --dns --yes-I-know-dns-manual-mode-enough-go-ahead-please
@iamjairo
iamjairo / busybox applets
Created July 23, 2026 19:41 — forked from Robertof/busybox applets
Hikvision DS-KH9510-WTE1 dump
# busybox
BusyBox v1.22.1 (2014-11-27 12:30:44 CST) multi-call binary.
BusyBox is copyrighted by many authors between 1998-2012.
Licensed under GPLv2. See source distribution for detailed
copyright notices.
Usage: busybox [function [arguments]...]
or: busybox --list
or: function [arguments]...
@iamjairo
iamjairo / expand_syno_lvm_vm_root.md
Created July 16, 2026 11:19 — forked from dbaman1/expand_syno_lvm_vm_root.md
[Expand Synology LVM Partition] Expand Linux Partition On VM in Synology Virtual Machine Manager #lvm #synology #vm #vmm #expand

Expand Linux Partition On VM in Synology Virtual Machine Manager

How to Expand a Linux (Ubuntu) Partition On a VM in the Synology Virtual Machine Manager

Making the space available to the OS

  1. Login to DSM and goto Virtual Machine Manager
  2. Select "Virtual Machine" and select the Virtual Machine
  3. At the top select [Action] - Edit
  4. In the "Edit Virtual Machine"-window select the "Storage"-tab
  5. Set the size in GB of the Partition you want to increase - for example: "Virtual Disk 1" from 10 to 20 GB
@iamjairo
iamjairo / synology-dsm.boot-tweaks.sh
Created July 16, 2026 11:18 — forked from oxavelar/synology-dsm.boot-tweaks.sh
Synology DSM DS920+ System Optimizations
#!/bin/sh
# /usr/local/etc/rc.d/boot-tweaks.sh
#
# Put this in /usr/local/etc/rc.d/
# chown this to root
# chmod this to 700
# Must be run as root!
case $1 in
start)