Skip to content

Instantly share code, notes, and snippets.

View blackjack4494's full-sized avatar
🍌
I am here to bring bananas to the people

Tom-Oliver Heidel blackjack4494

🍌
I am here to bring bananas to the people
  • Hamburg/Bremen, Germany
View GitHub Profile
@blackjack4494
blackjack4494 / Readme.md
Last active July 27, 2024 01:12
Palworld Dedicated Server (Linux) limit ram usage & run as systemd service + auto restart

To limit ram usage:

systemd-run --scope -p MemoryMax=4G ./PalServer.sh

Leave at least 1G available under 10G. If you have more than 10G leave 10% for OS.
This assumes you are running nothing else on the server but Palworld.

==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to manage system services or other units.
@blackjack4494
blackjack4494 / Readme.md
Last active February 5, 2024 12:03
Palworld Dedicated Server (FPS) Tickrate

Open Pal/Saved/Config/LinuxServer/Engine.ini (for Windows use Windows path) and change accordingly

[Core.System]
Paths=../../../Engine/Content
Paths=%GAMEDIR%Content
Paths=../../../Engine/Plugins/2D/Paper2D/Content
Paths=../../../Engine/Plugins/Animation/ControlRigSpline/Content
Paths=../../../Engine/Plugins/Animation/ControlRig/Content
Paths=../../../Engine/Plugins/Animation/IKRig/Content
@blackjack4494
blackjack4494 / terms_dict.json
Created April 14, 2022 14:50
Core Keeper Terms exported as Json
This file has been truncated, but you can view the full file.
[
{
"Index": 0,
"Key": "AvailableInEarlyAccess",
"Type": 0,
"Desc": null,
"Languages": {
"en": "Will be available at Early Access launch",
"sv": "",
"de": "",
@blackjack4494
blackjack4494 / Vue_3_CDN_imports.md
Last active October 28, 2021 02:06
All imports for Vue 3 CDN

The following is a list of all possible imports for Vue 3 CDN.
More about global api here

BaseTransition
Comment
EffectScope
Fragment
KeepAlive
ReactiveEffect
Static

@blackjack4494
blackjack4494 / readme.md
Last active September 1, 2024 09:20
Add SSL Certificate to Unifi Controller using Acme.sh and DNS verification
@blackjack4494
blackjack4494 / extract_building.py
Created July 22, 2021 04:39
Code Snippet around buildings including calculating costs.
# @Author: Tom-Oliver Heidel <theidel/blackjack4494>
# @Email: [email protected]
# @Date: 2021-07-21
# @Last modified by: theidel
# @Last modified time: 2021-07-22
__author__ = '[email protected] (Tom-Oliver Heidel <theidel>)'
import json
from typing import Union, Tuple
@blackjack4494
blackjack4494 / py_cond_new.py
Created July 21, 2021 22:10
Python Condition Benchmark
import timeit
a = True
b = True
c = False
d = True
e = False
true = True
false = False
@blackjack4494
blackjack4494 / viki_test2.py
Created June 29, 2021 16:30
Viki.com API Login revised
import requests
import sys
import getpass
import time
import hashlib
import hmac
import json
_API_QUERY_TEMPLATE = '/v4/%sapp=%s&t=%s&site=www.viki.com'
_API_URL_TEMPLATE = 'https://api.viki.io%s&sig=%s'
@blackjack4494
blackjack4494 / readme.md
Created October 23, 2020 23:21
[German] Regarding youtube-dl DMCA takedown - Nutzerfrage an WBS

Hallo, eventuell haben es einige von euch schon mitbekommen, dass youtube-dl's Quellcode [1] und quasi alle Kopien und Abwandlungen (forks) auf GitHub aufgrund eines DMCA takedown notice [2] der RIAA entfernt wurde. Einige Projektbetreuer (maintainer) wurden bereits abgemahnt, obwohl sie teilweise länger und scheinbar nichts mit dem vermeintlichen Code zu tun hatten [3]. Ich hatte ebenso einen Fork names youtube-dlc, der ebenso entfernt wurde. Allerdings habe ich - glücklicherweise - keine Abmahnung erhalten. Man sollte auch wissen, was youtube-dl überhaupt ist. Es ist ein Medien Downloader der ursprünglich für YouTube entwickelt wurde, aber im Laufe der Jahre Unterstützung für über 750 weitere Seiten eingepflegt hat. Dazu muss man sagen, dass an keiner Stelle jemals Kopierschutzmechanismen wie beispielswiese DRM umgegangen oder gebrochen wurden! Das ist auch der Grund warum man beispielsweise keine Videos von Netflix und co sowie Lieder von Spotify herunterladen kann, wobei zur Anmerkung es möglich WÄRE au

@blackjack4494
blackjack4494 / mtvnetwork.md
Last active March 4, 2024 22:16
MTV Network

In order to be able to download videos from mtv (no matter the country and various other sites of their network) we need the mgid.

One of the easiest ways is the following:
For com https://www.mtv.com/feeds/triforce/manifest/v8?url=http%3A%2F%2Fwww.mtv.com%2Fepisodes%2F4iqsts%2Frevenge-prank-the-prank-that-hits-the-jackpot-season-1-ep-16
For de https://www.mtv.de/feeds/triforce/manifest/v8?url=http%3A%2F%2Fwww.mtv.de%2Ffolgen%2Fhxzmi4%2Fgeordie-shore-die-neue-chloe-S21-F7 and so on.

Note that url=http (!) if you try to use https it won't work for now but MTV is about to change their system to using https.