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
| --- | |
| PVE delte local-lvm partition | |
| Reference: https://post.smzdm.com/p/awkv4pq4/ | |
| lvremove pve/data | |
| lvextend -l +100%FREE -r pve/root | |
| Datacenter >> remove `local-lvm` partition >> edit `local` >> select all options |
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
| Xcode gen Compose Multiplatform |
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
| import android.app.Service | |
| import android.content.ComponentName | |
| import android.content.Context | |
| import android.content.Intent | |
| import android.content.ServiceConnection | |
| import android.os.IBinder | |
| import kotlin.coroutines.resume | |
| import kotlin.coroutines.suspendCoroutine | |
| suspend inline fun <reified S : Service, B : IBinder> Context.connectService( |
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
| #!/usr/bin/env bash | |
| # Copyright (c) 2021-2023 tteck | |
| # Author: tteck (tteckster) | |
| # License: MIT | |
| # https://github.com/tteck/Proxmox/raw/main/LICENSE | |
| function header_info { | |
| clear | |
| cat <<"EOF" |
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
| @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) |
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
| pressTool() | |
| { | |
| xdotool keydown 'c' | |
| sleep 0.090 | |
| xdotool keyup 'c' | |
| sleep 0.042 | |
| xdotool keydown 'Shift_R+Delete+R' | |
| sleep 0.005 | |
| xdotool keyup 'Shift_R+Delete+R' | |
| } |
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
| import com.google.gson.*; | |
| import org.bukkit.Color; | |
| import org.bukkit.DyeColor; | |
| import org.bukkit.FireworkEffect; | |
| import org.bukkit.Material; | |
| import org.bukkit.block.banner.Pattern; | |
| import org.bukkit.block.banner.PatternType; | |
| import org.bukkit.enchantments.Enchantment; | |
| import org.bukkit.inventory.ItemFlag; | |
| import org.bukkit.inventory.ItemStack; |
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
| plugins { | |
| id 'java' | |
| id 'org.jetbrains.kotlin.jvm' version '1.3.20' | |
| id 'com.github.johnrengelman.shadow' version '4.0.3' | |
| } | |
| group = pluginGroup | |
| version = pluginVersion | |
| sourceCompatibility = 1.8 |
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
| /** This script will migrate MTVehicles resource pack to Oraxen | |
| * This will include: | |
| * - Fixing ItemFrame position of the models | |
| * - Fix new texture folder that will not anymore bem on custom/cars/, instead it will be at default/mtvehicles | |
| * - For each model that is only a texture replacement, it will generate an Orxen config with Generate enabled with the given name. So... no more bunch of Cars models with only texture change | |
| * - Will remove from models the: "particle": "items/particle" and "texture": "items/texture", that Oraxen says is not proper format. | |
| */ | |
| @file:DependsOn("org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.1") |
NewerOlder