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
| #!/bin/bash | |
| # Docker MySQL backup script | |
| # Makes a local backup and optionally uploads files to cloud storage (S3, R2) with rclone. | |
| # Works great with Dockerized MySQL in a shared network (e.g. my_app_network) | |
| set -euo pipefail | |
| IFS=$'\n\t' | |
| # === CONFIGURATION === |
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
| -- Returns a string with a list of attached LSP clients, including | |
| -- formatters and linters from null-ls, nvim-lint and formatter.nvim | |
| local function get_attached_clients() | |
| local buf_clients = vim.lsp.get_active_clients({ bufnr = 0 }) | |
| if #buf_clients == 0 then | |
| return "LSP Inactive" | |
| end | |
| local buf_ft = vim.bo.filetype |
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: Docker Build | |
| on: | |
| push: | |
| tags: | |
| - 'v*.*.*' | |
| permissions: | |
| contents: read | |
| packages: write |