{"id":17383651,"url":"https://github.com/phx/phxutils","last_synced_at":"2025-08-11T05:12:07.983Z","repository":{"id":57307189,"uuid":"446864652","full_name":"phx/phxutils","owner":"phx","description":"shell scripts and shortcuts developed by myself that I use on a regular or semi-regular basis, or that can come in very handy in specific scenarios.","archived":false,"fork":false,"pushed_at":"2024-01-25T05:47:10.000Z","size":136,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-21T09:12:05.079Z","etag":null,"topics":["bash","python","python3","sh","shell","shell-script","shell-scripts","tools","toolset"],"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/phx.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-01-11T14:56:20.000Z","updated_at":"2024-01-29T09:52:40.000Z","dependencies_parsed_at":"2025-04-15T10:20:21.196Z","dependency_job_id":null,"html_url":"https://github.com/phx/phxutils","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/phx/phxutils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phx%2Fphxutils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phx%2Fphxutils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phx%2Fphxutils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phx%2Fphxutils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phx","download_url":"https://codeload.github.com/phx/phxutils/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phx%2Fphxutils/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269832918,"owners_count":24482338,"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-08-11T02:00:10.019Z","response_time":75,"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","python","python3","sh","shell","shell-script","shell-scripts","tools","toolset"],"created_at":"2024-10-16T07:43:23.339Z","updated_at":"2025-08-11T05:12:07.948Z","avatar_url":"https://github.com/phx.png","language":"Shell","readme":"# phxutils\n\nThis is going to be a handy little repo where I maintain some of useful scripts\nthat I use on a regular basis.  I have a private repo where I have maintained\nmost of these scripts for a long time, but some of them could prove useful to the\ngeneral public, and half the time I forget what they do and end up re-writing them.\n\nThis repo will be a place for me to keep them up-to-date and document what they do.\n\nSome aren't even big enough to be called scripts and are more like bash/zsh functions,\nbut it's easier having the commands at my fingertips by having all my tools installed\ninstead of finding/copy/pasting functions into my `~/.bashrc`/`~/.zshrc`.\n\nThe structure includes an individual folder for each script with a `README.md` documenting\nwhat the script does.  Additionally, there will be a `bin` directory where I will symlink\nall of the actual scripts for easy importing into your `$PATH`.\n\nThis project is also maintained on PyPi for easy installation via `pip`.\n\nFor more information, browse to the subfolders to view the individual README files.\n\nI will continue to add scripts to this repo as I have time and as the need for them arises.\n\n## Requirements:\n\nIn order to fully-utilize all of the scripts included in `phxutils`, Linux is a pre-requisite, but many will work on MacOS (some may need to be tweaked a bit).\n\nTo view individual requirements, feel free to view each package's README file.\n\nThe following additional requirements are necessary:\n\n- `/bin/sh` (many scripts)\n- `bash` (some scripts)\n- `python3` (some scripts)\n\n## Simple Installation via pip\n\nInstallation is extremely simple using [`pip`](https://pip.pypa.io/en/stable/installation/):\n\nInstall from [PyPi](https://pypi.org/project/phxutils/):\n\n`pip3 install --user phxutils`\n\nor install latest version from GitHub:\n\n`pip3 install --user git+https://github.com/phx/phxutils`\n\nFor what it's worth, most of the `phxutils` scripts use `sh` and `bash`.\n\nThe only Python scripts at the time of this writing are Python3, and are executable with hashbangs pointing to `/usr/bin/env python3` and only use the standard library.\n\nThis means, you won't clutter your native Python intallation by installing a bunch of third party libraries outside of virtual environments.\n\n### Upgrading via pip\n\n`pip3 install --upgrade --user phxutils`\n\nor\n\n`pip3 install --upgrade --user git+https://github.com/phx/phxutils`\n\n### Uninstall\n\n`pip3 uninstall phxutils`\n\n## Advanced Installation\n\nTo add these programs to your `$PATH` without using `pip3`, I would do something like the following:\n\nNote: replace `.bashrc` with `.zshrc` or `.bash_profile`, etc., as necessary.\n\n```\nmkdir -p \"$HOME/bin\"\ncd \"$HOME/bin\"\ngit clone https://github.com/phx/phxutils\necho 'PHX_UTILS=\"$HOME/bin/phxutils/bin\"' \u003e\u003e ~/.bashrc\necho 'export PATH=\"$PHX_UTILS:$PATH\"' \u003e\u003e ~/.bashrc\nsource ~/.bashrc\n```\n\nThe benefits to this method are an easier upgrade.\n\n### Easy Upgrade via Advanced Install Method\n\n`cd \"$HOME/bin/phxutils\" \u0026\u0026 git pull`\n\n### Uninstall\n\n`sed -i '/PHX_UTILS/d' ~/.bashrc \u0026\u0026 rm -rf \"$HOME/bin/phxutils\"`\n\nNote: replace `.bashrc` with `.zshrc` or `.bash_profile`, etc., as necessary in the above command.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphx%2Fphxutils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphx%2Fphxutils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphx%2Fphxutils/lists"}