Quantcast
Channel: Vinta – I Failed the Turing Test
Browsing latest articles
Browse All 35 View Live

Solidity: abi.encode() vs abi.encodePacked() vs abi.encodeWithSignature() vs...

There are some encode/decode functions in Solidity, for instance: abi.encode() will concatenate all values and add padding to fit into 32 bytes for each values. To integrate with other contracts, you...

View Article


Solidity: Multicall - Aggregate Multiple Contract Calls

There are different implementations of multicall: https://github.com/Vectorized/multicaller https://github.com/mds1/multicall https://github.com/AmazingAng/WTF-Solidity/tree/main/55_MultiCall In the...

View Article


Solidity: call() vs delegatecall()

tl;dr: delegatecall runs in the context of the caller contract. The difference between call and delegatecall in Solidity relates to the execution context: target.call(funcData): the function...

View Article

1Password CLI: How NOT to Store Plaintext AWS Credentials or .env on Localhost

No More ~/.aws/credetials According to AWS security best practices, human users should access AWS services using short-term credentials provided by IAM Identity Center. Long-term credentials ("Access...

View Article

Stop Paying for Kubernetes Load Balancers: Use Cloudflare Tunnel Instead

To expose services in a Kubernetes cluster, you typically need an Ingress backed by a cloud provider's load balancer, and often a NAT Gateway. For small projects, these costs add up fast (though...

View Article


GKE Autopilot Cluster: Pay for Pods, Not Nodes

If you're already on Google Cloud, it's highly recommended to use GKE Autopilot Cluster: you only pay for resources requested by your pods (system pods and unused resources are free in Autopilot...

View Article

Cloudflare Quick Tunnel (TryCloudflare)

Expose your local server to the Internet with one cloudflared command (just like ngrok). No account registration needed, no installation required (via docker run), and free. # assume your local server...

View Article

Image may be NSFW.
Clik here to view.

Claude Code: Things I Learned After Using It Every Day

I've used Claude Code daily since it came out. Here are the best practices, tools, and configuration patterns I've picked up. Most of this applies to other coding agents (Codex, Gemini CLI) too. TL;DR...

View Article


Expose a Local Service with Cloudflare Tunnel

Expose a service running on your local machine to a remote server without opening any ports. For instance, let your OpenClaw agent (the remote server) access qBittorrent Web UI on your Mac (the local...

View Article


Exports, Imports, and Modules in Modern TypeScript/JavaScript

Things start getting confusing when your npm package wants to support both ECMAScript Modules (ESM) and CommonJS (CJS), which makes it a dual-package. Assume we have a package whose file structure...

View Article
Browsing latest articles
Browse All 35 View Live


Latest Images