Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/slitsevych/bash-misc
Collection of bash scripts for different purposes
https://github.com/slitsevych/bash-misc
atom aws bash cpu linux logrotate memory proxmox s3 scripts sh snap
Last synced: about 2 months ago
JSON representation
Collection of bash scripts for different purposes
- Host: GitHub
- URL: https://github.com/slitsevych/bash-misc
- Owner: slitsevych
- Created: 2020-02-10T09:15:42.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-07T10:19:10.000Z (over 4 years ago)
- Last Synced: 2024-08-02T16:08:55.946Z (5 months ago)
- Topics: atom, aws, bash, cpu, linux, logrotate, memory, proxmox, s3, scripts, sh, snap
- Language: Shell
- Homepage:
- Size: 39.1 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
A collection of various bash scripts for certain occasions:
⚙ **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
⚙ **cpu-memory-checks.sh** - basic linux memory/cpu usage checks against defined threshold
⚙ **logrotate-webservers-daily.sh** - install linux daily logrotation on nginx/phpfpm webserver (debian/redhat) with ability to send logs to s3
⚙ **proxmox-change-vmid.sh** - script changing VM ID's on Proxmox VE
⚙ **send-logs-on-termination-to-s3.sh** - archive all existing logs before instance shutdown/termination and send them to s3
⚙ **snap-remove-old-packages.sh** - script removing disabled/outdated snap packages: either one by one or all at once
⚙ **ssh-login-aws.sh** - script facilitating ssh connections to EC2 servers in certain regions and with selected AMI/OS
⚙ **sudo-as-root-without-pass.sh + root.exp** - script automatically performing `sudo su` command with password inserted by `expect` command
⚙ **tf-create-module-structure-getopts.sh** - script creating or deleting directory for Terraform module with basic files (main, outputs, variables)
⚙ **tf-create-module-structure.sh** - the same script as below but without additional getopts functionality
# Notes:
**`/commons`** folder contains useful predefined functions which I've borrowed from the following repo: https://github.com/gruntwork-io/bash-commons
When writing bash scripts I tend to comply with the following style guides/cheatsheets:
* https://google.github.io/styleguide/shell.xml
* https://devhints.io/bash