Skip to content

Instantly share code, notes, and snippets.

@0xkarmacoma
0xkarmacoma / sending-ether-cheat-sheet.md
Last active March 15, 2025 00:17
Sending Ether Cheat Sheet

Sending Ether Cheat Sheet

TLDR

🥇 Instead of sending Ether, use the withdrawal pattern

🥈 If you really need to send Ether, use a safe wrapper like OpenZeppelin's Address.sendValue(addr, amount)

🥉 If you really need to send Ether without dependencies, use (bool success, ) = addr.call{value: amount}("")

@kamidev
kamidev / zig_install_m3_max_macos.md
Last active April 20, 2025 14:13
zig_macos_m3_max_install

Personal notes building zig 0.15.0-dev.xxxx on Macbook M3 Max

2025014 Sequoia 15.4.1, latest XCode Commandline Tools, homebrew-installed LLVM 20.1.3 (llvm@20)

This way of building probably works on all Apple Silicon Macs, but you must check other models yourself. Some Intel Macs should also work (the only significant difference is the default homebrew path). But I don't test that anymore.

Here is a my list recent succesful M3 Max builds

DO YOU REALLY NEED TO BUILD FROM SOURCE?