Skip to content

Instantly share code, notes, and snippets.

View KaratekHD's full-sized avatar

Jens KaratekHD

View GitHub Profile
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCfs25Ztcv/NtPTYNOxAU5YhoO570l6b/B7iYZoi5wLc0dmZwCIAQR6bksJZoHRNJhykwNzWUcyl8UlJRxGH6xhKhFmKntlGFT43QjurX+IIHAbqmHCji5wwld5DymIY8ccfzX347+SOaSxl2rre0eqbG/ieZwsPDEOEu1QjRG8/VivbbT7mm+R0Xadc5DERZuG5EsUStGxfaStGmqx5WQdkrreJ5VKl7Yxi+/UJXZybNwqs33h4/MlFjD/7WrmnKX/3oP+oq5l/UgEQPI5zllZeDmeJy9eZpWZrkK5vxc3ffGbO/DSMboLj7m5Lujg2QWhUTs35lHjdyCy0mbMTNWREN3CnsAq4YJ9JwYdtpNbAfEqd1GFRWnekt8HMcPP9bTzdnl9YZycKpz4C28y3NLwGPugTxvRCcEY0SB/N+0yn6zcojSM8RSbqrRgIIjIqtlm5Kj2iT934xWIvhp18XjLIo5TyRDbdcFPvTwEM4eHllxY5RhrT+YOkE+HX4uj9Jc= jens@gateway
@KaratekHD
KaratekHD / swipe.log
Created December 6, 2022 20:37
Journal Log while doing a swipe gesture in gnome-shell
This file has been truncated, but you can view the full file.
Dec 06 21:22:00 kebnekaise gnome-shell[2271]: clutter_text_get_editable: assertion 'CLUTTER_IS_TEXT (self)' failed
Dec 06 21:22:00 kebnekaise gnome-shell[2271]: clutter_text_get_text: assertion 'CLUTTER_IS_TEXT (self)' failed
Dec 06 21:22:00 kebnekaise gnome-shell[2271]: == Stack trace for context 0x55ff23371310 ==
Dec 06 21:22:00 kebnekaise gnome-shell[2271]: #0 7ffc373fcea0 b resource:///org/gnome/shell/ui/dateMenu.js:490 (23a643441380 @ 165)
Dec 06 21:22:00 kebnekaise gnome-shell[2271]: clutter_text_set_text: assertion 'CLUTTER_IS_TEXT (self)' failed
Dec 06 21:22:00 kebnekaise gnome-shell[2271]: #1 55ff29c0a808 i self-hosted:1121 (f08bdd7eec0 @ 463)
Dec 06 21:22:00 kebnekaise gnome-shell[2271]: Object St.Label (0x55ff286c9dd0), has been already disposed — impossible to set any property on it. This might be caused by the object having been destroyed from C code using something such as destroy(), dispose(), or remove() vfuncs.
Dec 06 21:22:00 kebnekaise gnome-shell[2271]: clutter_text_get_editable: a
@KaratekHD
KaratekHD / deploy.py
Last active November 8, 2021 14:48
Tool to deploy openSUSE (and other distributions) on the Mars MA3
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# Author: KaratekHD <karatekhd@opensuse.org>
# License: Do whatever you want with it, just don't claim it as your own
import os
import tarfile
import sys
import argparse
from termcolor import colored
@KaratekHD
KaratekHD / defrag-src.py
Created August 22, 2021 10:22
Simple tool do help working with openSUSE/defrag-api
import argparse
from argparse import HelpFormatter
import subprocess
import pathlib
import os
import glob
class CustomHelpFormatter(HelpFormatter):
@KaratekHD
KaratekHD / config.py
Created April 24, 2021 10:12
OpenGM example Config
from tg_bot.sample_config import Config
class Development(Config):
OWNER_ID = 540549815 # replace this with your telegram ID
OWNER_USERNAME = "Karatek_HD" # replace this with your username
API_KEY = "" # your api key, as provided by the botfather
SQLALCHEMY_DATABASE_URI = 'postgresql://username:password@localhost:5432/database' # sample db credentials
SUDO_USERS = [] # List of id's for users which have sudo access to the bot.
LOAD = []
@KaratekHD
KaratekHD / biotoolkw7.py
Created February 21, 2021 12:48
Bio Hausaufgabe KW7 2021
from matplotlib import pyplot as plt
import seaborn as sns
# BioToolKW7 - Copyright (C) 2021 KaratekHD
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
import telegram.ext as tg
from telegram import Update, TelegramError
from telegram.ext import run_async, CallbackContext, CommandHandler, DispatcherHandlerStop, Dispatcher
def process_update(self, update):
for group in self.groups:
try:
for handler in (x for x in self.handlers[group] if x.check_update(update)):
@KaratekHD
KaratekHD / Kreise.java
Created July 2, 2020 09:09
Kleines Programm um Flächeninhalt und Umfang von Kreisen zu berrechnen
package net.karatek.randomstuff.math;
public class Kreise {
public static void main(String[] args) {
// Aufgabe Wert Einheit
System.out.println("Aufgabe " + args[0]);
System.out.println();
area(Double.valueOf(args[1]), args[2]);
System.out.println();
extent(Double.valueOf(args[1]), args[2]);
@KaratekHD
KaratekHD / launch.sh
Created May 31, 2020 07:58
GDO Linux
#!/bin/bash
# Copyright (C) 2019 Karatek_HD. Do not distribute!
kdialog --msgbox "Please connect yout phone to this system. \n We will forward its screen to you." --title "Gods of Olympus Launcher v1.0 by Karatek_HD"
/snap/bin/scrcpy -S -f --window-title "Gods of Olympus (Ported by Karatek_HD)"
89ndTeuvRP67w5uZZ6or