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 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
@Nithanim
Nithanim / oebb-live.openapi.yml
Created May 26, 2022 19:20
ÖBB live openapi schema
openapi: 3.0.3
info:
title: OEBB LIVE
version: '1'
servers:
- url: https://live.oebb.at/
paths:
/backend/info:
get:
parameters:
@Nithanim
Nithanim / main.md
Last active March 11, 2025 10:45
Detailed Guide for LineageOS 17.1 on Samsung Galaxy Tab S (SM-T805)

This guide is based on the work of https://forum.xda-developers.com/t/rom-unofficial-10-lineageos-17-1-for-samsung-galaxy-tab-s-sm-t700-sm-t705-sm-t800-sm-t800-sm-p600.4270943/ Just a tiny bit more detailed. You can adapt it for the other devices mentioned there. Please make sure that you always download and use only files specifically for your device (never close-enough!).

As always: THIS WILL VOID YOUR WARRANTY AND I AM NOT RESPONSIBLE FOR ANY DAMAGES! YOU ARE DOING THIS AT OUR OWN RISK. ADDITIONALLY ALL YOUR DATA WILL BE DELETED IN THE PROCESS!

# mounts
2486036=Taiga Lupine?
2486027=Alluring Devilfish
2486018=Dappled Reef Glaucus
2485886=Kintsugi Raptor
2485874=Dark Matter Raptor
2485840=Lucent Long Ear
2485806=Aurene's Prismatic Griffon
2485796=Sunrise Macaw
2485737=Darkmist Terror
@Nithanim
Nithanim / hybrid_tunnel_locomotive_log.bt
Created August 8, 2021 11:40
File format of hybrid tunnel locomotive log file
//------------------------------------------------
//--- 010 Editor v10.0.2 Binary Template
//
// File: LO_6827.LOG
// Authors:
// Version:
// Purpose: Log file format of something like this hybrid tunnel locomotive: https://www.schoema.de/media/schoema_datenblatt_hybrid-tunnellokomotiven_en.pdf
// Category:
// File Mask:
// ID Bytes:
@Nithanim
Nithanim / start.sh
Created August 7, 2021 18:54
Start script for Guild Wars 2 with a custom wine build
#!/bin/bash
# This is a script for a custom Guild Wars 2 installation on Linux (Ubuntu 20.04).
# Drop it in the wine-prefix folder
# It is the start script for a custom wine build with some (performance) setings on top.
# Options are commented
# A gw2.log will be created right next to this script
path_to_gw2="/path_to_your_gw2_prefix/guild-wars-2/drive_c/Program Files/Guild Wars 2/GW2-64.exe"
@Nithanim
Nithanim / README.md
Created May 9, 2021 22:46
Compile TS3 plugin ducker

How to comple the ducker Teamspeak3 plugin (https://github.com/thorwe/teamspeak-plugin-ducker) for linux.

Mor or less follow the compile instuctions in https://github.com/thorwe/teamspeak-plugin-ducker#compiling-yourself. Since we a are only interested in x64, obly create and go into the build64 folder. the call cto cmake does not need any of the arguments that are stated, only cmake ...

Call make. For the error that complains about random stuff and mentions "fpermissive", go to deps/teamspeak-plugin-qt-common/CMakeLists.txt and add set(CMAKE_CXX_FLAGS "-fpermissive") somewahre in the top lines. Call make again and it should (hopefully) compile successfully.