Skip to content

Instantly share code, notes, and snippets.

View Klepvink's full-sized avatar
🐦

Klepvink Klepvink

🐦
View GitHub Profile
@Klepvink
Klepvink / fendiff.py
Created October 2, 2022 17:56
FenDiff - Determine the chess move by comparing two FEN-strings
#!/bin/python3
# Title: FenDiff
# Author: Klepvink
# Version: 1.0
# Checks two different FEN-strings, and determines the move that was made using only standard python modules and functions (and returns in UCI-format)
# The original purpose of this code is to help determine the move made based on only FEN-data. The chessboard sends a continuous stream
# of current positions in the form of FEN, and this code determines what move was made using that FEN-data by comparing it to the last
@Klepvink
Klepvink / theme.json
Last active February 13, 2025 11:07
omp theme
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"foreground": "#ff5555",
"properties": {
"time_format": "15:04:05"
@Klepvink
Klepvink / shaha.sh
Created February 14, 2025 13:45
Shaha - Interactive shell with output automatically piped to Aha (https://github.com/theZiz/aha). This script is by no means meant to be used in a production environment, and was simply written to help create professional reports during assignments and exams.
#!/bin/bash
# Print banner
echo ""
echo "[!] You are now in shaha, a shell which helps with keeping track of used commands using aha."
echo "[!] Klepvink, 2025"
echo ""
# Spawn interactive shell, pipes all output to aha
python3 -c 'import pty; pty.spawn("/bin/bash")' | tee >(aha > $(date +%F_%H-%M-%S).html)