Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cyclenerd/toolbox
π§ Toolbox - Script Collection
https://github.com/cyclenerd/toolbox
perl perl-script perl-scripts perl5 script scripts scripts-collection
Last synced: 2 months ago
JSON representation
π§ Toolbox - Script Collection
- Host: GitHub
- URL: https://github.com/cyclenerd/toolbox
- Owner: Cyclenerd
- License: gpl-3.0
- Created: 2017-03-18T17:36:51.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-04-23T08:40:04.000Z (8 months ago)
- Last Synced: 2024-05-01T20:02:44.715Z (8 months ago)
- Topics: perl, perl-script, perl-scripts, perl5, script, scripts, scripts-collection
- Language: Jupyter Notebook
- Homepage:
- Size: 7.48 MB
- Stars: 7
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# π§ Toolbox
My collected scripts for which no extra repository is worth it.
Mostly in Perl.
Maybe they'll help you.
Use at your own risk βΊοΈ.
They were often quickly hacked and poorly tested.π¨π¨π¨ No warranty or support! π¨π¨π¨
## MySQL
* [`check_replication_status.sh`](./check_replication_status.sh) - Check MySQL 8.0 replication status and send email on error
* [`check_replication_status_hc.sh`](./check_replication_status_hc.sh) - Check MySQL 8.0 replication status and ping [healthchecks.io](https://healthchecks.io/)Used in Ansible Playbook:
```yml
# Check MySQL 8.0 replication and ping to healthchecks.io
- name: Script - Check status and ping healthchecks.io
ansible.builtin.get_url:
url: https://raw.githubusercontent.com/Cyclenerd/toolbox/master/check_replication_status_hc.sh
dest: /root/check_replication_status_hc.sh
mode: '0755'
owner: root
group: root
- name: Script - Change healthchecks.io UUID
ansible.builtin.lineinfile:
path: /root/check_replication_status_hc.sh
regexp: '^MY_HC_ID'
line: "MY_HC_ID='{{ healthchecks_uuid }}'"
```Download & Update:
```shell
curl -O "https://raw.githubusercontent.com/Cyclenerd/toolbox/master/check_replication_status_hc.sh"
```## XtraBackup
* [`xtradir.sh`](./xtradir.sh) - Run `xtrabackup` and save either in folder `[NUMBER]A` or `[NUMBER]B`.
* [`xtracloud.sh`](./xtracloud.sh) - Backup to S3 Bucket with `xtrabackup` and `xbcloud`.Used in Ansible Playbook:
```yml
- name: XtraBackup - Download script
ansible.builtin.get_url:
url: https://raw.githubusercontent.com/Cyclenerd/toolbox/master/xtradir.sh
dest: /root/xtradir.sh
mode: '0755'
owner: root
group: root- name: XtraBackup - Change MY_DIR in script
ansible.builtin.lineinfile:
path: /root/xtradir.sh
regexp: '^MY_DIR'
line: "MY_DIR={{ mysql_backup_dir }}"
```## MyDumper
* [`mydumper.sh`](./mydumper.sh) - Run `mydumper` and save either in folder `[NUMBER]A` or `[NUMBER]B`.
Used in Ansible Playbook:
```yml
- name: MyDumper - Download script
ansible.builtin.get_url:
url: https://raw.githubusercontent.com/Cyclenerd/toolbox/master/mydumper.sh
dest: /root/mydumper.sh
mode: '0755'
owner: root
group: root- name: MyDumper - Change MY_DIR in script
ansible.builtin.lineinfile:
path: /root/mydumper.sh
regexp: '^MY_DIR'
line: "MY_DIR={{ mysql_backup_dir }}"
```## License
GNU Public License version 3.
Please feel free to fork and modify this on GitHub (https://github.com/Cyclenerd/toolbox).