MCPcopy Index your code
hub / github.com/aybabtme/bitflip

github.com/aybabtme/bitflip @v0.2.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.2.2 ↗ · + Follow
15 symbols 34 edges 3 files 0 documented · 0% updated 19mo agov0.2.2 · 2024-11-22★ 721 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

bitflip

Flip bits in files.

tldr

If you want to flip bits in files, this utility has got you covered. Flip specific bits, randomly flip a single bit, or spray hell all around..! Whatever rocks your boat, as long as you need some bits flipped.

Usage

Example usage

$ echo hello world > /tmp/hello.world
$ cat < /tmp/hello.world
hello world
$ bitflip random  /tmp/hello.world
2020/04/09 17:40:55 flipping 2th bit of byte 6 in file "/tmp/hello.world"
$ cat < /tmp/hello.world
hello sorld

From here, sky is the limit!

Why not flip 0.1% of the bits in your MySQL DB file?

bitflip spray percent:0.1 /var/lib/mysql/mydb.idb

installation

Debian/Ubuntu

wget https://github.com/aybabtme/bitflip/releases/download/v0.2.1/bitflip_0.2.1_linux_amd64.deb
dpkg -i bitflip_0.2.1_linux_amd64.deb

darwin

brew install aybabtme/homebrew-tap/bitflip

Goreleaser

Builds are done using goreleaser. A GitHub workflow will take care of this, that being said, you can run goreleaser as follows:

NB. Builds will land in the dist/ directory.

Update or install goreleaser

go install github.com/goreleaser/goreleaser/v2@latest

Create a snapshot

E.g. if you haven't a tag of your current repository state.

goreleaser build --snapshot --single-target --clean -f .goreleaser.yml

Create a release

goreleaser release --skip=publish --clean -f .goreleaser.yml

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Function 9
FuncType 2
Method 2
Interface 1
Struct 1

Languages

Go100%

Modules by API surface

spray.go7 symbols
main.go5 symbols
main_test.go3 symbols

For agents

$ claude mcp add bitflip \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page