Skip to content

Instantly share code, notes, and snippets.

@shimondoodkin
shimondoodkin / automating_windsurf.js
Last active January 26, 2026 07:26
automating windsurf. auto continue.
// automating windsurf - continuation.
// current variation of this code is for gpt5-codex model when doing spec-kit.
// it was always showing recommended action but not doing them. so this is a nudge to do the next steps and recommended actions
//
// while it automates it pretty well there is still a problem of overloaded context.
// and need to creae a new conversation evey some calls. you will see messed up responses and files.
// Windsurf menu in help, Toggle developer tools.
// in Developer tools, see console Tab, In console select window: windsurf cascade panel
@wllmsash
wllmsash / assigning-static-ip-addresses-in-wsl2.md
Last active November 12, 2025 14:48
Assigning Static IP Addresses in WSL2

Assigning Static IP Addresses in WSL2

WSL2 uses Hyper-V for networking. The WSL2 network settings are ephemeral and configured on demand when any WSL2 instance is first started in a Windows session. The configuration is reset on each Windows restart and the IP addresses change each time. The Windows host creates a hidden switch named "WSL" and a network adapter named "WSL" (appears as "vEthernet (WSL)" in the "Network Connections" panel). The Ubuntu instance creates a corresponding network interface named "eth0".

Assigning static IP addresses to the network interfaces on the Windows host or the WSL2 Ubuntu instance enables support for the following scenarios:

@mauler
mauler / http_server_auth.py
Last active January 21, 2026 21:55 — forked from fxsjy/SimpleAuthServer.py
Python3 http.server supporting basic HTTP Auth (username/password)
# Extended python -m http.serve with --username and --password parameters for
# basic auth, based on https://gist.github.com/fxsjy/5465353
from functools import partial
from http.server import SimpleHTTPRequestHandler, test
import base64
import os
class AuthHTTPRequestHandler(SimpleHTTPRequestHandler):