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
Created November 16, 2024 21:40
Install AMD ROCm on Ubuntu 22.10 without the provided amdgpu driver

How to install AMD ROCm on Ubuntu without the provided amdgpu driver. For some reason, AMD wants to push its amdgpu driver but if you already have a new one like for Oibaf, you do not need it.

Generally follow the documentation loosly for the basic requirements: https://rocm.docs.amd.com/projects/install-on-linux/en/latest/install/prerequisites.html Not sure if the kernel headers are really needed.

The loosly follow the manual detailed install via package managers: https://rocm.docs.amd.com/projects/install-on-linux/en/latest/install/native-install/ubuntu.html

@Nithanim
Nithanim / README.md
Last active October 27, 2024 17:55
Install an app without google play that checks if it was installed via google play

There are some apps that check if they were installed via google play. Apps can even refuse to run if they detect that they were not. This can be a problem for you if you install apps via the aurora store ore manually.

To work around this people found a very dumb workaround that you might even dismiss if you read it the first time. Basically, it boils down to summing up the file sizes of the individual apks and give that to the package installer. This also works if you already installed the app and it refuses to run. You can just install/update over he existing one even if it is the same version.

Bsically this: https://www.reddit.com/r/Austria/comments/p8qd8y/wie_man_die_george_app_auch_ohne_google_play_zum/

@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!