{"id":25526251,"url":"https://github.com/exbotanical/shcripts","last_synced_at":"2026-04-13T03:02:59.260Z","repository":{"id":54870292,"uuid":"313149757","full_name":"exbotanical/shcripts","owner":"exbotanical","description":"Myriad shell scripts for everything and anything","archived":false,"fork":false,"pushed_at":"2022-08-13T20:39:33.000Z","size":106,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-03-04T10:26:28.313Z","etag":null,"topics":["bash","linux","productivity-tools","sed","shell-scripts","useful-scripts"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/exbotanical.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":"2020-11-16T00:11:44.000Z","updated_at":"2022-08-13T20:39:12.000Z","dependencies_parsed_at":"2022-08-14T05:20:10.079Z","dependency_job_id":null,"html_url":"https://github.com/exbotanical/shcripts","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exbotanical%2Fshcripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exbotanical%2Fshcripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exbotanical%2Fshcripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exbotanical%2Fshcripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/exbotanical","download_url":"https://codeload.github.com/exbotanical/shcripts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239735256,"owners_count":19688262,"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","linux","productivity-tools","sed","shell-scripts","useful-scripts"],"created_at":"2025-02-19T21:17:05.229Z","updated_at":"2026-04-13T03:02:59.173Z","avatar_url":"https://github.com/exbotanical.png","language":"Shell","readme":"# Bash Utils\n\n```\nAuthor: Matthew T Zito (goldmund)\nLicense: MIT\n```\n\n## Table of Contents\n\n- [Inventory](#enum)\n  - [Productivity](#prod)\n  - [Git Hooks](#hooks)\n  - [Logging](#log)\n  - [Configuration](#conf)\n  - [Utility](#util)\n  - [Misc](#misc)\n- [Installation \u0026 Usage](#use)\n\n### \u003ca name=\"enum\"\u003e\u003c/a\u003e Inventory\n\n##### \u003ca name=\"prod\"\u003e\u003c/a\u003e Productivity\n\n* `git_bootstrap` - bootstrap a new git repository with .gitignore and README files\n* `bash_bootstrap` - bootstrap a new bash script with a formatted header, add execute permissions, launch in text editor\n* `docker_clean` - stop all running processes for given Docker images; remove them, purge all resulting dangling images and volumes\n* `mkalias` - create permanent aliases; adds a *.mkalias.conf* file to user's home dir and sources it in user's bash runtime config. all aliases are stored in *.mkalias.conf*\n\n##### \u003ca name=\"hooks\"\u003e\u003c/a\u003e Git Hooks\n\n* `no-env` - catch .env files in the staging area and prevent them from being included in your git commits. includes installer script\n\n##### \u003ca name=\"log\"\u003e\u003c/a\u003e Logging\n\n* `print_log_events` - print from a given log file only those events executed by the current user\n\n##### \u003ca name=\"conf\"\u003e\u003c/a\u003e Configuration\n\n* `flush_iptables` - flush all firewall rules, tables, chains, and mangles\n* `enable_port_fwd` - enables port forwarding\n* `edit_hosts` - Add or remove a line to/from /etc/hosts by IP \u0026 hostname (run as root)\n\n##### \u003ca name=\"util\"\u003e\u003c/a\u003e Utility Scripts\n\n* `intconv` - convert a binary or hexadecimal value to decimal\n* `fp` - functional programming utils for bash\n* `kill_port` - kill the process listening on a given port\n* `shutil` - ultimate utilities sourceable\n\n##### \u003ca name=\"misc\"\u003e\u003c/a\u003e Miscellaneous\n\n### \u003ca name=\"use\"\u003e\u003c/a\u003e Installation \u0026 Usage\n\n**Download:** `curl -O https://raw.githubusercontent.com/exbotanical/shcripts/master/scripts/\u003cscript_name.bash\u003e`\n\n##### no-env | Keep .env files out of your git history\nThis package includes a pre-commit hook and an installer script. Once installed, the hook executes *before* you make a git commit; it parses the staging area for any `.env` files. If a `.env` file is found, the commit will be aborted and you'll be notified.\n\nAt this point, you may want to include the `.env` file(s) in your `.gitignore`. If you wish to commit the file(s) anyway, you can bypass the hook with `git commit --no-verify` *or* you can set the option `git config hooks.allowenv true` - the script will then ignore `.env` files until set to `false`.\n\n**Instructions:**\n1. Download the hook \u0026 installer to your repository root:\n`curl -O \"https://raw.githubusercontent.com/exbotanical/shcripts/master/hooks/no-env/{no-env.sh,installer}\"`\n2. Add execute permissions to the installer:\n`chmod u+rx installer`\n3. Execute the installer:\n`./installer`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexbotanical%2Fshcripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexbotanical%2Fshcripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexbotanical%2Fshcripts/lists"}