{"id":21900874,"url":"https://github.com/phts/bin","last_synced_at":"2026-04-13T01:13:10.054Z","repository":{"id":72736840,"uuid":"121752795","full_name":"phts/bin","owner":"phts","description":"My set of useful scripts","archived":false,"fork":false,"pushed_at":"2023-12-26T21:02:50.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-27T06:32:14.026Z","etag":null,"topics":["bash","bin"],"latest_commit_sha":null,"homepage":null,"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/phts.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}},"created_at":"2018-02-16T13:17:41.000Z","updated_at":"2023-12-26T21:02:54.000Z","dependencies_parsed_at":"2024-11-28T15:11:14.093Z","dependency_job_id":null,"html_url":"https://github.com/phts/bin","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/phts%2Fbin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phts%2Fbin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phts%2Fbin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phts%2Fbin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phts","download_url":"https://codeload.github.com/phts/bin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244913330,"owners_count":20530817,"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","bin"],"created_at":"2024-11-28T15:11:09.190Z","updated_at":"2026-04-13T01:13:05.012Z","avatar_url":"https://github.com/phts.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bin\n\nMy set of useful scripts.\n\n## Installation\n\nUsually should be cloned to `$HOME/bin` user's directory and added to path.\n\n### On Linux\n\nDebian should include `$HOME/bin` folder to path out of the box.\n\nIf not then add this line to `.profile` file:\n\n```\nPATH=\"$HOME/bin:$PATH\"\n```\n\n### On Windows\n\nAppend absolute path to `bin` folder to `Path` variable in _Control Panel_ → _System_.\n\n## Highlights\n\n### Run SSH agent on Windows\n\nAdd file `~/.bashrc` with the following content:\n\n```\n# Add alias for ssh-agent-connect script from ~/bin repo\nalias sac='source ssh-agent-connect'\n\n# Try to connect to ssh-agent to have `ssh-add` working in every bash window\nsac\n```\n\nNow every time when open a new bash window it will try to connect to ssh-agent.\n\nIf ssh-agent is not started yet it has to be started:\n\n```\nssh-agent-start\n```\n\nThen `ssh-add` will work in new bash windows. To make it work in the current bash window you need to execute `sac` or `source ssh-agent-connect` and the current session will connect to ssh-agent successfully.\n\nI tested this only for a terminal emulator provided by [Git for Windows](https://git-scm.com/) package.\n\n### \"Disable user input\" and \"Turn off monitor\" features for TeamViewer on Debian\n\n`teamviewer-always-disable-user-input.sh` script automatically detects TeamViewer active session and turns off monitors and optionally disables mouse/keyboard.\n\nAdd this line to `~/.profile` file:\n\n```\n~/bin/teamviewer-always-disable-user-input.sh --no-devices \u0026\n```\n\nThis scripts is just watching for a TeamViewer sessions and executes another script `teamviewer-disable-user-input.sh` which does the trick.\n\nAlso it is possible to disable input devices (e.g. mouse or keyboard) together with monitors by passing device IDs to the script.\n\nWhen TeamViewer session ends the script [locks user](https://www.jwz.org/xscreensaver/man1.html).\n\nJust in case there is a script `teamviewer-recover-devices.sh` which recovers monitors and input devices if something went wrong.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphts%2Fbin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphts%2Fbin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphts%2Fbin/lists"}