Skip to content

Instantly share code, notes, and snippets.

View Kowalski7's full-sized avatar

Alexandru Dăian Kowalski7

  • 18:22 (UTC +03:00)
View GitHub Profile
@Kowalski7
Kowalski7 / knulli_tailscale_installer.sh
Last active May 21, 2025 15:54
An easy to use installer for Tailscale on portable game consoles running Knulli OS.
#!/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 '"')
@Kowalski7
Kowalski7 / autoloader.php
Created August 23, 2022 12:14
Various PHP utilities
<?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)) {
@Kowalski7
Kowalski7 / qnap_toolkit.sh
Last active May 7, 2022 14:05
Kowalski7's QNAP Toolkit
#!/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!!!