Giter Site home page Giter Site logo

cyclenerd / toolbox Goto Github PK

View Code? Open in Web Editor NEW
7.0 3.0 3.0 6.59 MB

πŸ”§ Toolbox - Script Collection

License: GNU General Public License v3.0

Perl 1.74% Shell 0.66% Python 0.47% HTML 0.06% HCL 0.52% Jupyter Notebook 96.53% Dockerfile 0.02%
script scripts scripts-collection perl5 perl perl-script perl-scripts

toolbox's Introduction

πŸ”§ 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

Used in Ansible Playbook:

# 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:

curl -O "https://raw.githubusercontent.com/Cyclenerd/toolbox/master/check_replication_status_hc.sh"

XtraBackup

  • xtradir.sh - Run xtrabackup and save either in folder [NUMBER]A or [NUMBER]B.
  • xtracloud.sh - Backup to S3 Bucket with xtrabackup and xbcloud.

Used in Ansible Playbook:

- 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 - Run mydumper and save either in folder [NUMBER]A or [NUMBER]B.

Used in Ansible Playbook:

- 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).

toolbox's People

Contributors

cyclenerd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.