sudo dnf update -y
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Main workflow | |
| on: | |
| pull_request: | |
| push: | |
| schedule: | |
| - cron: 0 0 * * 5 | |
| jobs: | |
| plugin-test-docker: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # send SQL files from Mac to the VM | |
| # On Mac, set password environment variable | |
| export MYSQL_PWD=password123 | |
| export MYSQL_USER=dev | |
| export MYSQL_DB=database | |
| export MYSQL_HOST=100.100.100.10 | |
| export MYSQL_SSL_MODE=DISABLED | |
| # Run import without -p flag | |
| for file in *.sql; do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Install MySQL 5.7 Community Server on AlmaLinux 10 | |
| ## source: https://computingforgeeks.com/install-mysql-5-7-on-centos-rhel-linux/ | |
| ## Add MySQL Community Repository | |
| sudo vim /etc/yum.repos.d/mysql-community.repo | |
| ## Disable MySQL 8.0 Community Repository | |
| sudo dnf config-manager --disable mysql80-community |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Quick Setup with Copy-Paste | |
| ## Set your username and public key | |
| USERNAME="yourusername" | |
| PUBLIC_KEY="ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIxxxxxx [email protected]" | |
| ## Create user and setup | |
| useradd -m -G wheel $USERNAME | |
| passwd $USERNAME | |
| mkdir -p /home/$USERNAME/.ssh |
A comprehensive guide to hardening Linux systems with practical implementations, use cases, and before/after comparisons.