{"id":15984032,"url":"https://github.com/aminya/acutepowershell","last_synced_at":"2026-02-21T16:39:46.058Z","repository":{"id":66266841,"uuid":"286865909","full_name":"aminya/AcutePowerShell","owner":"aminya","description":"Various PowerShell scripts","archived":false,"fork":false,"pushed_at":"2026-01-10T07:50:38.000Z","size":52,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-11T02:09:35.525Z","etag":null,"topics":["powershell","pwsh","shell","unix"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","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/aminya.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["aminya"],"polar":"aminya","patreon":"aminya"}},"created_at":"2020-08-11T23:05:37.000Z","updated_at":"2026-01-10T07:50:42.000Z","dependencies_parsed_at":"2024-11-28T13:46:05.318Z","dependency_job_id":null,"html_url":"https://github.com/aminya/AcutePowerShell","commit_stats":{"total_commits":45,"total_committers":1,"mean_commits":45.0,"dds":0.0,"last_synced_commit":"df52fac7fd595b6dc3ad61589cd298e62d8c79c5"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aminya/AcutePowerShell","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aminya%2FAcutePowerShell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aminya%2FAcutePowerShell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aminya%2FAcutePowerShell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aminya%2FAcutePowerShell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aminya","download_url":"https://codeload.github.com/aminya/AcutePowerShell/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aminya%2FAcutePowerShell/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29686798,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T15:51:39.154Z","status":"ssl_error","status_checked_at":"2026-02-21T15:49:03.425Z","response_time":107,"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":["powershell","pwsh","shell","unix"],"created_at":"2024-10-08T02:04:19.922Z","updated_at":"2026-02-21T16:39:46.040Z","avatar_url":"https://github.com/aminya.png","language":"PowerShell","funding_links":["https://github.com/sponsors/aminya","https://polar.sh/aminya","https://patreon.com/aminya"],"categories":[],"sub_categories":[],"readme":"# AcutePowerShell\n\nVarious PowerShell scripts\n\n## Dependencies\n\nInstall starship via winget\n\n```\nwinget install --id Starship.Starship\n```\n\n## Usage:\n\nClone the repository\n\n```ps1\ngit clone https://github.com/aminya/AcutePowerShell\ncd AcutePowerShell\n```\n\nNow run the script:\n\n```ps1\nImport-Module ./index.psm1 -DisableNameChecking\n```\n\n### Add it to your profile:\n\nAfter you cloned the repository, open your profile:\n\n```ps1\nif (!(Test-Path -Path $PROFILE )) { New-Item -Type File -Path $PROFILE -Force }\nnotepad $PROFILE\n```\n\nAppend the script to the profile\n\n```ps1\nImport-Module \"path-you-cloned-the-repo/index.psm1\" -DisableNameChecking\n```\n\n# Commands\n```\nprops\nget\nwhich\nwhichall\nrmrf\nls_size\ndump_bin\nbr\nfind_symlink\nset_symlink_target\nreplace_symlink_target\nabspath\nwget\nbtime\nbenchmark\ngit_rm_merged\ngit_reset\ngit_up\nvideo_replace_audio\nvideo_extract_audio\ncmake_configure\ncmake_build\n```\n\n\n# Documentation\n\nNow the following functions are available in your session:\n\n### Object:\n\n- `props`:\n  properties of an object\n\n```ps1\nobj | props\n```\n\n- `get`:\n  get property of an object\n\n```ps1\nobj | get propname\n```\n\n### Which:\n\n- `which`:\n  list only the first one\n\n```ps1\nwhich clang\n```\n\n- `whichall`:\n  lists all of the programs\n\n```ps1\nwhichall clang\n```\n\n### Symlink:\n\n- `find_symlink`\n  Get the symbolic links in a folder\n\n```ps1\nfind_symlink .\nfind_symlink . --recursive\n```\n\n- `set_symlink_target`\n  Set the target for a symbolic link\n\n```ps1\nset_symlink_target path target\nset_symlink_target ./folder1/mylink ./folder2/mylink\n```\n\n- `replace_symlink_target`\n  Replaces the target of a symbolic link. It replaces the old part of the target with the new part\n\n```ps1\nreplace_symlink_target path old new\nreplace_symlink_target ./folder1/mylink folder1 folder2\n```\n\n### Path:\n\n- `abspath`:\n  [normalize a path](https://stackoverflow.com/questions/495618/how-to-normalize-a-path-in-powershell)\n\n# Benchmark\n\n- `btime`:\n  Benchmark a script and return the time it took.\n  it runs the script once\n\n```ps1\nbtime { node -v }\n```\n\n- `benchmark`:\n  Benchmark a script\n\n```ps1\nbenchmark { node -v }\n```\n\nYou can change the count number by passing a number as the 2nd parameter\n\n```ps1\nbenchmark { node -v } 20\n```\n\n- `Measure-These`:\n\nhttps://www.powershelladmin.com/wiki/PowerShell_benchmarking_module_built_around_Measure-Command\n\n# Git:\n\n- `git_rm_merged`:\n  Remove the merged git branch\n\nGo to the root of the git repo and then:\n\n```ps1\ngit_rm_merged\n```\n\n- `git_reset`:\n  Git fetch and reset --hard\n\n```ps1\ngit_reset\n```\n\nSpecifying repo and branch:\n\n```ps1\ngit_reset(\"upstream\", \"master\")\n```\n\n- `git_up`:\n  rebase current branch with remote branch\n  git_up [remote=upstream] [branch=master]\n\n```ps1\ngit_up\n```\n\n```ps1\ngit_up origin master\n```\n\n# Media\n\n-`video_replace_audio`:\nBatch replace the audio of video files in the current folder\n\n```ps1\nvideo_replace_audio\n```\n\n```ps1\nvideo_replace_audio mp4 mp3\n```\n\n-`video_extract_audio`:\n\nBatch extract the audio of video files in the current folder\n\n```ps1\nvideo_extract_audio\n```\n\n```ps1\nvideo_extract_audio mp4 mp3\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faminya%2Facutepowershell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faminya%2Facutepowershell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faminya%2Facutepowershell/lists"}