Skip to content

Instantly share code, notes, and snippets.

@ANBAL534
ANBAL534 / gist:8057b5200ace9bdd98795b627e550ba0
Created May 26, 2022 20:57
Asseto Corsa on Linux Updated
If you want this guide to work on the deck, for easiness of following the guide, make your filesystem temporally writable
and install protontricks regularly.
This is really an update for the guide found here https://github.com/ValveSoftware/Proton/issues/148#issuecomment-585921635
We will be using Proton 5.0-10 the only proton version that works good for assetto.
Before starting, make sure you have no pfx folder for assetto corsa, you can search for it in:
/path/to/your/SteamLibrary/steamapps/compatdata/244210
@ItsLiyua
ItsLiyua / NBTEditor.java
Created January 16, 2021 22:57
A method for setting NBT-Tags for items in spigot. Please note, the NBT-Tag with the path "test.helloworld" (for example) will look like this: {test:{helloworld:<data>}}
public class NBTEditor {
public static ItemStack setNBTValue(ItemStack is, String path, String value) {
path = "null." + path;
String[] pathArray = path.split("\\.");
pathArray[0] = null;
net.minecraft.server.v1_16_R3.ItemStack nms = CraftItemStack.asNMSCopy(is);
NBTTagCompound[] nbts = new NBTTagCompound[pathArray.length - 1];
for (int i = 0; i < pathArray.length; i++) {
String part = pathArray[i];
if (i == 0) {
@mkutz
mkutz / Jenkinsfile
Created November 12, 2018 15:48
Configure JDK installations in Jenkins using a post-initialization script (https://wiki.jenkins.io/display/JENKINS/Post-initialization+script)
pipeline {
agent any
tools {
jdk "11"
}
stages {
stage("Use maven") {