Skip to content

Instantly share code, notes, and snippets.

View Decstasy's full-sized avatar
☺️

Dennis Decstasy

☺️
  • Hamburg, Germany
View GitHub Profile
@Decstasy
Decstasy / WireGuardGUI.py
Created January 10, 2024 16:57
Wireguard Python QT5 GUI
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
2024 - Dennis Ullrich
A simple GUI for reading *.conf files in /etc/wireguard. It toggles your connection using wg-quick up/down and displays status information while enabled.
Root permissions are required for proper functionality.
License: MIT License
@Decstasy
Decstasy / gist:1e6946161ae976950a9408f362772cfe
Created November 14, 2023 13:53
CentOS7 icingaweb2-2.11.4 installation problem
[root@localhost ~]# yum install icingaweb2-2.11.4
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: ftp.antilo.de
* centos-sclo-rh: mirror.netzwerge.de
* centos-sclo-sclo: mirror.netzwerge.de
* epel: cdn.centos.no
* extras: centos.mirrors.psw.services
* updates: centos.mirrors.psw.services
Resolving Dependencies
@Decstasy
Decstasy / imdbheatmap.py
Last active May 3, 2023 19:17
Creates a heatmap for a series based on imdb ratings, so you know if a series gets bad in advance ;)
#!/usr/bin/env python3
__author__ = "Dennis Ullrich"
__copyright__ = "Copyright 2023, Dennis Ullrich"
__credits__ = ["Dennis Ullrich"]
__license__ = "GPL"
__version__ = "3.0.0"
__maintainer__ = "Dennis Ullrich"
__email__ = "git@decstasy.de"
__status__ = "Fun"
#!/usr/bin/perl -W
# Dennis Ullrich
### Password settings:
# Output settings:
$x = 4; # Passwords per line
$y = 25; # Lines
# (quantity,(charset))
@Decstasy
Decstasy / MinecraftReactorControl.lua
Last active May 6, 2021 19:30
A small Computercraft reactor control program
-- Little reactor control by Decstasy request@decstasy.de
-- Please configure everything for your needs
-- Where the energy store is located relative to the computer
local BatterySide = "back"
-- Where to send the "enable the reactor" redstone signal
local reactorEnableRedstone = "front"
-- Where to abort program when getting a redstone signal
local reactorEmergencyRedstone = "right"
-- Monitor position
@Decstasy
Decstasy / rtsp-stream.sh
Created April 15, 2019 13:49
Starts VLC RTSP Stream from Raspberry Pi Camera
#!/bin/bash
ip=( $(ip a | grep inet | grep -v 127.0.0 | grep -oP '(\d{1,3}.){3}\d{1,3}') )
echo "Connect with VLC Media Player via Network stream: rtsp://${ip[0]}:8554/"
echo "Press enter to start the stream..."
read lol
raspivid -o - -t 0 -n | cvlc -vvv stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8554/}' :demux=h264
@Decstasy
Decstasy / check_uptime
Created April 2, 2019 17:24
Checks server uptime on linux machines and raises critical if uptime <= 5 minutes
#!/bin/bash
#####
#
# Author: Dennis Ullrich (request@decstasy.de)
#
# Description:
# Checks server uptime on linux machines and raises critical if uptime <= 5 minutes.
# Made for icinga2 - parameters are not implemented yet.
#
@Decstasy
Decstasy / get_upgradable_packages.sh
Last active September 16, 2018 22:07
Lists upgradable packages comma separated on systems with apt package management (hopefully)
#!/bin/bash
# Dennis Ullrich
#
# Lists upgradable packages comma separated on systems with apt package management (hopefully)
# Made for "Linux Helpdesk Deutschland - Hilfe für Linux Einsteiger" group
#
# 2018-09-14 v0.1: First release
# 2018-09-14 v0.2: Improved code... No read, while loops etc... Everything is processed with bash internals.
get_upgradable_packages() {
@Decstasy
Decstasy / check_net_if_stats.sh
Last active January 14, 2020 12:58
Icinga check to get network interface performance data
#!/bin/bash
# Dennis Ullrich
# request@decstasy.de
####################################
############# Variables ##########
################################
# Arrays
declare -A interface
#!/bin/bash
if [[ $# -ne 1 ]]; then
echo "$0 [path to sysstat file made with: \"LANG=POSIX LC_ALL=C sar -Adp\"]"
exit 1
fi
_FILE = "$1"
# Der Parser von ksar mag bestimmte sachen nicht und beendet sich dann mit einer exception