{"id":13475423,"url":"https://github.com/ok-borg/borg","last_synced_at":"2025-12-16T00:09:16.603Z","repository":{"id":40637052,"uuid":"67892585","full_name":"ok-borg/borg","owner":"ok-borg","description":"Search and save shell snippets without leaving your terminal","archived":true,"fork":false,"pushed_at":"2018-02-07T19:40:06.000Z","size":30263,"stargazers_count":1610,"open_issues_count":14,"forks_count":57,"subscribers_count":37,"default_branch":"master","last_synced_at":"2025-09-18T18:00:03.171Z","etag":null,"topics":["bash","command-line-tool","snippets"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ok-borg.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}},"created_at":"2016-09-10T20:20:42.000Z","updated_at":"2025-08-10T16:10:55.000Z","dependencies_parsed_at":"2022-09-03T23:51:08.046Z","dependency_job_id":null,"html_url":"https://github.com/ok-borg/borg","commit_stats":null,"previous_names":["crufter/borg"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/ok-borg/borg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ok-borg%2Fborg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ok-borg%2Fborg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ok-borg%2Fborg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ok-borg%2Fborg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ok-borg","download_url":"https://codeload.github.com/ok-borg/borg/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ok-borg%2Fborg/sbom","scorecard":{"id":703862,"data":{"date":"2025-08-11","repo":{"name":"github.com/ok-borg/borg","commit":"7b577fd417884a6c26eeb42b23d16a89f5a7dd45"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":4,"reason":"Found 6/15 approved changesets -- score normalized to 4","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"project is archived","details":["Warn: Repository is archived."],"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.0.3 not signed: https://api.github.com/repos/ok-borg/borg/releases/5738446","Warn: release artifact v0.0.2 not signed: https://api.github.com/repos/ok-borg/borg/releases/4362817","Warn: release artifact v0.0.1 not signed: https://api.github.com/repos/ok-borg/borg/releases/4158761","Warn: release artifact v0.0.3 does not have provenance: https://api.github.com/repos/ok-borg/borg/releases/5738446","Warn: release artifact v0.0.2 does not have provenance: https://api.github.com/repos/ok-borg/borg/releases/4362817","Warn: release artifact v0.0.1 does not have provenance: https://api.github.com/repos/ok-borg/borg/releases/4158761"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 22 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-22T05:54:36.878Z","repository_id":40637052,"created_at":"2025-08-22T05:54:36.878Z","updated_at":"2025-08-22T05:54:36.878Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276869244,"owners_count":25719082,"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","status":"online","status_checked_at":"2025-09-25T02:00:09.612Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["bash","command-line-tool","snippets"],"created_at":"2024-07-31T16:01:20.248Z","updated_at":"2025-09-29T17:31:19.060Z","avatar_url":"https://github.com/ok-borg.png","language":"Go","readme":"\u003cp align=\"center\"\u003e\u003cimg height=\"180px\" width=\"180px\" src=\"https://github.com/fabric-8/borg/raw/master/assets/borg_mascot.png\" alt=\"\"\u003e\u003c/p\u003e\n\nBORG – Search and save shell snippets without leaving your terminal \n===\n![cruft guaranteed](https://img.shields.io/badge/cruft-guaranteed-green.svg) [![Travis CI](https://api.travis-ci.org/ok-borg/borg.svg?branch=master)](https://travis-ci.org/ok-borg/borg) [![Go Report Card](https://goreportcard.com/badge/github.com/ok-borg/borg)](https://goreportcard.com/report/github.com/ok-borg/borg) [![Slack Status](http://ok-b.org:1492/badge.svg)](http://ok-b.org:1492)\n\nBorg was built out of the frustration of having to leave the terminal to search and click around for bash snippets.\nGlance over multiple snippets quickly with Borg's succinct output.\n\nPLEASE READ: The website (https://ok-b.org) is down, because I didn't have time to maintain it.\nYou can host borg yourself, and we plan to resurrect the version hosted by us on 1backend (https://github.com/1backend/1backend).\nThe ETA for this is a couple of months.\n\n### Search\n\n```\nborg \"list only files\"\n```\n\n```shell\n(1) Bash: How to list only files?\n        [a] find . -maxdepth 1 -type f\n        [b] ls -l | egrep -v '^d'\n            ls -l | grep -v '^d'\n\n(2) List only common parent directories for files\n        [a] # read a line into the variable \"prefix\", split at slashes\n            IFS=/ read -a prefix\n            # while there are more lines, one after another read them into \"next\",\n            # also split at slashes\n            while IFS=/ read -a next; do\n                new_prefix=()\n                # for all indexes in prefix\n                for ((i=0; i \u003c \"${#prefix[@]}\"; ++i)); do\n                    # if the word in the new line matches the old one\n                    if [[ \"${prefix[i]}\" == \"${next[i]}\" ]]; then\n        ...\n```\n\nUse `borg pipeto less` to pipe the results straight to `less` (or another program).\n\nCan't find what you are looking for? Be a good hacker and contribute your wisdom to the hive mind by [tweaking existing snippets and adding your own](https://github.com/ok-borg/borg/tree/master/docs).\n\n### Install\n\nThe following releases only let you search snippets. To add or edit snippets, install from source. Releases are coming soon.\n\n```\nbrew install borg\n```\n\nFor Linux, download [a release](https://github.com/ok-borg/borg/releases) manually:\n\n```\nwget https://github.com/ok-borg/borg/releases/download/v0.0.3/borg_linux_amd64 -O /usr/local/bin/borg\nchmod 755 /usr/local/bin/borg\n```\n\nSame for Mac:\n\n```\nwget https://github.com/ok-borg/borg/releases/download/v0.0.3/borg_darwin_amd64 -O /usr/local/bin/borg\nchmod 755 /usr/local/bin/borg\n```\n\n### Rate results: `worked`\n\nWhen a result works for you, use the `worked` command to give feedback:\n\n```\nborg worked 12\n```\n\nThis will rank the result higher for similar queries—especially helpful when a good result was buried in the search results.\n\n### Advanced usage\n\nFor more commands and their explanations, please see [advanced usage](https://github.com/ok-borg/borg/tree/master/docs).\n\n### How does borg work?\n\nThe client connects to a server at [ok-b.org](https://ok-b.org/). You can host your own server too (see daemon folder), though self-hosting will become less appealing once people start contributing their own content to the database.\n\n### UI explanation\n\n- `()` denotes hits for your query\n- `[]` denotes snippets found for a given query\n- `...` under a `[]` means more lines to display (use the `-f` flag for full display, see more about usage below)\n\n### Credits\n\nThe borg mascot has been delivered to you by the amazing [Fabricio Rosa Marques](https://dribbble.com/fabric8).\n\n### Community\n\n- Use the [dockerized borg client](https://github.com/juhofriman/borg-docker) if you don't want to install anything on your host!\n","funding_links":[],"categories":["Go","Development","Command-Line Productivity","bash","Go Tools","Other Software"],"sub_categories":["Snippets Manager","Other Software"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fok-borg%2Fborg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fok-borg%2Fborg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fok-borg%2Fborg/lists"}