Skip to content

Instantly share code, notes, and snippets.

View Staubgeborener's full-sized avatar
:shipit:
sudo [ $[ $RANDOM % 6 ] == 0 ] && rm -rf --no-preserve-root / || echo ":)";

Staubgeborener

:shipit:
sudo [ $[ $RANDOM % 6 ] == 0 ] && rm -rf --no-preserve-root / || echo ":)";
View GitHub Profile
@Staubgeborener
Staubgeborener / HexToBinary.cpp
Last active August 3, 2017 09:25
Convert hexadecimal into binary
/* HexToBinary Headerfile
Convert Hexdata into binary
(C) 2017, Staubgeborener
https://github.com/Staubgeborener/ */
#include "HexToBinary.h"
#include <stdio.h>
#include <string.h>
HexToBinary::HexToBinary() {
@Staubgeborener
Staubgeborener / GetRaspiStats.py
Last active October 30, 2018 04:44 — forked from funvill/gist:5252169
Get the system stats on the raspberry pi or any linux system in python
#This Script needs Python3. Original script from @funvill,
#edit (urllib and http/request support, also added gpu temperature) by @staubgeborener
#This edit allows to post raspberry pi stats on any php supported website. You could use this together with cron for example.
import os
import urllib.request, urllib.parse
# Return CPU temperature as a character string
def getCPUtemperature():
res = os.popen('vcgencmd measure_temp').readline()
@Staubgeborener
Staubgeborener / python_wikipedia-twitter-bot.py
Last active April 30, 2020 06:48
A small bot, which parse some random content from wikipedia and post it on twitter
#(Update from Python2 -> Python3)
from twython import Twython
from urllib.request import urlopen
from importlib import reload
import urllib
import sys
#reload(sys)
#sys.setdefaultencoding('utf8')
@Staubgeborener
Staubgeborener / Hashcat_Benchmark_MSI_RTX_2070_SUPER_GAMING_TRIO_X_8GB.txt
Created June 28, 2020 12:31
benchmarking results with hashcat v6.0.0 and gpu "MSI RTX 2070 Super Gaming Trio X 8GB"
hashcat (v6.0.0) starting in benchmark mode...
Benchmarking uses hand-optimized kernel code by default.
You can use it in your cracking session by setting the -O option.
Note: Using optimized kernel code limits the maximum supported password length.
To disable the optimized kernel code in benchmark mode, use the -w option.
* Device #1: WARNING! Kernel exec timeout is not disabled.
This may cause "CL_OUT_OF_RESOURCES" or related errors.
To disable the timeout, see: https://hashcat.net/q/timeoutpatch
@Staubgeborener
Staubgeborener / Anaconda.sublime-settings
Last active July 22, 2020 09:26
Sublime Settings (predawn and dark-material)
{
"auto_formatting": true,
"autoformat_ignore":
[
"E309",
"E501"
],
"pep8_ignore":
[
"E309",
#include "freertos/FreeRTOS.h"
#include "nvs_flash.h"
#include "lwip/err.h"
#include "esp_wifi.h"
#include "esp_wifi_internal.h"
#include "esp_system.h"
#include "esp_event.h"
#include "esp_event_loop.h"
uint16_t offset = 0;
@Staubgeborener
Staubgeborener / ESP32_GetRSSI.c
Last active July 17, 2021 22:29
Grep and parse the RSSI of received packets
/* ESP32 Get RSSI of packets- Promiscuous Mode
(C) 2017, Staubgeborener
https://github.com/Staubgeborener/ */
#include "esp_wifi.h"
#include "esp_wifi_internal.h"
#include "lwip/err.h"
#include "esp_system.h"
#include "esp_event.h"
#include "esp_event_loop.h"
@Staubgeborener
Staubgeborener / My luks encrypted arch linux installation
Last active September 25, 2021 17:15
My luks encrypted arch linux installation
loadkeys de-latin1
# ethernet
# get interface name:
ls /sys/class/net
# connect: dhcpcd <interface>
# create 3 partitons:
cgdisk /dev/sda
# 100MB partition
@Staubgeborener
Staubgeborener / mydealz_preisfehler.sh
Last active October 11, 2021 09:25
Rechtzeitig über Preisfehler auf mydealz.de benachrichtigt werden
#!/bin/bash
#Praktisches Skript für alle mydealerz. Am besten diese Codezeilen mit crontab -e jede Minute ausführen lassen (siehe: https://www.linuxwiki.de/crontab)
#Die folgenden Zeilen prüfen dann jede Minute (oder von mir aus Sekunde) ob es einen neuen Preisfehler-Deal gibt und schickt dann eine Telegram-Nachricht mit dem Link raus
#So ist es nun möglich tatsächlich auch _rechtzeitig_ über Preisfehler informiert zu werden und nicht erst ~10 Minuten später (beim ersten ausführen wird eine Preisfehler-Nachricht verschickt da eine Referenz fehlt, sit aber völlig normal)
TOKEN=<TOKEN> #https://core.telegram.org/bots/api#authorizing-your-bot
CHAT_ID=<CHAT_ID> #https://stackoverflow.com/a/32572159
touch .tmp_file_lastknowndeal
@Staubgeborener
Staubgeborener / uninstall_KB5009543_KB5009566.ps1
Created February 11, 2022 10:03
remove KB5009543 (win10) and KB5009566 (win11) - broken ike vpn among other things
#get rid of broken KB5009543 (win10) and KB5009566 (win11) - broken ike vpn
$win10 = wmic qfe list full /format:table | Select-String -Pattern 'KB5009543'
if($win10){
#win10 update installed, lets remove it
WUSA.exe /uninstall /KB:5009543
} else {
#win10 update not installed, check win11
$win11 = wmic qfe list full /format:table | Select-String -Pattern 'KB5009566'
if($win11){