{"id":13687394,"url":"https://github.com/wilhelm-murdoch/baste","last_synced_at":"2025-05-01T12:33:35.522Z","repository":{"id":140037201,"uuid":"419989072","full_name":"wilhelm-murdoch/baste","owner":"wilhelm-murdoch","description":"A paste bin tool written in Bash.","archived":false,"fork":false,"pushed_at":"2021-11-08T14:25:45.000Z","size":39,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-08-03T15:06:29.116Z","etag":null,"topics":["bash","bashly","devops","devops-tools","gist"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wilhelm-murdoch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"ko_fi":"devilmaycode"}},"created_at":"2021-10-22T06:24:11.000Z","updated_at":"2022-12-01T22:53:45.000Z","dependencies_parsed_at":"2024-01-14T15:21:47.427Z","dependency_job_id":"d9f79f06-4e18-4255-9d55-eeac96fe8b24","html_url":"https://github.com/wilhelm-murdoch/baste","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wilhelm-murdoch%2Fbaste","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wilhelm-murdoch%2Fbaste/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wilhelm-murdoch%2Fbaste/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wilhelm-murdoch%2Fbaste/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wilhelm-murdoch","download_url":"https://codeload.github.com/wilhelm-murdoch/baste/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224257615,"owners_count":17281748,"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":["bash","bashly","devops","devops-tools","gist"],"created_at":"2024-08-02T15:00:54.054Z","updated_at":"2024-11-12T10:31:08.601Z","avatar_url":"https://github.com/wilhelm-murdoch.png","language":"Shell","funding_links":["https://ko-fi.com/devilmaycode"],"categories":["devops"],"sub_categories":[],"readme":"# baste\n\n`baste` is a paste bin tool written in Bash for quickly creating Gists.\n\n## Requirements\n\nBefore you begin using `baste`, you will need the following installed on your machine:\n\n1. A personal development token which can be sourced [here](https://github.com/settings/tokens).\n2. `curl`\n3. `git`\n4. `jq`\n5. `xclip` if you're using Linux. If you're using MacOS, `baste` will use `pbpaste` which is included by default.\n\n## Installation\n\nThe command is completely self-contained in a single Bash script. Drop it in your system's `$PATH` and you're good to go. In the following example, we're saving it directly to `/usr/local/bin/baste`:\n\n```bash\n$ curl -s https://git.io/JiqBi \u003e /usr/local/bin/baste\n$ chmod a+x /usr/local/bin/baste \n$ baste --help\nbaste - A paste bin tool written in Bash for quickly creating Gists.\n\nUsage:\n  baste [options]\n  baste --help | -h\n  baste --version | -v\n\nOptions:\n  --help, -h\n    Show this help\n\n  --version, -v\n    Show version number\n\n  --description, -d DESCRIPTION\n    A brief description of your Gist.\n\n  --name, -n NAME\n    The file name of your Gist.\n    Default: gistfile1\n\n  --content, -c CONTENT\n    The content of your Gist.\n\n  --public, -p\n    Determines whether your Gist will be public or private.\n\n  --clipboard, --clip\n    Attempts to use the latest entry in your local clipboard as content for your\n    Gist. If using MacOS, an attempt to use pbpaste will be made. Otherwise,\n    xclip will be used.\n\n  --skip-short-url\n    Resulting Gist URLs are shortened by default using git.io. This flag will\n    skip this entirely and provide the full URL.\n\n  --file, -f FILE\n    A path to the file to upload to Gist.\n\n  --extension, -e EXTENSION\n    The file extension of the Gist. \n    Default: txt\n\n  --token, -t TOKEN\n    Explicitly specific a personal developer token as an alternative to using\n    the GITHUB_TOKEN environmental variable.\n\nEnvironment Variables:\n  GITHUB_TOKEN\n    A personal developer token associated with your Github account. You can\n    easily create a new one in the \"Developer Settings\" page under your\n    account settings. The only permission scope you will need is \"gist\" in\n    order to create new Gists.\n\nExamples:\n  base --file /path/to/file.txt\n  baste --content '... code ...'\n  baste --name 'README.md' --content '# My Readme' --public\n  cat /path/to/file | baste\n  baste --clipboard\n```\n    \n## Building \u0026 Contributing\n\nThis tool is written in Bash, but built with [Bashly](https://bashly.dannyb.co/). Perform the following steps to begin developing locally:\n\n1. Install Bashly locally with `gem install bashly`.\n2. Clone this repository with `git@github.com:wilhelm-murdoch/baste.git`.\n3. Modify the tool's command configuration in `src/bashly.yml`.\n4. Run `bashly g` from the root of this project to stub out any new commands or update any help documentation.\n5. Start coding your new command from the stubbed Bash script in `src/*_command.sh`.\n6. Run `bashly g` every time you wish to test your progress as Bashly consolidates all changes to the `dq` script located at the root of this project.\n\nContributions are always welcome. Just create a PR and remember to be nice.\n\n## Acknowledgements\n\nThis stupid little tool couldn't be possible without the following projects:\n\n - [Bashly](https://bulldogjob.com/news/449-how-to-write-a-good-readme-for-your-github-project)\n - [readme.so](https://readme.so/)\n\n## License\n\n[Unlicense](https://choosealicense.com/licenses/unlicense/)\n\n  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilhelm-murdoch%2Fbaste","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwilhelm-murdoch%2Fbaste","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilhelm-murdoch%2Fbaste/lists"}