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 / viki_test.py
Last active June 28, 2021 06:12
Viki.com API Login
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 / 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 / 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 / extract_building.py
Created July 22, 2021 04:39
Code Snippet around buildings including calculating costs.
# @Author: Tom-Oliver Heidel <theidel/blackjack4494>
# @Email: github@tom-oliver.eu
# @Date: 2021-07-21
# @Last modified by: theidel
# @Last modified time: 2021-07-22
__author__ = 'github@tom-oliver.eu (Tom-Oliver Heidel <theidel>)'
import json
from typing import Union, Tuple
@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 / 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 / soundcloud_login.py
Last active November 8, 2022 15:59
Soundcloud login. retrieve access_token through reverse engineered web flow authentication.
import time
import random
import requests
import sys
import getpass
import random
# signature generation
def signp(a, i, s, w, u, l, b, k, c, n, r, e, t):
d = '-'.join([str(mInt) for mInt in [a, i, s, w, u, l, b, k]])
@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 / Readme.md
Last active February 6, 2024 06:08
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 28, 2024 12:47
Add SSL Certificate to Unifi Controller using Acme.sh and DNS verification