Open source
Code & projects
Open repositories from my books, research, teaching, and personal work.
Book code · n8n · Linux
Linux System Automation with n8n
The source code that accompanies the book, published in the official Apress repository.
With Jack Horsky
Research · LLMs · Bash
Adaptive Shell Scripting
A shell script that repairs itself: it watches its own runs, asks an LLM for a corrected payload when the environment changes, validates the proposal in three stages, and replaces itself atomically.
Research · LLMs · Python
Self-Evolving Programs
A program whose every generation is a quine that reproduces itself with new code. Demonstrated on a selfish-mining defense that changes its own fork-choice rule as the attacker adapts.
Research · Blockchain · Python
Selfish Mining: Simulation and Defense
A simulator for selfish mining attacks on Bitcoin and for a defense that uses learning automata to adapt how forks are resolved.
With Ali Nikhalat-Jahromi (original author) and M. R. Meybodi
Research · Machine learning · Python
Hybrid Learning Automata and Adaptive Dropout
A hybrid of fixed-structure and variable-structure learning automata, with a neural-network framework for dropout experiments.
With Saber Gholami
Teaching · Reinforcement learning · Python
Learning Automata
A short, readable learning automaton with a runnable demo, the update rule explained, and experiments for students to try.
Teaching · Multi-agent learning · Python
Goore Game and Multi-armed Bandits
Players who cannot see each other still find the best joint decision. Implemented with learning automata and with bandit agents, as scripts and Colab notebooks.
Personal project · DeFi · n8n
Delta-Neutral Radar for n8n
An n8n workflow that reads public market data and evaluates delta-neutral setups against a full cost model. Read-only analytics for research; it places no orders.