{"id":13588049,"url":"https://github.com/slitsevych/bash-misc","last_synced_at":"2025-04-08T02:34:38.427Z","repository":{"id":176502791,"uuid":"239470890","full_name":"slitsevych/bash-misc","owner":"slitsevych","description":"Collection of bash scripts for different purposes","archived":false,"fork":false,"pushed_at":"2020-08-07T10:19:10.000Z","size":40,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-06T07:40:10.752Z","etag":null,"topics":["atom","aws","bash","cpu","linux","logrotate","memory","proxmox","s3","scripts","sh","snap"],"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/slitsevych.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}},"created_at":"2020-02-10T09:15:42.000Z","updated_at":"2020-10-04T21:17:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"c00f62e1-7b67-4831-8a1a-23611455cb33","html_url":"https://github.com/slitsevych/bash-misc","commit_stats":null,"previous_names":["slitsevych/bash-misc"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slitsevych%2Fbash-misc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slitsevych%2Fbash-misc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slitsevych%2Fbash-misc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slitsevych%2Fbash-misc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slitsevych","download_url":"https://codeload.github.com/slitsevych/bash-misc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247765106,"owners_count":20992237,"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":["atom","aws","bash","cpu","linux","logrotate","memory","proxmox","s3","scripts","sh","snap"],"created_at":"2024-08-01T15:06:29.119Z","updated_at":"2025-04-08T02:34:38.193Z","avatar_url":"https://github.com/slitsevych.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"\u003cp\u003e\n\u003cimg width=\"400\" align='center'src=\"https://habrastorage.org/files/803/892/bfe/803892bfe548499aa763df324d40fd01.png\" width=\"100px\"\u003e\n\u003c/p\u003e\n\nA collection of various bash scripts for certain occasions:\n\n\u0026#9881; **atom-ide-clean-cache.sh** - clears all tmp data and allows Atom to start fresh; for me it helps to fix the post-update issues when Atom stops saving tabs and each time opens with empty screen\n\n\u0026#9881; **cpu-memory-checks.sh** - basic linux memory/cpu usage checks against defined threshold\n\n\u0026#9881; **logrotate-webservers-daily.sh** - install linux daily logrotation on nginx/phpfpm webserver (debian/redhat) with ability to send logs to s3\n\n\u0026#9881; **proxmox-change-vmid.sh** - script changing VM ID's on Proxmox VE\n\n\u0026#9881; **send-logs-on-termination-to-s3.sh** - archive all existing logs before instance shutdown/termination and send them to s3\n\n\u0026#9881; **snap-remove-old-packages.sh** - script removing disabled/outdated snap packages: either one by one or all at once\n\n\u0026#9881; **ssh-login-aws.sh** - script facilitating ssh connections to EC2 servers in certain regions and with selected AMI/OS\n\n\u0026#9881; **sudo-as-root-without-pass.sh + root.exp** - script automatically performing `sudo su` command with password inserted by `expect` command\n\n\u0026#9881; **tf-create-module-structure-getopts.sh** - script creating or deleting directory for Terraform module with basic files (main, outputs, variables)\n\n\u0026#9881; **tf-create-module-structure.sh** - the same script as below but without additional getopts functionality\n\n# Notes:\n\n**`/commons`** folder contains useful predefined functions which I've borrowed from the following repo: https://github.com/gruntwork-io/bash-commons\n\nWhen writing bash scripts I tend to comply with the following style guides/cheatsheets:\n* https://google.github.io/styleguide/shell.xml\n* https://devhints.io/bash\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslitsevych%2Fbash-misc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslitsevych%2Fbash-misc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslitsevych%2Fbash-misc/lists"}