Skip to content

Instantly share code, notes, and snippets.

View thraizz's full-sized avatar

A. Schueler thraizz

View GitHub Profile
@thraizz
thraizz / README.md
Created June 30, 2024 15:36
Fextralife Map Fullscreen Tampermonkey User Script

Elden Ring Interactive Map Modifier

This Tampermonkey script customizes the Elden Ring Interactive Map on the Fextralife website. It moves the map element to the top of the body and applies specific styles to enhance its visibility and accessibility.

Features

  • Moves the map container (div with id="mapA") to the top of the body.
  • Applies the following styles to the map container:
    • position: absolute;
  • z-index: 10000;
@thraizz
thraizz / README.md
Created June 24, 2024 17:52
ING DiBa DE to YNAB CSV

This script will add a "Download past transactions CSV" and a "Download prebooked transactions CSV" button to your Umsätze page. Use these to either download past or upcoming transactions that you can import into YNAB.

@thraizz
thraizz / cookiebot.ts
Created May 28, 2024 11:12
Type-safe cookiebot renewal
type Cookiebot = {
name: string;
consented: boolean;
declined: boolean;
changed: boolean;
hasResponse: boolean;
consentID: string;
consent: object;
isOutsideEU: boolean;
isOutOfRegion: boolean;
@thraizz
thraizz / json_vs_msgpack.py
Created April 9, 2024 17:56 — forked from nvllsvm/json_vs_msgpack.py
Benchmark JSON and MessagePack encoding/decoding times and result sizes
#!/usr/bin/env python3
import json
import gzip
import time
import brotli
import msgpack
import tabulate
import umsgpack
import zstd
echo ".dotfiles" >> .gitignore
# Clone my repo into .dotfiles
git clone --bare https://github.com/thraizz/dotfiles.git $HOME/.dotfiles
alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
dotfiles config --local status.showUntrackedFiles no
echo "alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'" >> $HOME/.zshrc
@thraizz
thraizz / README.md
Last active August 16, 2023 12:19
PUFO Folgen

PUFO FETCHER

Was macht es?

Kleines script um alle Folgen des Podcast UFOs zu fetchen. Benutze die uids dann in einem iOS Shortcut, welcher die JSON holt, ein random item aus items auswählt und dies URI öffnet. Das öffnet dann Spotify :D

Der shortcut: https://www.icloud.com/shortcuts/9a51226503d14c8a8a61dba9645bf4b3

Andere Podcasts?

Klar, geht bestimmt wenn man die url in fetchEpisodes anpasst

@thraizz
thraizz / button.html
Created January 9, 2023 10:48
Sign in with Google - tailwind styles, html button
<button
class="rounded-md text-[#757575] border border-gray-300 pr-[8px] h-10 items-center flex"
style={{
fontFamily: "Roboto",
fontWeight: 500,
}}
>
<svg xmlns="http://www.w3.org/2000/svg" width="46" height="46">
<g fill="none" fill-rule="evenodd">
<path
@thraizz
thraizz / copyJSONPath.lua
Created July 5, 2022 08:27
NVIM: Copy cursor-location's path in json with treesitter
local copyJSONPath = function()
local ts_utils = require 'nvim-treesitter.ts_utils'
local result = {};
local node = ts_utils.get_node_at_cursor()
while node do
if tostring(node) == '<node pair>' then
local key_node = node:named_child(0):named_child(0)
table.insert(result, 1, ts_utils.get_node_text(key_node)[1])
end
node = node:parent()
@thraizz
thraizz / node_exporter.service
Last active July 16, 2021 14:55
Downloads, extracts, enables and starts node_exporter
[Unit]
Description=Node Exporter
[Service]
User=node_exporter
EnvironmentFile=/etc/sysconfig/node_exporter
ExecStart=/opt/node_exporter/node_exporter $OPTIONS
[Install]
WantedBy=multi-user.target
@thraizz
thraizz / README.md
Last active March 26, 2021 15:11
Freqtrade Backtest: 365 days (2020/2021)

Freqtrade Backtest w. Binance Data for all Coins (2020/02/18-2021/02/18)

What is this?

These are the results of a rather long backtest for all coins listed on binance that are tradable to BTC. The first three strategies are cut off, as my terminal buffer was too small to hold all data. All strategies are taken from the freqtrade strategy repository and are not adapted in any way.

Configuration

Some of the more important options are:

{
 "max_open_trades": 20,