{"id":13342481,"url":"https://github.com/chkatsaros/wsl-scripts","last_synced_at":"2025-03-12T01:37:17.943Z","repository":{"id":41051201,"uuid":"462889666","full_name":"chkatsaros/wsl-scripts","owner":"chkatsaros","description":"A bunch of custom scripts for my WSL setup through various computers.","archived":false,"fork":false,"pushed_at":"2022-07-20T10:43:00.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2024-10-24T12:12:43.518Z","etag":null,"topics":["bash","bash-script","bash-scripting","bashrc","configuration","scripts","shell-script","wsl","wsl2"],"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/chkatsaros.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}},"created_at":"2022-02-23T20:08:50.000Z","updated_at":"2022-07-20T10:06:50.000Z","dependencies_parsed_at":"2022-09-03T23:23:28.151Z","dependency_job_id":null,"html_url":"https://github.com/chkatsaros/wsl-scripts","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/chkatsaros%2Fwsl-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chkatsaros%2Fwsl-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chkatsaros%2Fwsl-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chkatsaros%2Fwsl-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chkatsaros","download_url":"https://codeload.github.com/chkatsaros/wsl-scripts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243141286,"owners_count":20242815,"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-script","bash-scripting","bashrc","configuration","scripts","shell-script","wsl","wsl2"],"created_at":"2024-07-29T19:29:30.114Z","updated_at":"2025-03-12T01:37:17.652Z","avatar_url":"https://github.com/chkatsaros.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wsl-scripts\nA bunch of custom scripts for my WSL setup through various computers.\n\n## cloc-git \n\n### Description\n\n**cloc-git** is a tool to count the lines and the different types of files from a given git repository. In order to use it, please make sure you have \u003ccode\u003ecloc\u003c/code\u003e already installed in your system. You can install it by: \u003ccode\u003esudo apt install cloc -y\u003c/code\u003e \u003cbr/\u003e\n\n### How to execute\n\n- \u003ccode\u003ecloc-git {https-from-git-repo}\u003c/code\u003e\n\n## shut\n\n### Description\n\n**shut** is a script that utilizes the \u003ccode\u003eshutdown.exe\u003c/code\u003e windows command in order to shutdown the computer after given minutes. If the minutes given are less than zero the shutdown process is canceled. If no argument is given an error message appears. \n\n### How to execute\n\n- Shutdown the computer in 10 minutes: \u003ccode\u003eshut 10\u003c/code\u003e\n- Cancel previously set shutdown: \u003ccode\u003eshut -1\u003c/code\u003e\n\n## reboot\n\n### Description\n\n**reboot** is a script that utilizes the \u003ccode\u003eshutdown.exe\u003c/code\u003e windows command in order to reboot the computer after given minutes. If the minutes given are less than zero the reboot process is canceled. If no argument is given the computer starts rebooting. \n\n### How to execute\n\n- Reboot the computer: \u003ccode\u003ereboot\u003c/code\u003e\n- Reboot the computer in 10 minutes: \u003ccode\u003ereboot 10\u003c/code\u003e\n- Cancel previously set reboot: \u003ccode\u003ereboot -1\u003c/code\u003e\n\n## delete-branches\n\n### Description\n\n**delete-branches** is a script that deletes all *local* branches except of \"master\" branch. Be careful when using **delete-branches** as it uses force delete to delete branches. \n\n### How to execute\n\n- Inside the repository directory: \u003ccode\u003edelete-branches\u003c/code\u003e\n\n## git-merger\n\n### Description\n\n**git-merger** is a script that merges all *local* branches - except of \"master\" itself - with the \"master\" branch. The main case of usage is when the user executes a git pull while in the \"master\" branch and wants to also update the local branches accordingly. \n\n### How to execute\n\n- Inside the repository directory: \u003ccode\u003egit-merger\u003c/code\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchkatsaros%2Fwsl-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchkatsaros%2Fwsl-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchkatsaros%2Fwsl-scripts/lists"}