Skip to content

Instantly share code, notes, and snippets.

View TimoReusch's full-sized avatar

Timo Reusch TimoReusch

View GitHub Profile
@TimoReusch
TimoReusch / captcha-verify.php
Last active March 20, 2024 00:28
A simple website, that hides your personal email behind a captcha.
<?php
$secretKey = "SECRET_CAPTCHA_KEY_HERE";
$responseKey = $_POST['g-recaptcha-response'];
$userIP = $_SERVER['REMOTE_ADDR'];
$url = "https://www.google.com/recaptcha/api/siteverify?secret=$secretKey&response=$responseKey&remoteip=$userIP";
$response = file_get_contents($url);
$response = json_decode($response);
if ($response->success) {
@TimoReusch
TimoReusch / tiktok_instagram_follower_comparator.py
Created January 31, 2024 02:01
Compares the exported JSON files from Instagram and TikTok and shows you who you follow on TikTok, but not on Instagram and vice versa.
import json
with open('tiktok-follows.json', 'r') as f:
tiktok = json.load(f)
with open('insta-follows.json', 'r') as f:
insta = json.load(f)
tiktok_follows = []
for follow in tiktok:
tiktok_follows.append(follow["UserName"])
@TimoReusch
TimoReusch / replacer.py
Last active March 12, 2023 23:39
Replaces <img> HTML-Tags with the MkDocs Markdown Syntax
file = open("Skript.md", "r")
newfile = open("new.md", "a")
lines = file.readlines()
replacements = [
["<img", "<figure markdown>\n ![](", "</figure>"],
["> <img", "> <figure markdown>\n> ![](", "> </figure>"],
[" <img", " <figure markdown>\n ![](", " </figure>"]
]
for line in lines:
@TimoReusch
TimoReusch / mouseMover.py
Created January 18, 2022 18:00
A quick, little Python-Script, that moves your mouse around and keeps your PC awake.
import pyautogui
while True:
pyautogui.moveRel(0,50, duration = 1)
pyautogui.moveRel(0, -50, duration = 1)
@TimoReusch
TimoReusch / appIcon.swift
Created December 29, 2021 12:34
Display your App Icon in the App itself (rounds the corners)
Image("Logo")
.resizable()
.scaledToFit()
.frame(width: 114, height: 114, alignment: .center)
.clipShape(RoundedRectangle(cornerRadius: 20))