Skip to content

Instantly share code, notes, and snippets.

@simonszu
simonszu / debug.log
Created April 13, 2022 07:50
Terraform Debug Log
2022-04-13T09:49:29.975+0200 [DEBUG] provider.terraform-provider-kubernetes_v2.10.0_x5: HTTP/2.0 200 OK
2022-04-13T09:49:29.975+0200 [DEBUG] provider.terraform-provider-kubernetes_v2.10.0_x5: Content-Length: 567
2022-04-13T09:49:29.975+0200 [DEBUG] provider.terraform-provider-kubernetes_v2.10.0_x5: Cache-Control: no-cache, private
2022-04-13T09:49:29.975+0200 [DEBUG] provider.terraform-provider-kubernetes_v2.10.0_x5: Content-Type: application/json
2022-04-13T09:49:29.975+0200 [DEBUG] provider.terraform-provider-kubernetes_v2.10.0_x5: Date: Wed, 13 Apr 2022 07:49:30 GMT
2022-04-13T09:49:29.975+0200 [DEBUG] provider.terraform-provider-kubernetes_v2.10.0_x5:
2022-04-13T09:49:29.975+0200 [DEBUG] provider.terraform-provider-kubernetes_v2.10.0_x5: {
2022-04-13T09:49:29.975+0200 [DEBUG] provider.terraform-provider-kubernetes_v2.10.0_x5: "kind": "Namespace",
2022-04-13T09:49:29.975+0200 [DEBUG] provider.terraform-provider-kubernetes_v2.10.0_x5: "apiVersion": "v1",
2022-04-13T09:49:29.975+0200 [DEBUG] provider.terr
@simonszu
simonszu / rn_decrypt.js
Last active February 3, 2021 08:11
RN Decrypt
// ==UserScript==
// @name RN Decrypt
// @description Decrypt RN Posts
// @include https://www.ruhrnachrichten.de/*
// @grant none
// ==/UserScript==
// Install uBlock and block *$script,domain=ruhrnachrichten.de for hiding the "Please subscribe" layover
(function() {
var key="az by cx dw ev fu gt hs ir jq kp lo mn ,ü ßä ?ö AÖ BÜ CÄ DZ EY FX GW HV IU JT KS LR MQ NP 09 18 27 36 45";
{
"languageModel": {
"types": [
{
"name": "GESCHWINDIGKEIT",
"values": [
{
"id": null,
"name": {
"value": "KMH",
@simonszu
simonszu / check-bigmails.rb
Last active October 19, 2017 12:26
Scans a mailserver logfile for very big mails
#! /usr/bin/env ruby
class SizeParse
def initialize(args)
if ((args.length < 2) || (args[0] == "help"))
help()
else
@filename = ARGV[0]
@simonszu
simonszu / mqtt-bridge.json
Created September 4, 2017 13:13
Feinstaubsensor -> MQTT bridge in node-red
[
{
"id": "54ce3785.15e3a8",
"type": "tab",
"label": "Feinstaubsensor -> MQTT",
"disabled": false,
"info": "Feinstaubsensor postet auf eine HTTP API, die wiederum \nauf den MQTT Broker pusht"
},
{
"id": "f2e33c93.125fc",
@simonszu
simonszu / sort.rb
Created August 29, 2017 12:29
Sorting Hugo markdown based posts into subfolder according to their year in the date-header-tag
#! /usr/bin/env ruby
require 'fileutils'
posts = Dir.glob("blog/content/post/*.md")
posts.each do |item|
File.open(item, "r").each do |line|
if line =~ /^date = (\d+)-(\d+)-(\d+)T(\d+):(\d+):(\d+).*/
year = $1
puts "#{item}: #{year}"
FileUtils.mv(item, "blog/content/post/#{year}")
@simonszu
simonszu / doxie.sh
Last active October 3, 2019 14:07
A process of deskewing, cropping and OCRing scanned documents, just like the Doxie Scanner App does - but for Command line
#!/bin/bash
# Emulates the process of a Doxie workflow
# - Deskewing
# - Cropping black border
# - Convert to PDF
# - OCR
#
# Dependencies: imagemagick, tesseract, tesseract-data-deu
# Check if all working directories exist

Keybase proof

I hereby claim:

  • I am simonszu on github.
  • I am simonszu (https://keybase.io/simonszu) on keybase.
  • I have a public key ASDo8PgzKP4Te31J0g2nbO6z5wPN8YqrjTCUsbLeCarTAAo
@simonszu
simonszu / README.md
Created January 19, 2016 20:42
Icinga Pushover Notifications

HowTo

  1. APP-API-Key auf Pushover registrieren
  2. Die beiden Commands in die commands.cfg eintragen, dabei PUSHOVER_APP_KEY durch den registrierten Key ersetzen
  3. php-Script an einen beliebigen Pfad kopieren, dabei die Pfade in den Command-Definitions anpassen
  4. In der contacts.cfg in jedem Kontakt ein Feld "address1" anlegen, mit dem persönlichen Pushover-API-Key als Inhalt
  5. ???
  6. Profit
@simonszu
simonszu / twitter_.rb
Last active August 29, 2015 14:23
A munin plugin to monitor some statistics of a twitter account
#!/usr/bin/env ruby
# Munin plugin to track some twitter stats.
# Requirements: The twitter gem ('gem install twitter')
# Go to dev.twitter.com and register your own app. Get the oauth credentials for
# yourself.
#
# Paste the following to /etc/munin/plugin-conf.d/munin-node:
#
# [twitter*]