{"id":19656867,"url":"https://github.com/daggerok/bash-functions","last_synced_at":"2026-05-01T23:33:59.926Z","repository":{"id":151041436,"uuid":"110749424","full_name":"daggerok/bash-functions","owner":"daggerok","description":"This repository primarily contains my bash (fish) helper functions which I'm using in my daily work or to simplify some jobs with shell script for example testing on Travis CI, etc...","archived":false,"fork":false,"pushed_at":"2019-05-21T18:24:22.000Z","size":122,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-10T00:46:11.642Z","etag":null,"topics":["bash","bash-hacks","bash-script","bash-scripting","fish","gradle","shell","shell-script","travis","travis-ci"],"latest_commit_sha":null,"homepage":null,"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/daggerok.png","metadata":{"files":{"readme":"README.adoc","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":"2017-11-14T21:55:09.000Z","updated_at":"2019-05-21T18:24:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"bf4023f3-2721-4f92-b45d-16537f0c7049","html_url":"https://github.com/daggerok/bash-functions","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/daggerok%2Fbash-functions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daggerok%2Fbash-functions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daggerok%2Fbash-functions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daggerok%2Fbash-functions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daggerok","download_url":"https://codeload.github.com/daggerok/bash-functions/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240964936,"owners_count":19885832,"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","bash-hacks","bash-script","bash-scripting","fish","gradle","shell","shell-script","travis","travis-ci"],"created_at":"2024-11-11T15:29:09.526Z","updated_at":"2026-05-01T23:33:59.919Z","avatar_url":"https://github.com/daggerok.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"= bash-functions image:https://github.com/daggerok/bash-functions/actions/workflows/ci.yml/badge.svg[\"Build Status\", link=\"https://github.com/daggerok/bash-functions/actions/workflows/ci.yml\"]\nThis repository primarily contains my bash (fish) helper functions which I'm using in my daily work\nor to simplify some jobs with shell script for example testing on Travis CI, etc...\n\nnote: expecting use sudeo without password prompt...\n\n.build\n[source,bash]\n----\n./gradlew clean build\n----\n\n.usage\n[source,bash]\n----\n# install: curl bash sudo lsof...\n# apt-get install -y --no-install-recommends curl bash sudo lsof\n# yum install -y ....\n\n# import function into your bash shell\nsource \u003c(curl -s https://raw.githubusercontent.com/daggerok/bash-functions/master/main.bash)\n\n# use any function (read next)\n----\n\n== available functions\n\n__Yeah, by default I love sudo, sorry for that (:__\n\n=== stop_any\n\n.1.1. link:https://raw.githubusercontent.com/daggerok/bash-functions/master/src/stop_any.bash[kill any services by port number]\n[source,bash]\n----\nsource \u003c(curl -s https://raw.githubusercontent.com/daggerok/bash-functions/master/src/stop_any.bash)\nstop_any 22 80\n----\n\n.1.2. link:https://raw.githubusercontent.com/daggerok/bash-functions/master/src/sudo_stop_any.bash[using sudo - same as previous: kill any services by port number]\n[source,bash]\n----\nsource \u003c(curl -s https://raw.githubusercontent.com/daggerok/bash-functions/master/src/sudo_stop_any.bash)\nsudo_stop_any 22 80\n----\n\n.1.3. link:https://raw.githubusercontent.com/daggerok/bash-functions/master/src/non_sudo_stop_any.bash[non sudo kill any services by port number]\n[source,bash]\n----\nsource \u003c(curl -s https://raw.githubusercontent.com/daggerok/bash-functions/master/src/non_sudo_stop_any.bash)\nnon_sudo_stop_any 10022 10080\n----\n\n=== wait_for\n\n.2.1. link:https://raw.githubusercontent.com/daggerok/bash-functions/master/src/wait_for.bash[wait for all services (order does matter)]\n[source,bash]\n----\nsource \u003c(curl -s https://raw.githubusercontent.com/daggerok/bash-functions/master/src/wait_for.bash)\nwait_for 22 80\n----\n\n.2.2. link:https://raw.githubusercontent.com/daggerok/bash-functions/master/src/sudo_wait_for.bash[using sudo - same as previous: wait for all services (order does matter)]\n[source,bash]\n----\nsource \u003c(curl -s https://raw.githubusercontent.com/daggerok/bash-functions/master/src/sudo_wait_for.bash)\nsudo_wait_for 22 80\n----\n\n.2.3. link:https://raw.githubusercontent.com/daggerok/bash-functions/master/src/non_sudo_wait_for.bash[non sudo wait for all services]\n[source,bash]\n----\nsource \u003c(curl -s https://raw.githubusercontent.com/daggerok/bash-functions/master/src/non_sudo_wait_for.bash)\nnon_sudo_wait_for 10022 10080\n----\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaggerok%2Fbash-functions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaggerok%2Fbash-functions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaggerok%2Fbash-functions/lists"}