Skip to content

Instantly share code, notes, and snippets.

View matpratta's full-sized avatar

Matheus Pratta matpratta

View GitHub Profile
@matpratta
matpratta / coolify-migrate.sh
Created June 15, 2024 03:05 — forked from Geczy/readme.md
Migrate Coolify to a new server
#!/bin/bash
# This script will backup your Coolify instance and move everything to a new server. Docker volumes, Coolify database, and ssh keys
# 1. Script must run on the source server
# 2. Have all the containers running that you want to migrate
# Configuration - Modify as needed
sshKeyPath="$HOME/.ssh/your_private_key" # Key to destination server
destinationHost="server.example.com"
@matpratta
matpratta / du-global-dump.lua
Created September 1, 2022 16:03 — forked from d-lua-stuff/dump.lua
Global variable dumping script for Dual Universe. See https://board.dualthegame.com/index.php?/topic/20052-lua-all-global-variables/ for more info. License: WTFPL
local max = math.max
local concat, insert = table.concat, table.insert
local byte, gsub, format, match, rep = string.byte, string.gsub, string.format, string.match, string.rep
local buffer = { "Lua globals dump: \r\n\r\n" }
local should_get_function_params = true
local should_dump_functions = false
local table_visited = {}