{"id":18778315,"url":"https://github.com/ajsalemo/script_utils","last_synced_at":"2026-04-13T04:34:18.774Z","repository":{"id":103501134,"uuid":"328750429","full_name":"Ajsalemo/script_utils","owner":"Ajsalemo","description":"Bash scripts to speed up repetitive tasks.","archived":false,"fork":false,"pushed_at":"2021-01-17T21:59:14.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-24T18:28:59.885Z","etag":null,"topics":["automation","azure","azure-container-registry","bash","deploy","deployment","docker","git","linux","linux-shell","linux-shellcode","script","shell","shell-script","terminal"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Ajsalemo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2021-01-11T18:05:51.000Z","updated_at":"2021-01-20T02:20:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"146e34df-9e88-4744-8ad6-602de6faaac1","html_url":"https://github.com/Ajsalemo/script_utils","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Ajsalemo/script_utils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ajsalemo%2Fscript_utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ajsalemo%2Fscript_utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ajsalemo%2Fscript_utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ajsalemo%2Fscript_utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ajsalemo","download_url":"https://codeload.github.com/Ajsalemo/script_utils/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ajsalemo%2Fscript_utils/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31740266,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T03:27:07.512Z","status":"ssl_error","status_checked_at":"2026-04-13T03:26:53.610Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["automation","azure","azure-container-registry","bash","deploy","deployment","docker","git","linux","linux-shell","linux-shellcode","script","shell","shell-script","terminal"],"created_at":"2024-11-07T20:15:53.278Z","updated_at":"2026-04-13T04:34:18.743Z","avatar_url":"https://github.com/Ajsalemo.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# script_utils\nBash scripts to condense and/or automate repititive local tasks.\n\u003cbr\u003e\n\n----\n\n### docker_make_utils.sh\nA script made to automate the task of building, tagging and pushing local Docker images to Azure Container Registry(ACR).\n\u003cbr\u003e\n#### Usage\n```\u003ccommand\u003e options [parameters]```\u003cbr\u003e\n```-h``` | ```--help``` - show help \n\nExample. ```bash docker_make_utils.sh mycontainerregistry helloworld```\nThis is the equivalent to: \u003cbr\u003e\n```docker build -t helloworld . ```\u003cbr\u003e\n```docker tag helloworld mycontainerregistry.azurecr.io/helloworld:latest```\u003cbr\u003e\n```docker push mycontainerregistry.azurecr.io/helloworld:latest```\n\n\u003cb\u003eNote:\u003c/b\u003e If omitting the tag for the image, this will default to latest. A tag can be supplied as the 3rd argument, as seen in an example below: \u003cbr\u003e\n```bash docker_make_utils.sh mycontainerregistry helloworld v1``` \u003cbr\u003e\nThis is the equivalent to: \u003cbr\u003e\n```docker build -t helloworld . ```\u003cbr\u003e\n```docker tag helloworld mycontainerregistry.azurecr.io/helloworld:v1```\u003cbr\u003e\n```docker push mycontainerregistry.azurecr.io/helloworld:v1```\n\u003cbr\u003e\n\u003cbr\u003e\n\u003cb\u003eNote:\u003c/b\u003e You must still log in with either AZ CLI and run ```docker login``` before pushing to the container registry for the first time, if not authenticated already. \u003cbr\u003e \n\u003cb\u003eTip:\u003c/b\u003e Bash scripts can be aliased locally - by editing the ```.bashrc``` file and adding the script location to your PATH to run this globally. Doing so then can have the script be run in the following manner(where ```dutils``` is the alias name): ```dutils mycontainerregistry helloworld v1```\n\n\u003cbr\u003e\n\n----\n### git_push_utils.sh\nA script made to automate pushing git commits.\n\u003cbr\u003e\n#### Usage\n```\u003ccommand\u003e options [parameters]```\u003cbr\u003e\n```-h``` | ```--help``` - show help \u003cbr\u003e\nThe command requires a minimum of two arguments, which is the commit message(arg: 1) and upstream repo(arg: 2). Omitting the third argument which is the branch(arg: 3) will default to 'main'.\n\nExample: ```bash git_push_utils.sh 'my first commit' origin```\nThis is the equivalent to: \u003cbr\u003e\n```git add . ```\u003cbr\u003e\n```git commit -m 'my first commit'```\u003cbr\u003e\n```git push origin main```\n\n\u003cb\u003eNote\u003c/b\u003e: The commit message must be in a string unless using only a single word for the commit message.\n\nHow it looks when specifying a branch. Example: ```bash git_push_utils.sh 'my first commit' origin dev```\nThis is the equivalent to: \u003cbr\u003e\n```git add . ```\u003cbr\u003e\n```git commit -m 'my first commit'```\u003cbr\u003e\n```git push origin dev```\n\u003cbr\u003e\n\u003cbr\u003e\nAs mentioned above, this script can be aliased within your ```.bashrc``` and script location added to your PATH so it can be executed globally. \u003cbr\u003e\nAliased example, where ```gutils``` is the script alias name: ```gutils 'initial commit' origin testing```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajsalemo%2Fscript_utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fajsalemo%2Fscript_utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajsalemo%2Fscript_utils/lists"}