Skip to content

Instantly share code, notes, and snippets.

View Maddosaurus's full-sized avatar

Matthias Maddosaurus

View GitHub Profile
@Maddosaurus
Maddosaurus / create-rhcos-fs.sh
Created May 17, 2023 09:22
RHCOS Minimal FS Automation
#!/usr/bin/env bash
# set -euo pipefail
die () {
echo >&2 "$@"
exit 1
}
[ "$#" -eq 1 ] || die "Exactly one argument required: target RHCOS version, e.g. '4.12'. $# provided."
@Maddosaurus
Maddosaurus / server.py
Last active December 10, 2020 13:42
Simple Python3 HTTPS server
# via https://stackoverflow.com/questions/22429648/ssl-in-python3-with-httpserver/22436756#22436756
# generate server.pem with the following command:
# openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes
# This server serves the CWD as content
from http.server import HTTPServer,SimpleHTTPRequestHandler
from socketserver import BaseServer
import ssl
@Maddosaurus
Maddosaurus / docker-compose.yml
Created November 5, 2019 19:53
Cowrie Logstash config base
# This config assumes docker-elk as Elastic Stack base.
# See https://github.com/deviantony/docker-elk
version: '3'
services:
cowrie:
restart: "always"
image: cowrie/cowrie
ports:
@Maddosaurus
Maddosaurus / oldPastebox.css
Created May 16, 2019 19:09
Better Tweetdeck Custom CSS - Old Compose Box
.is-open {
left: -70px !important;
}
.drawer {
width: 270px !important ;
left: -270px !important ;
}
@Maddosaurus
Maddosaurus / german_top_passwords.txt
Created January 11, 2019 17:53
German Top Passwords According To HPI
hallo
passwort
hallo123
schalke04
passwort1
qwertz
arschloch
schatz
hallo1
ficken
@Maddosaurus
Maddosaurus / README.md
Created November 3, 2018 10:52
JACK audio setup with multiple inputs and outputs
@Maddosaurus
Maddosaurus / .pylintrc
Created September 6, 2018 13:16
Python Pylint fix for E0401 in Visual Studio Code
[MASTER]
init-hook='import sys; sys.path.append("/FQDN/to/your/module/root")'
@Maddosaurus
Maddosaurus / README.MD
Created September 2, 2018 19:25
Fix Broken UTF-8 stuff in Arch Linux

$ pacman -Qqe | grep ttf ttf-dejavu ttf-emojione ttf-liberation

$pacman -Qqe | grep font adobe-source-code-pro-fonts otf-ipafont

@Maddosaurus
Maddosaurus / Microsoft.PowerShell_profile.ps1
Created August 27, 2018 20:18
Windows Powershell ZSH Style Aliases
function gitc {
git commit --verbose
}
function gita {
git add
};Set-Alias ga gita
function gitaa {
git add --all
@Maddosaurus
Maddosaurus / esp_temp_sensor_splunk_hec.ino
Last active September 29, 2021 01:02
ESP8266 DH22 Sensor Data to Splunk HEC
// AS LONG AS PULL REQUEST 2821 IS NOT MERGED, YOU NEED TO PATCH THE ESP8266 BOARD LIB!
// have a look here: https://www.esp8266.com/viewtopic.php?f=29&t=16473
// and here: https://github.com/esp8266/Arduino/pull/2821
#include "DHT.h"
#include <ESP8266HTTPClient.h>
#include <ESP8266WiFi.h>
#include <ArduinoJson.h>
#define DHTPIN 2 // This is silkscreened as ~D4 on my board