Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python3
"""
SCTP Client/Server
Author: Fahad Yousuf
This script implements a simple SCTP client/server using Python's socket module.
The server listens on port 62324 and the client connects to the server on the same port.
"""
#!/bin/sh
dnsserver=“your-dns-server.ns.cloudflare.com"
host="your-record-name"
domain_name=“yourdomain.com”
cf_user_email="[email protected]"
cf_api_key=“—get-your-own-api-key--“
cf_zone_id="—get-your-own-zone-id—“”
cf_record_id=“check-your-own-record-id”
dnsrecord=$host.$domain_name
@fahadysf
fahadysf / ghostty.config
Created September 9, 2025 10:56
Ghostty Dark Config
font-family = "JetBrainsMono Nerd Font Mono"
font-style = Regular
font-size = 13
font-thicken = true
adjust-underline-position = 40%
adjust-underline-thickness = -60%
cursor-style = block
cursor-style-blink = false
@fahadysf
fahadysf / gist:67342e359f334e58841484ee9f8767a4
Created September 10, 2025 09:25
Powershell-String-Replacement.ps1
# Set the paths for your files
$replacementListFile = "C:\temp\replace.txt"
$targetFile = "C:\temp\target.xml"
# Read the contents of the replacement list file
$replacementList = Get-Content -Path $replacementListFile
# Read the content of the target file into a single string
$content = Get-Content -Path $targetFile -Raw