Skip to content

Instantly share code, notes, and snippets.

@leonid-ed
leonid-ed / udp_to_local.c
Last active March 12, 2026 18:43
Examples of using raw sockets (c, linux, raw socket)
/*
An example of using raw sockets.
You can capture packets by tcpdump:
tcpdump -X -s0 -i lo -p udp
*/
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
@fraktality
fraktality / Zones.lua
Last active March 12, 2026 18:43
Fast trigger volumes
local RunService = game:GetService("RunService")
-- compile an oriented bounding box into a scaled CFrame
local function compileBBox(cframe: CFrame, size: Vector3)
return CFrame.fromMatrix(
cframe.Position,
cframe.XVector/size.X,
cframe.YVector/size.Y,
cframe.ZVector/size.Z
):Inverse()
@xstelea
xstelea / PRODUCT_SCOPE.md
Created March 4, 2026 15:47
Multisig Vaults

Multisig Vaults — Product Scope Document

1. Overview

What & Why:

On Radix, on-chain accounts can hold tokens and other assets. When an organization shares an account, multiple people need to approve transactions (multisig) so no single person can move funds unilaterally. Coordinating this manually — passing around transaction payloads, collecting signatures offline — is painful and error-prone.

  • Vault — An on-chain Radix account that holds a team's assets, controlled by multisig so transactions require approval from multiple signers before executing.
  • Team — The set of signers whose public keys are listed in the multisig access rule. They collectively approve all vault transactions via threshold signing (n-of-m).
@luismts
luismts / GitCommitBestPractices.md
Last active March 12, 2026 18:41
Git Tips and Git Commit Best Practices

Git Commit Best Practices

Basic Rules

Commit Related Changes

A commit should be a wrapper for related changes. For example, fixing two different bugs should produce two separate commits. Small commits make it easier for other developers to understand the changes and roll them back if something went wrong. With tools like the staging area and the ability to stage only parts of a file, Git makes it easy to create very granular commits.

Commit Often

Committing often keeps your commits small and, again, helps you commit only related changes. Moreover, it allows you to share your code more frequently with others. That way it‘s easier for everyone to integrate changes regularly and avoid having merge conflicts. Having large commits and sharing them infrequently, in contrast, makes it hard to solve conflicts.

@coodoo
coodoo / outline.md
Last active March 12, 2026 18:41
「第二屆 AI 取暖會」講義文字稿

/* 前言 -------------------------------------------------- */

簡介

這是 Jeremy 於 2026-03-07 於第二屆「 AI 取暖會」中分享過去十八個月來與 AI/Agent 搏鬥的實戰心得。

影片

https://www.youtube.com/watch?v=9kb7oCamafE

body{
margin:0;
height:100vh;
display:flex;
justify-content:center;
align-items:center;
background:#121212;
font-family:Arial, Helvetica, sans-serif;
color:white;
}
@s3rgeym
s3rgeym / Arch-Install-SED-Luks-Btrfs.md
Last active March 12, 2026 18:40
Установка Arch Linux с шифрованием всего диска либо раздела и Btrfs

image

Вся суть харча™ (на самом деле все далеко не так...)

Установка Arch Linux с шифрованием всего диска либо раздела и Btrfs

-- Easy use
local Price0 = 50
local Sales0 = 10000
local Visits0 = 50000
local Price1 = 200
local Sales1 = 9000
local Visits1 = 70000
-- Math :)
local p0,s0,p1,s1=Price0,Sales0,Price1,Sales1*(Visits0/Visits1)
local m=(s1-s0)/(p1-p0)
@simons-public
simons-public / remove-install-ff.sh
Created August 13, 2022 01:25
remove Install Firefox on Steam Deck
#!/bin/sh
sudo steamos-readonly disable
sudo rm /usr/share/applications/org.mozilla.firefox.desktop
sudo steamos-readonly enable
@gilbertfrancois
gilbertfrancois / uninstall_gstreamer_macos.sh
Last active March 12, 2026 18:38
Uninstaller for GStreamer on macOS, where GStreamer is installed as framework from the official pkg distribution.
#!/usr/bin/env bash
# Author: Gilbert Francois Duivesteijn
# Date: Febr 2023
# Platform: macOS
# License: Apache
# Discard receipt data for the installed GStreamer packages.
pkgutil --pkgs | grep gstreamer | xargs -I % sudo pkgutil --forget %
# Remove the GStreamer Framework from disk