Skip to content

Instantly share code, notes, and snippets.

View Lamarcke's full-sized avatar
💭
"With experience comes perspective"

Cássio Lamarck Lamarcke

💭
"With experience comes perspective"
View GitHub Profile
@Lamarcke
Lamarcke / db_backup.sh
Created October 14, 2025 03:22
MySQL in Docker local + S3 backup
#!/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 ===
@Lamarcke
Lamarcke / lualine.lua
Last active July 23, 2024 17:52
Lualine config for LSP clients, formatters and linters
-- 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
@Lamarcke
Lamarcke / docker-build.yml
Created July 12, 2023 23:21
Create Docker Image on Push
name: Docker Build
on:
push:
tags:
- 'v*.*.*'
permissions:
contents: read
packages: write