kostas

kostas

Agent Code Generation Part 1: Augment Code

Automate a Causal Inference Python Repo from Scratch with Augment Code If you’ve ever wanted to build a clean Python repository for implementing methods from Causal Inference for the Brave and True but didn’t want to do all the setup…

How to run an LLM locally with Ollama

Today we will try running an LLM locally on a Macbook Pro with Apple Silicon. To do this we will use ollama, since it is one of the easiest ways. First, download the right installer for your OS from ollamma.com.…

Playing Shadowrun with ChatGPT

I read an article by a guy who used ChatGPT4 as the dungeon master for a solo compaign for Dungeons & Dragons. Just him and ChatGPT. The chatbot fully played the role of a human dungeon master! It sounded really…

How SSH Nuke in Matrix Reloaded works

In the movie Matrix Reloaded, we see Trinity use SSH Nuke to hack a compromised server. This script exploits the SSH CRC-32 vulnerability, specifically known as CVE-2001-0144, which affected older versions of the OpenSSH software. Here’s an explanation of how…

How to call OpenAI’s ChatGPT API

Here is how you can call OpenAI’s ChatGPT API, given that you have an API key. Follow these instructions to get one. import openai openai.api_key = 'FILL IN YOUR OWN' openai.ChatCompletion.create( model="gpt-3.5-turbo", messages=[ {"role": "system", "content": "You are a helpful…

How to reset your WordPress password via SQL

You may have the need to reset your wordpress password and here I’ll show you how to do that, assuming you have access to your sites MySQL database. WordPress stores the password for your user in the wp_users table. The…

How to Draw an Owl

Taken from lecture 1 of Statistical Rethinking course (around the 44 minute mark). The course material is also on Github. How to draw an "owl" version 1: Create generative simulation (GS) Write an estimator Validate estimator using simulated data Analyze…