Skip to content

Instantly share code, notes, and snippets.

View KaratekHD's full-sized avatar

Jens KaratekHD

View GitHub Profile
@KaratekHD
KaratekHD / pythagoras.java
Created May 4, 2020 09:20
Beispielhaftes Java Programm zum Lösen von Aufgaben mithilfe des Satzes des Pythagoras.
package net.karatek.randomstuff;
public class pythagoras {
public static void main(String[] args) {
katheteb();
}
public static void hypothenuse() {
String unit = "mm";
@KaratekHD
KaratekHD / ts_Julia.sh
Last active March 17, 2020 19:46
TS_Julia
#!/bin/bash
cd /home/julia/
echo "TS3 Installer für Ubuntu"
echo "Copyright (C) 2020 Karatek_HD. Do not distribute!"
touch ~/.local/share/applications/teamspeak3-client.desktop
echo "[Desktop Entry]" >> ~/.local/share/applications/teamspeak3-client.desktop
echo "Name=Teamspeak 3 Client" >> ~/.local/share/applications/teamspeak3-client.desktop
echo "GenericName=Teamspeak" >> ~/.local/share/applications/teamspeak3-client.desktop
echo "Comment=Speak with friends" >> ~/.local/share/applications/teamspeak3-client.desktop
echo "Comment[de]=Spreche mit Freunden" >> ~/.local/share/applications/teamspeak3-client.desktop
@KaratekHD
KaratekHD / start.sh
Last active January 25, 2020 11:45
KMC script
#!/bin/bash
echo "Karatek Minecraft Launcher Utilitie v1.0"
echo "Copyright (C) 2019 Karatek_HD. Do not distribute!"
cd
cd Downloads
rm .bootstrap-universal-1-0.jar
wget -O .bootstrap-universal-1-0.jar https://karatekhd.github.io/Magewars/download/universal/bootstrap-universal-1-0.jar
java -jar .bootstrap-universal-1-0.jar
@KaratekHD
KaratekHD / BrowserLog.txt
Created October 16, 2019 17:10
ownCloud logs and configs for broken login screen
Error: WebExtension context not found! ExtensionParent.jsm:1239:13
Object { type: "log", url: "http://feuerstern.scandic.priv", title: "scandic-nas", color: "#cc4204", address: "172.16.0.80", matchedPattern: "all", timestamp: 1571245378608 }
ITM!!! background.js:25:13
Object { type: "log", url: "http://feuerstern.scandic.priv", title: "scandic-nas", color: "#cc4204", address: "172.16.0.80", matchedPattern: "all", timestamp: 1571245378609 }
ITM!!! background.js:25:13
Object { type: "log", url: "http://feuerstern.scandic.priv", title: "scandic-nas", color: "#cc4204", address: "172.16.0.80", matchedPattern: "all", timestamp: 1571245378610 }
ITM!!! background.js:25:13
Object { type: "log", url: "http://feuerstern.scandic.priv", title: "scandic-nas", color: "#cc4204", address: "172.16.0.80", matchedPattern: "all", timestamp: 1571245378611 }
ITM!!! background.js:25:13
Object { type: "log", url: "http://feuerstern.scandic.priv", title: "scandic-nas", color: "#cc4204", address: "172.16.0.80", matchedPattern: "all
@KaratekHD
KaratekHD / public.asc
Created October 2, 2019 14:32
My PGP public key
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQENBF1VbXcBCADIvLWopl1xbYfiuV1IEPbRzGNeqefbnq8r2JrZu8b6/v3vCm27
szwi70dIVdgxQyx7CvCXJeSORY18w3Yh+uu9kGjij1uwzVXE71RuqYIhb6f9HLLO
k0943ZL/LRbg5qCBDlooCQUhaO5cEAIj16EIb9Hux+DKSHf/iEJLjMoghiOJveAl
fBZuTCBT5DShc1Z4I4Rsq8Y2EoopPTAP8NrTyVmkW2o1Ltvs0pVVZVF7eSDtHfcq
6Mx6xGFZhPdU2z9d8SjhCIhXG/K9m0f48V0cEyoAYmlXGp8ir5CT8kUg2Sz+GYfq
tz2Eb7Rk91YsKETYg1nv2MNXPiQKAk0RR6N3ABEBAAG0LEplbnMgS3JpZWdlci1K
dWhua2UgPGplbnNAa3JpZWdlci1qdWhua2UuZGU+iQFUBBMBCAA+FiEEEGyJsScM
r1MYYFypy8LBSqdeyJ4FAl1VbXcCGwMFCQPCZwAFCwkIBwIGFQoJCAsCBBYCAwEC
@KaratekHD
KaratekHD / settings.yml
Created May 15, 2019 12:53
PlotSquared Settings
# These first 4 aren't configurable
issues: "https://github.com/IntellectualSites/PlotSquared/issues"
wiki: "https://github.com/IntellectualSites/PlotSquared/wiki"
date: "26 Aug 2018 22:00:00 GMT"
build: "https://ci.athion.net/job/PlotSquared/2026"
commit: "https://github.com/IntellectualSites/PlotSquared/commit/cd9d22c"
platform: "Bukkit"
# Show additional information in console
debug: true
# The big annoying text that appears when you enter a plot
AH00558: httpd-prefork: Could not reliably determine the server's fully qualified domain name, using 10.208.81.130. Set the 'ServerName' directive globally to suppress this message
[Fri Feb 22 19:05:24.119189 2019] [ssl:warn] [pid 3827] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Fri Feb 22 19:05:24.135489 2019] [mpm_prefork:notice] [pid 3827] AH00163: Apache/2.4.38 (Linux/SUSE) OpenSSL/1.1.0h-fips configured -- resuming normal operations
[Fri Feb 22 19:05:24.135738 2019] [core:notice] [pid 3827] AH00094: Command line: '/usr/sbin/httpd-prefork -D SYSCONFIG -C PidFile /var/run/httpd.pid -C Include /etc/apache2/sysconfig.d//loadmodule.conf -C Include /etc/apache2/sysconfig.d//global.conf -f /etc/apache2/httpd.conf -c Include /etc/apache2/sysconfig.d//include.conf -D SYSTEMD -D FOREGROUND'
[Fri Feb 22 19:05:30.088000 2019] [autoindex:error] [pid 3834] [client 172.16.0.80:33133] AH01276: Cannot serve directory /srv/www/htdocs/: No matching DirectoryIndex (index.html,index.html.var) fou
@KaratekHD
KaratekHD / config.yml
Created April 21, 2019 12:00
sTablist Config optimized for KaratekCore
EnableAutoUpdater: true
PluginAutoUpdate: 3600
TabAutoUpdate: 3
TagAutoUpdate: 3
Header:
text: '&5This is the Header!'
use: true
Footer:
text: '&5This is the Footer!'
use: true
@KaratekHD
KaratekHD / Command_Rank.java
Last active April 21, 2019 10:11
Part of KaratekCore for GamelMC; This part allows Admins easily to set Players Rank.
package com.karatek.core.commands;
import org.bukkit.Bukkit;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import com.karatek.core.main.Main;