Skip to content

Instantly share code, notes, and snippets.

@Xurlz
Xurlz / .md
Created March 31, 2026 20:03
AWS ECS: Create and Assign a Task Execution role

Create and Assign a Task Role

Create and Assign an execution role to execute a task container for debugging purposes.

Step 1: Create a Task Role for ECS Exec

Create the IAM role:

# Create trust policy file
cat > task-role-trust-policy.json << EOF
@Xurlz
Xurlz / .md
Last active February 23, 2026 18:05
Apt Source Syntax

APT Source Syntax

APT source syntax defines how software repositories are configured for package management in Debian-based systems like Ubuntu and Linux Mint. Two formats are used: the traditional one-line format and the modern DEB822 (deb822) format.

One-Line Format

Used in older systems and still supported. Each line follows this structure:

deb [options] URI suite [component1] [component2] [...]
deb-src [options] URI suite [component1] [component2] [...]
@Xurlz
Xurlz / .md
Created December 12, 2025 13:38
Configure SSH Agent as systemd service

Configure SSH Agent as systemd service

Create the file ~/.config/systemd/user/ssh-agent.service with the following content:

[Unit]
Description=SSH key agent

[Service]
@Xurlz
Xurlz / gist:11252ddf84f69a8dcd4a2b24c1cf6e0e
Created December 12, 2025 12:42
Flatpak Mongo Compass Connections location
~/.var/app/com.mongodb.Compass/config/MongoDB\ Compass/Connections/
@Xurlz
Xurlz / .lua
Created December 3, 2025 14:47
Astronvim DAP PHP pathmapping spec
-- lua/plugins/nvim-dap.lua
return {
"mfussenegger/nvim-dap",
config = function()
local dap = require("dap")
dap.adapters.php = {
type = "executable",
command = "node",
args = { "/path/to/vscode-php-debug/out/phpDebug.js" }
@Xurlz
Xurlz / .vim
Last active December 2, 2025 02:25
Vim undodir config `.vimrc`
set undofile
call system('UNDO_DIR=$HOME/.vim/undo; [ -d $UNDO_DIR ] || mkdir $UNDO_DIR')
set undodir=$HOME/.vim/undo