{"id":22825367,"url":"https://github.com/crabdancing/ddi","last_synced_at":"2025-03-31T00:22:37.559Z","repository":{"id":228000973,"uuid":"739336025","full_name":"crabdancing/ddi","owner":"crabdancing","description":"A fork of ddi with flake packaging","archived":false,"fork":false,"pushed_at":"2024-08-04T01:56:50.000Z","size":353,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-06T05:32:57.609Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/crabdancing.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-05T10:18:41.000Z","updated_at":"2024-08-04T01:56:53.000Z","dependencies_parsed_at":"2024-12-12T17:20:35.458Z","dependency_job_id":null,"html_url":"https://github.com/crabdancing/ddi","commit_stats":null,"previous_names":["alxpettit/ddi","a7287/ddi"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crabdancing%2Fddi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crabdancing%2Fddi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crabdancing%2Fddi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crabdancing%2Fddi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crabdancing","download_url":"https://codeload.github.com/crabdancing/ddi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246397387,"owners_count":20770544,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-12T17:10:30.237Z","updated_at":"2025-03-31T00:22:37.511Z","avatar_url":"https://github.com/crabdancing.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ddi\n## A safer dd\n---\n# Introduction\n\nIf you ever used `dd`, the GNU coreutil that lets you copy data from one file to another, then you may have encountered a typical use case: burning an iso file to a USB flashdrive.\n\nThis is how a typical `dd` command intended for this purpose would look like:\n\n    $ dd if=image.iso of=/dev/sdc\n\nThis command would copy all contents of `image.iso` into `/dev/sdc` which we'll assume it's a USB flashdrive in this example. However, it's VERY easy to mess up this command and send the output to a different device:\n\n    $ dd if=image.iso of=/dev/sda\n\nNow all your data is gone and you're in tears. Thankfully, this tool exists, although it won't save you from past mistakes.\n\n`ddi` (or dd-interactive) is a wrapper for `dd`. It takes all the same arguments, and all it really does is call `dd` in the background. But, if a device file is detected, you'll get a warning message detailing some information about what you're about to do as seen here:\n\n![example](img/example.gif)\n\nAny kind of response other than \"y\" will abort the command. If you use `dd` frequently, you might appreciate not having to worry so much about nuking your entire installation by one typo.\n\nIf the command doesn't have the `of` flag, or the `of` flag doesn't direct to a block device, then the warning message is ommited and `dd` will be called without interrumption. This means that `ddi` can be used as a drop-in replacement for `dd` with the added benefit of warning you if you're about to commit a potentially destructive action.\n\n# Installation\n\n`ddi` can be installed form the [AUR](https://aur.archlinux.org/packages/ddi-bin/).\n\n    $ paru -S ddi-bin\n    \nOptionally, there's pre-compiled binaries for download on the [release](https://github.com/tralph3/ddi/releases) section.\n\nIf you wish to compile from source, you'll need to install the compiler. Refer [here](https://doc.rust-lang.org/book/ch01-01-installation.html) for instructions. Once that's done, simply clone the repository and build it:\n\n    $ git clone https://github.com/tralph3/ddi.git\n    $ cd ddi\n    $ cargo build --release\n\nThe binary can be found in the `target/release` directory.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrabdancing%2Fddi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrabdancing%2Fddi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrabdancing%2Fddi/lists"}