Skip to content

Instantly share code, notes, and snippets.

View tomschall's full-sized avatar
:octocat:
Ask me...

Tom Schall tomschall

:octocat:
Ask me...
  • Fachhochschule Nordwestschweiz
  • Bern - Switzerland
  • X @tomschall79
View GitHub Profile
@tomschall
tomschall / training-okt-25-dark.md
Created October 3, 2025 19:07
Trainingsplan Oktober 25 Dark Mode
<style> body { background-color: #111; color: #e0e0e0; font-family: "Fira Code", monospace; line-height: 1.6; } h1, h2, h3 { color: #00e5ff; /* Neon Cyan */
@tomschall
tomschall / training-oktober-25.md
Created October 3, 2025 19:00
Trainingsplan Oktober 25

TrainingPlan.md — React-Doc Style (Canvas)

Clean, minimal, checklist-first. Kraft + Cardio auf einer Seite.
Fokus: sanfter Aufbau, klare Wochentage, 8-Wochen-Progression fürs Joggen.
TL;DR: 2× Kraft (Mo/Fr), 3× Cardio (Di/Do/Sa).


🔧 Quick Start

Dev-Deploy Smoke – ohne E2E

Ziel: Jeden Dev-Deploy leichtgewichtig absichern – ohne Cypress/Playwright‑Suite. Fokus: API ok? Seiten rendern? A11y ok? Links nicht tot?

TL;DR

  • 3–4 kleine Skripte + 1 Job in GitLab.
  • Laufzeit: ~2–3 Minuten pro Deploy.
  • Wartungsarm, Agentur muss keine E2E liefern.

🇹🇭 Pad Kra Pao à la Tom

Hier mein Rezept für ein authentisches Thai-Hackgericht mit 100% Geschmack! Diese Variante ist auf 400g gemischtes Hackfleisch (Schwein/Rind) ausgelegt. 🌟


🥩 Zutaten

🔶 Hauptzutaten:

@tomschall
tomschall / javascript-runtime-hacking.md
Created May 15, 2025 05:32
JavaScript Runtime Hacking – 10 Powerful Methods

🔧 JavaScript Runtime Hacking – 10 Powerful Methods

A curated list of powerful techniques to manipulate JavaScript code at runtime – great for debugging, prototyping, or reverse engineering frontend behavior directly in the browser (yes, even on mobile).

These methods allow you to inspect, intercept, or override behavior in real time, without changing the actual source code or deploying anything new.


1. Monkey Patching 🐒

@tomschall
tomschall / solr-response-interceptor-xhr-patch.md
Last active May 14, 2025 15:17
Solr Response Interceptor (XHR Patch)

Solr Response Interceptor (XHR Patch)

A small browser-side debug script to intercept and modify Solr responses on /search_endpoint/ – useful for UI testing or facet debugging without touching the backend.

💡 Concept

  • Intercepts XMLHttpRequest
  • Captures the response once it's ready (readyState === 4)
  • Replaces the response with a modified JSON object
  • Logs both the original and the modified versions for comparison

🚀 SSH Cheat Sheet

A handy reference for ssh, ssh-keygen, and ssh-agent commands.


🔑 SSH Basics

Connect to a remote server

@tomschall
tomschall / Docker with XDebug.md
Created September 12, 2024 11:33 — forked from megahirt/Docker with XDebug.md
Debugging PHP with XDebug v3 inside Docker using VSCode

Debugging PHP with XDebug v3 inside Docker using VSCode

Assumptions / Prerequisites

  • XDebug v3+ inside Docker (e.g. php:7.3-apache Docker image)
  • Running Docker v20.10+
  • VSCode with PHP Debug Extension (Felix Becker)
  • Using Docker Compose for orchestration

Objective

Oh shit, git!

Git is hard: screwing up is easy, and figuring out how to fix your mistakes is fucking impossible. Git documentation has this chicken and egg problem where you can't search for how to get yourself out of a mess, unless you already know the name of the thing you need to know about in order to fix your problem.

So here are some bad situations I've gotten myself into, and how I eventually got myself out of them in plain english*.

Email

/^[a-z|A-Z]+\w(\.[a-z|A-Z]+\w)?@[a-z|A-Z]+\w\.[a-z|A-Z]{2,3}$/gm