Skip to content

Instantly share code, notes, and snippets.

@mohashari
mohashari / snippet-1.sh
Created July 26, 2026 01:02
Implementing Ephemeral WireGuard VPN Tunnels for Secure Cross-Cloud Database Replication — code snippets
#!/usr/bin/env bash
set -euo pipefail
# Enable IP forwarding and disable reverse path filtering hazards
echo "Optimizing network sysctl for WireGuard gateway..."
sudo sysctl -w net.ipv4.ip_forward=1
sudo sysctl -w net.ipv4.conf.all.forwarding=1
sudo sysctl -w net.ipv4.conf.all.rp_filter=2
sudo sysctl -w net.ipv4.conf.default.rp_filter=2
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIH89n6nRYY5NDEBNaaInU0oOMkm5RJUcLWTnzlFpS/Ux github-actions-deploy@receipt-coding-saas
[run_tests] run tmpdir: /tmp/platform-test_dr5fb1g3
[run_tests] cpus=24 sem limits: SEMMSL=32000 SEMMNS=1024000000 SEMOPM=500 SEMMNI=32000
PYTHONPATH=/home/dsebastian/workspace/aif/platform-test/submodules/p4-programs/test:/home/dsebastian/workspace/aif/platform-test/prebuilt:/home/dsebastian/workspace/aif/platform-test:/home/dsebastian/workspace/aif/platform-test/submodules/sys-sw/install/python:/home/dsebastian/workspace/aif/platform-test/submodules/sys-sw/paris-driver/src/Common/testlib:/home/dsebastian/workspace/aif/platform-test/prebuilt/gen-py/aswitch:/home/dsebastian/workspace/aif/platform-test/prebuilt/gen-py/bm_runtime:/home/dsebastian/workspace/aif/platform-test/submodules/p4-programs/submodules/behavioral-model/targets/a1na_switch:/home/dsebastian/workspace/aif/platform-test/submodules/p4-programs/submodules/behavioral-model/tools
LD_LIBRARY_PATH=/home/dsebastian/workspace/aif/platform-test/submodules/sys-sw/install/lib
A1_PLATFORM=fpga
A1_SYS_SW_PATH=/home/dsebastian/workspace/aif/platform-test/s
@choco-bot
choco-bot / 1.RegistrySnapshot.xml
Created July 26, 2026 01:02
zen-browser v1.21.9-b - Passed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<registrySnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<user>S-1-5-21-2103724273-867497271-2381343824-1000</user>
<keys>
<key installerType="Unknown" displayName="Mozilla Maintenance Service" displayVersion="1.21.9b">
<RegistryView>Registry64</RegistryView>
<KeyPath>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MozillaMaintenanceService</KeyPath>
<DefaultValue />
<InstallLocation><![CDATA[]]></InstallLocation>
<UninstallString><![CDATA["C:\Program Files (x86)\Mozilla Maintenance Service\uninstall.exe"]]></UninstallString>
@WolftheGrey
WolftheGrey / id_box_deploy.pub
Created July 26, 2026 01:02
box-deploy pubkey (temp relay)
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIlnidletIlu3QQaT+Vnw/zVsfGFPgbI+RGii0gdVrkS box-deploy
#!/usr/bin/env python3
# ==============================================================================
# Script: pca_instance_private_ip.py
# Description: Bulk assign or remove secondary private IP addresses on VMs
# from a CSV of instance names. Uses the same tenancies.yml config
# as the reboot/backup/delete scripts.
#
# Actions (--action):
# assign Create a secondary private IP on the primary VNIC.
# CSV col 2 optional — omit to let OCI auto-assign.
@choco-bot
choco-bot / 1.RegistrySnapshot.xml
Created July 26, 2026 01:02
rss-builder v2.1.8 - Passed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<registrySnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<user>S-1-5-21-437507408-3306394508-2435795647-1000</user>
<keys>
<key installerType="Msi" displayName="RSS Builder" displayVersion="2.1.8">
<RegistryView>Registry32</RegistryView>
<KeyPath>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{2D314DA3-96BC-4FD0-8067-70AAF054C3E2}</KeyPath>
<DefaultValue />
<InstallLocation><![CDATA[]]></InstallLocation>
<UninstallString><![CDATA[MsiExec.exe /I{2D314DA3-96BC-4FD0-8067-70AAF054C3E2}]]></UninstallString>
@mohashari
mohashari / snippet-1.txt
Created July 26, 2026 01:01
Debugging Socket Buffer Bloat and TCP Queueing Delay in High-Throughput Go Services with eBPF — code snippets
#include <vmlinux.h>
#include <bpf/bpf_helpers.h>
#include <bpf/bpf_tracing.h>
#include <bpf/bpf_endian.h>
char LICENSE[] SEC("license") = "GPL";
struct event {
__u32 pid;
__u64 duration_ns;
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created July 26, 2026 01:01
Rimworld output log published using HugsLib
Log uploaded on Saturday, July 25, 2026, 9:01:22 PM
Loaded mods:
Harmony(brrainz.harmony)[mv:2.4.2.0]: 0Harmony(2.4.1), HarmonyMod(2.4.2)
Core(Ludeon.RimWorld): (no assemblies)
Royalty(Ludeon.RimWorld.Royalty): (no assemblies)
Ideology(Ludeon.RimWorld.Ideology): (no assemblies)
Biotech(Ludeon.RimWorld.Biotech): (no assemblies)
EdB Prepare Carefully(EdB.PrepareCarefully)[mv:1.6.2]: EdBPrepareCarefully(av:1.1.1,fv:1.6.2)
HugsLib(UnlimitedHugs.HugsLib)[ov:12.0.0]: 0Harmony(av:2.4.1,fv:1.2.0.1), HugsLib(av:1.0.0,fv:12.0.0)
Blood Animations(Fuu.BloodAnimations): BloodAnimations(1.0.0)
@Jinger-ui
Jinger-ui / nems_report_2026-07-26.html
Created July 26, 2026 01:01
NEMS USEP Report - 2026-07-26
<!DOCTYPE html>
<html>
<head><meta charset="utf-8"></head>
<body style="margin:0;padding:0;background:#f4f4f4;font-family:Arial,sans-serif;">
<div style="max-width:600px;margin:20px auto;background:#fff;border-radius:8px;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,0.1);">
<div style="background:#d32f2f;padding:24px 28px;color:#fff;">
<div style="font-size:22px;font-weight:bold;">&#9888; USEP Price Alert - 2026-07-26</div>
<div style="margin-top:8px;font-size:15px;opacity:0.9;">Found <strong>13</strong> period(s) with USEP &ge; $290/MWh</div>
<div style="margin-top:4px;font-size:14px;opacity:0.85;">Highest USEP: <strong>$998.08/MWh</strong></div>