This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
SCRIPT_VERSION="1.3" | |
INSTALL_DIR="/userdata/system/tailscale" | |
UA_STRING="Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:40.0) Gecko/20100101 Firefox/40.0" | |
# Function to check device compatibility | |
function device_check { | |
# Get OS_NAME variable from /etc/os-release | |
local os_name=$(grep "^OS_NAME" /etc/os-release | awk -F'=' '{print $2}' | tr -d '"') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
spl_autoload_register('myAutoLoader'); | |
function myAutoLoader($className) { | |
// Configure path and extension to reflect your project structure | |
$path = "classes/"; | |
$ext = ".php"; | |
$fullPath = $path . $className . $ext; | |
if(!file_exists($fullPath)) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Kowalski7's QNAP Toolkit | |
# | |
# This script helps make the management of my QNAP NAS a bit easier. It includes tools and quick | |
# fixes for problems I encountered while using my NAS. | |
# | |
# THIS SCRIPT COMES WITH NO WARRANTY AND YOU ARE COMPLETELY RESOPONSIBLE FOR ANY DAMAGE IT MIGHT | |
# CAUSE TO YOUR NAS AND/OR YOUR DATA!!! |