Skip to content

Instantly share code, notes, and snippets.

View Nithanim's full-sized avatar

Nithanim

  • Somewhere with trains
  • Austria
View GitHub Profile
@Nithanim
Nithanim / README.md
Last active June 28, 2024 19:12
GW2 Allianzen und API

GW2 Allianzen und API

Kürzlich ist es kurzzeitig so gewesen, dass anstatt der neuen Weltennamen, die Namen alter Server im Spiel angezeigt wurden. Natürlich war die Verwirrung groß und geschimpft wurd auch von ein paar klugen Spezialisten. Das ganze ist aber im Hintergrund normal und funktioniert aus der meiner sehr eingeschränkten Sicht von außen noch exakt gleich wie damals bei den temporären Betawochen.

Viele Informationen hier sind "educated guess"es. Sprich, aufgrund von dem was ArenaNet preis gibt, Beobachtungen des Verhaltens des Spiels und meinen Erfahrungen als Programmierer versuchen wir gemeinsam hinter hinter die Kulissen zu schauen.

@Nithanim
Nithanim / gist:9f0213b572a45b45a035913ab1ba267a
Created January 2, 2024 20:11
Trade Empires File Format
I do not have any info on them yet.
Though, the first bytes of the data files "75 B1 C0 BA" also Show up in Tropico 2 as per https://web.archive.org/web/20210724114629/https://forum.xentax.com/viewtopic.php?f=35&t=11557
Maybe that helps in some way, but does not seem like it.
@Nithanim
Nithanim / simple compass.svg
Last active December 17, 2023 13:33
A simple vector compass PUBLIC DOMAIN
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
[package]
name = "imgui_test"
version = "0.1.0"
edition = "2021"
[dependencies]
imgui = "0.7.0"
#imgui-winit = { version = "0.1.2"}
imgui-winit-support = { version = "0.7.0" }
@Nithanim
Nithanim / README.md
Last active July 1, 2023 23:09
GuildWars 2 on Linux (Ubuntu 22.04) with ARCDPS

For best performance use a kernel with fsync support, like xanmod. At the time of writing, 6.2.12-x64v4-xanmod1 is installed.

Also update your graphics drivers! Like https://launchpad.net/~oibaf/+archive/ubuntu/graphics-drivers

Download the newest Glorious Eggroll Wine version here: https://github.com/GloriousEggroll/wine-ge-custom/releases At the time of writing it is https://github.com/GloriousEggroll/wine-ge-custom/releases/download/GE-Proton8-8/wine-lutris-GE-Proton8-8-x86_64.tar.xz

Here is a table of all env params used:

@Nithanim
Nithanim / A_README.md
Last active March 29, 2023 19:30
VFIO x570 Taichi

10:00.x is the primary pci slot and 11:00.x the secondary.

The initial display output is NOT choosable! Use the Aorus X570 for that instead! E.g. https://download.gigabyte.com/FileList/Manual/mb_manual_x570-aorus-elite-wifi_1002_e_v1.pdf#page=30 (but that one only has one 16x slot!)

If you want to pass a whole usb controller to a VM it gets a bit tricky. Your best bet is 0000:0b:00:x. However, that includes the front USB ports, some USB2 header, a couple USB ports on the back (only some!) AND the bluetooth device. (I have to admit it was funny to see the VM showing bluetooth capabilities). But it is workable.

@Nithanim
Nithanim / README.md
Created January 6, 2023 14:26
Display PDF DataUri on Website in IFrame WITH sandbox

At some point you might need to diplay a PDF on a Webpage. And you do not have it as normal URL on your server but as DataUri. It sounds very easy but in reality is not really. I would be if Chome would not be dumb. What we really want is a sandboxed iframe where a PDF is displayed. The sandbox is essential to prevent a malicious script to break out to the parent and steal sensitive data.

Warning This is just a little write-up about my experiences and not a full tutorial! Also, I did this a couple of weeks ago, so something might be missing or inaccurate!

@Nithanim
Nithanim / FreeCam.java
Last active January 1, 2023 14:17
LibGDX Helpers
package com.mygdx.game;
import java.util.EnumMap;
import java.util.EnumSet;
import java.util.Set;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input.Buttons;
import com.badlogic.gdx.Input.Keys;
import com.badlogic.gdx.graphics.Camera;
@Nithanim
Nithanim / template.bt
Created October 15, 2022 19:20
010Editor Steam Server Query Response Template
// 010Editor templatefor steam server query response
//https://developer.valvesoftware.com/wiki/Server_queries
int32 prefix;
byte header<format=hex>;
byte protocol<format=hex>;
string name;
string map;
string folder;
string game;
@Nithanim
Nithanim / tplink_archer_c80.md
Created August 30, 2022 17:33
TP-Link Archer C80 Setup for Network Admins