Skip to content

Instantly share code, notes, and snippets.

View bramby6's full-sized avatar
💭
Upgrading......

B. B. Restu bramby6

💭
Upgrading......
View GitHub Profile
@bramby6
bramby6 / mariadb-script.md
Last active October 18, 2025 02:53
MariaDB Multi Basic Script

MaridDB Multi Basic Script

  1. Backup db

    mariadb-dump -u sirius -p --socket=/var/run/mysqld/mysqldN.sock --skip-ssl database | pv > N.sql 
    

    or

    mariadb-dump -u sirius -p --socket=/var/run/mysqld/mysqldN.sock --all-databases --ignore-database=mysql | pv > N.sql
    
@bramby6
bramby6 / docker-api-port.md
Last active May 8, 2023 12:44 — forked from styblope/docker-api-port.md
Enable TCP port 2375 for external connection to Docker

Enable TCP port 4243 for external connection to Docker

See this issue.
Docker best practise to Control and configure Docker with systemd.

  1. Create daemon.json file in /etc/docker:

     {"hosts": ["tcp://0.0.0.0:4243", "unix:///var/run/docker.sock"]}