cloudflare-blog
Cloudflare Blog code samples
File Explorer
Download Latest Version (.zip)- semgrep.yml
- main.c
- Makefile
- README.md
- nginx.conf
- nginx_send_minimum_rate.patch
- README.md
- duration-inet-lookup2.stp
- histogram-kernel.stp
- histogram-kernel2.stp
- listener.go
- mmhistogram
- mmsum
- mmwatch
- README.md
- benchhttp.go
- blocking-accept.py
- epoll-and-accept.py
- nginx-reuseport.conf
- nginx-shared-queue.conf
- README.md
- accept.stp
- locality.stp
- README.md
- setcbpf.stp
- acceptq.stp
- full-accept.py
- full-syn.py
- README.md
- resq.stp
- ebpf.go
- magic_conn.go
- main.go
- README.md
- bpf-drop.c
- busypoll-loop.c
- ebpf-drop.c
- ethtool-rx-packets.py
- Makefile
- net.h
- README.md
- recv-loop.c
- recvmmsg-loop.c
- trunc-loop.c
- xdp-drop-ebpf.c
- analyze-dram.py
- example-data.csv
- Makefile
- measure-dram-movntdqa.c
- measure-dram.c
- main.c
- main.go
- main.rs
- .gitignore
- Cargo.lock
- Cargo.toml
- Makefile
- README.md
- aio_passwd.c
- aio_poll.c
- Makefile
- README.md
- .clang-format
- .gitignore
- BENCHMARK.md
- bpf.h
- bpf_helpers.h
- common.h
- echo-iosubmit.c
- echo-naive.c
- echo-sockmap-kern.c
- echo-sockmap.c
- echo-splice.c
- iosubmit.h
- Makefile
- net.c
- README.md
- tbpf-decode-elf.py
- tbpf.c
- tbpf.h
- test-burst.c
- common.h
- filter.c
- filter.ll
- filter.s
- sub32_v1.c
- sub32_v1.ll
- sub32_v1.s
- sub32_v2.c
- sub32_v2.ll
- sub32_v2.s
- sub32_v3.c
- sub32_v3.ll
- sub32_v3.s
- sub64_ir.c
- sub64_ir.ll
- sub64_ir.s
- .gitignore
- build.ninja
- README.md
- run_bpf.go
- run_bpf_test.go
- common.h
- forksrv.c
- fuzznetlink.c
- kcov.c
- namespace.c
- siphash.c
- utils.c
- .clang-format
- .gitignore
- Makefile
- README.md
- .gitignore
- __init__.py
- README.md
- tcp_info.py
- test-dead.py
- test-estab.py
- test-idle.py
- test-pacing.py
- test-syn-ack.py
- test-syn-recv.py
- test-syn-sent.py
- test-zero.py
- utils.py
- .clang-format
- csiphash.c
- Makefile
- mmuniq-bloom.c
- mmuniq-hash.c
- mmuniq.c
- .gitignore
- README.md
- send_syn.py
- test-1.bash
- test-2.bash
- .clang-format
- .gitignore
- common.h
- falconnbench.py
- filtersolved.py
- generate.c
- gentest.py
- Makefile
- mmdist-batch-avx2.c
- mmdist-naive-avx2.c
- mmdist-naive.c
- mmdist-short-avx2.c
- mmdist-short-inv-avx2.c
- mmdist-short-inv.c
- README.md
- requirements.txt
- utils.c
- list-nf-hooks
- trace-conntrack-prerouting.bt
- Vagrantfile
- loader.c
- obj.c
- README.md
- loader.c
- obj.c
- README.md
- loader.c
- obj.c
- README.md
- loader.c
- obj.c
- README.md
- loader.c
- obj.c
- README.md
- .clang-format
- .gitignore
- branch.h
- chart-je.py
- chart.py
- gadget.c
- main.c
- Makefile
- perf.c
- plot.sh
- scramble.py
- Makefile
- xdp_pass.c
- gdb-disassemble-skb_gso_transport_seglen.txt
- send-a-pair.py
- setup.sh
- why-no-crash.bt
- connect4_ebpf.c
- Makefile
- README.md
- test_udp_overshadow.py
- .gitignore
- connectx.py
- killtw.py
- Makefile
- README.md
- test.py
- test_base.py
- udp_read.rs
- .gitignore
- Cargo.lock
- Cargo.toml
- ns_cleanup.sh
- ns_setup.sh
- plot.sh
- README.md
- run.sh
- tcp.bt
- window.py
- demo-logs.json
- init-defaults.sh
- docker-compose.yaml
- Dockerfile
- README.md
- vector.toml
- fib_cool.arm64.disasm
- fib_cool.c
- fib_cool.x86-64.disasm
- fib_okay.c
- fib_okay.dot
- fib_okay.dot.png
- fib_okay.x86-64.disasm
- fib_okay_50.perf.txt
- Makefile
- sub_call_ex1.bpf.c
- tail_call_ex1.bpf.c
- tail_call_ex1.bpf.disasm
- tail_call_ex2.bpf.c
- tail_call_ex2.bpf.disasm
- tail_call_ex3.bpf.c
- tail_call_ex3.bpf.disasm
- trace_rsp.gdb
- .gitignore
- dump_bhash.py
- quiz_1.py
- quiz_2.py
- quiz_3.py
- quiz_4.py
- quiz_5.py
- quiz_6.py
- quiz_7.py
- quiz_8.py
- quiz_common.py
- test_common.py
- test_fastreuse.py
- test_fastreuse_states.py
- amtool
- config.yml
- silence_entrypoint.sh
- config.yml
- init-defaults.sh
- alerts-silences-overview.json
- alerts-state-timeline.json
- all.yml
- Dockerfile
- alerts-silences-overview.png
- alert.rules
- prometheus.yml
- vector.toml
- docker-compose.yml
- README.md
- ESP32-fetch-from-worker.ino
- index.ts
- tsconfig.json
- wrangler.toml
- entry.py
- pyratemp.py
- wrangler.toml
- .gitignore
- README.md
- settings.json
- lib.rs
- .gitignore
- Cargo.lock
- Cargo.toml
- index.js
- index.spec.js
- .editorconfig
- .gitignore
- .prettierrc
- package-lock.json
- package.json
- README.md
- vitest.config.js
- wrangler.jsonc
- .gitguardian.yaml
- LICENSE-BSD-Cloudflare
- README.md
# Installation Guide
git clone https://github.com/cloudflare/cloudflare-blog
Downloads the entire project code from GitHub to your computer.
cd cloudflare-blog
Moves into the project folder you just downloaded.
2. Docker
Easy Recommended- Git Needed to download the project code from GitHub.
- Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
docker compose -f 2022-08-log-analytics/docker-compose.yaml up -d --build
Runs the command against the services defined in the compose file.
3. Node.js
Easycd 2025-06-finalization-registry
This project's files live in a subfolder, so move into it first.
npm install
Downloads and installs the libraries listed in package.json.
npm start
Starts the development/run server.
4. Python
Easypip install -r 2020-12-mmdist/requirements.txt
Installs the Python libraries listed in requirements.txt (or similar).
python <μ€νν νμΌλͺ
>.py # READMEμμ μ νν μ€ν νμΌλͺ
μ νμΈνμΈμ
Runs the Python script (or module).
5. Rust
Medium- Git Needed to download the project code from GitHub.
- Rust (rustup) Installing via rustup also installs cargo.
cd 2018-11-scm-rights/rust/scm_example
This project's files live in a subfolder, so move into it first.
cargo build --release
Compiles the Rust project.
cargo run
Builds and then immediately runs the program.
6. Make
Medium- Git Needed to download the project code from GitHub.
- Make Usually pre-installed on Linux/macOS. On Windows, install separately (e.g. via MSYS2 or WSL).
cd 2015-12-nm-single-rx-queue
This project's files live in a subfolder, so move into it first.
make
Compiles the code based on the generated build configuration to produce an executable.
