Skip to content

Instantly share code, notes, and snippets.

@frankenstein91
frankenstein91 / TQR.py
Last active August 19, 2021 11:43
Ein kleiner CSV to QRcode generator
import csv
import multiprocessing
import argparse
import os.path
import sys
from multiprocessing import Pool
import logging
from PIL import Image, ImageDraw,ImageFont
import qrcode
import uuid
schachbrett = 8 * 8
ReisFeldEins = 1
Multip = 2
if ReisFeldEins == 1:
print(f"Das Schachbrett hat {schachbrett} Felder und auf dem ersten Feld ist ein Reiskorn.")
else:
print(f"Das Schachbrett hat {schachbrett} Felder und auf dem ersten Feld sind {ReisFeldEins} Reiskörner.")
print(f"bei jedem Feldwechsel wird die Reiskornanzahl mit {Multip} multipiziert")
feldlist = []
@frankenstein91
frankenstein91 / tootMentions.py
Last active May 18, 2021 16:16
lists all mentions in a toot thread
#! /bin/env python
import argparse, multiprocessing, urllib.request,validators
import json
import sys
from urllib.parse import urlparse
import os.path
if __name__ == '__main__':
usernames =[]
multiprocessing.freeze_support()
@frankenstein91
frankenstein91 / FlocTester.py
Last active April 30, 2021 17:36
I wrote this little tool to check websites for Google FLOC. I hope I have understood Google's description of the server opt-out correctly.
#! /bin/env python
import argparse, multiprocessing, urllib.request,validators
if __name__ == '__main__':
multiprocessing.freeze_support()
argsParser = argparse.ArgumentParser()
argsParser.add_argument("-u","--url",help="the url of the website",default="https://www.github.com",type=str)
args = argsParser.parse_args()
print("testing: " + args.url)
@frankenstein91
frankenstein91 / wifiscanner.py
Created March 1, 2021 19:44 — forked from dropmeaword/wifiscanner.py
A simple python script which records and logs wifi probe requests.
import multiprocessing,argparse,chardet
from scapy.all import sniff, Dot11
from mac_vendor_lookup import MacLookup
mac = MacLookup()
def handle_packet(pkt):
thisProb = {}
if not pkt.haslayer(Dot11):
return
@frankenstein91
frankenstein91 / bot.by
Last active February 11, 2021 21:54
mastodontech sppedtest bot
import multiprocessing
import atoot
import asyncio
import speedtest #speedtest-cli
async def mastodon_bot():
instance = ""
access_token = ""
client = await atoot.MastodonAPI.create(instance, access_token=access_token)
@frankenstein91
frankenstein91 / ShutdownWin.txt
Created November 28, 2020 11:08
Malduino W shutdown windows
LOCALE US
LED 0 255 0
WINDOWS r
DELAY 400
STRING cmd
ENTER
DELAY 400
LED 255 215 0
STRING c:\windows\system32\shutdown.exe /s /t 0 /c "Save a little electricity" /f
<?xml version="1.0" encoding="utf-8"?>
<ModList>
<Name>Martin</Name>
<modIds>
<li>Core</li>
<li>1752864297</li>
<li>1507748539</li>
<li>709317151</li>
<li>818773962</li>
<li>1616643195</li>
= Arch Linux step-by-step installation =
= http://blog.fabio.mancinelli.me/2012/12/28/Arch_Linux_on_BTRFS.html =
== Boot the installation CD ==
loadkeys de
== Create partition ==
gdisk /dev/sda
Part 1#: SWAP (8200) RAM + 4GB