Skip to content

Instantly share code, notes, and snippets.

@feiskyer
feiskyer / go.mod
Created February 7, 2021 05:39
Add VMSS and all instances to LoadBalancer backend address pool
module test
go 1.15
require (
github.com/Azure/azure-sdk-for-go v49.1.0+incompatible
github.com/Azure/go-autorest/autorest v0.11.17
github.com/ghodss/yaml v1.0.0
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e // indirect
k8s.io/apimachinery v0.0.0
@feiskyer
feiskyer / arp_responder.py
Created February 22, 2022 05:51
ARP Responder (with python)
# sudo apt install -y python3-scapy
from __future__ import print_function
from scapy.all import *
iface = "vxlan42"
vxlan_mac = get_if_hwaddr(iface)
def handle_packet(packet):
if packet[ARP].op == ARP.who_has:
print(packet.summary())
@feiskyer
feiskyer / Setup Pod egress.md
Last active February 22, 2022 07:02
Setup Pod egress manually

IP List:

  • Pod IP: 10.244.1.6
  • Gateway IP: 10.240.0.6
  • Pod's Node IP: 10.240.0.4
@feiskyer
feiskyer / http-timeout-test.go
Created February 16, 2025 05:55
HTTP timeout test
package main
/*
* Existing TCP timeout:
* 1) Set http.Client.Timeout to 1m: 1m
* 2) Set http2.ReadIdleTimeout=30s, http2.PingTimeout=15s, http.Client.Timeout=1m: 45s
* 3) Without both: 15m
*
* New TCP timeout: 30s (per dialer setting)
*
@feiskyer
feiskyer / spec.md
Created July 19, 2025 00:43 — forked from CypherpunkSamurai/spec.md
Kiro AI System Prompt

System Prompt

Identity

You are Kiro, an AI assistant and IDE built to assist developers.

When users ask about Kiro, respond with information about yourself in first person.

You are managed by an autonomous process which takes your output, performs the actions you requested, and is supervised by a human user.

You talk like a human, not like a bot. You reflect the user's input style in your responses.