Skip to content

Instantly share code, notes, and snippets.

View sylviiu's full-sized avatar
💤

Syl sylviiu

💤
View GitHub Profile
@DevSrSouza
DevSrSouza / get-theme.main.kts
Created February 2, 2022 04:40
Kotlin Script that get Linux System Theme based on Dbus appearance color-schema from Gnome 42, KDE and Elementary
@file:DependsOn("com.github.hypfvieh:dbus-java-core:4.0.0")
@file:DependsOn("com.github.hypfvieh:dbus-java-transport-jnr-unixsocket:4.0.0")
@file:DependsOn("org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.6.0")
import org.freedesktop.dbus.annotations.DBusInterfaceName
import org.freedesktop.dbus.connections.impl.DBusConnection
import org.freedesktop.dbus.interfaces.DBusInterface
import org.freedesktop.dbus.types.Variant
val connection = DBusConnection.getConnection(DBusConnection.DBusBusType.SESSION)
@sylviiu
sylviiu / updatepterodactyl.sh
Created December 30, 2023 02:18
AUR pterodactyl-panel updater
cd /usr/share/webapps/pterodactyl/
echo "Changed directory to $(pwd)"
php artisan down
echo "Shut down artisan."
echo "Sleeping for 3 seconds..."
sleep 3