Skip to content

Instantly share code, notes, and snippets.

View rezarajan's full-sized avatar

Reza Rajan rezarajan

View GitHub Profile
@rezarajan
rezarajan / syno-cli.sh
Created October 13, 2025 09:34
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 ;;
@rezarajan
rezarajan / sugoi-testnet.metadata.json
Last active February 19, 2022 18:38
Sugoi pool testnet metadata
{
"name": "SUGOI",
"description": "The Most Amazing Pool on the Cardano Testnet.",
"ticker": "SUGOI",
"homepage": "https://kawaiipool.moe"
}
@rezarajan
rezarajan / google_api_qrcode.php
Created June 19, 2017 20:39 — forked from aamnah/google_api_qrcode.php
Generate a QR code using Google Charts API
<?php
// Source: http://stackoverflow.com/questions/5943368/dynamically-generating-a-qr-code-with-php
// Google Charts Documentation: https://developers.google.com/chart/infographics/docs/qr_codes?csw=1#overview
// CHart Type
$cht = "qr";
// CHart Size
$chs = "300x300";