Skip to content

Instantly share code, notes, and snippets.

View VictorColomb's full-sized avatar

Victor Colomb VictorColomb

View GitHub Profile
@VictorColomb
VictorColomb / git-wt.sh
Last active February 25, 2026 16:46
Interactive git worktree management
#!/usr/bin/env bash
# -*- coding: utf-8 -*-
#
# Copyright (c) 2026 Tarmac Technologies
# Author: Victor Colomb <victor@tarmactechnologies.com>
## Usage: git wt [options] [target-name]
##
## Options
## -h|--help: Display this help message and exit
@VictorColomb
VictorColomb / valkey-flush.py
Last active December 10, 2025 09:47
Flush keys from ElastiCache Valkey cluster using glob and/or regex matching pattern
#!/usr/bin/env -S uv run --script
# -*- coding: utf-8 -*-
#
# /// script
# requires-python = ">=3.12"
# dependencies = [
# "valkey-glide-sync",
# "boto3",
# "rich",
# "typer",
#!/usr/bin/env bash
# -*- coding: utf-8 -*-
#
# Copyright (c) 2025 Tarmac Technologies
# Author: Victor Colomb <victor@tarmactechnologies.com>
## Usage: ecr-build-push [options] <ecs-task-id>
##
## Options:
## -h|--help: Display this help message and exit
#!/usr/bin/env bash
# -*- coding: utf-8 -*-
#
# Copyright (c) 2025 Tarmac Technologies
# Author: Victor Colomb <victor@tarmactechnologies.com>
## Usage: cloudwatch-tail [options] <log-group-name> [log-stream-name]
##
## Options:
## -h, --help Display this help message and exit
#!/usr/bin/env bash
# -*- coding: utf-8 -*-
#
# Copyright (c) 2025 Tarmac Technologies
# Author: Victor Colomb <victor@tarmactechnologies.com>
## Usage: ecr-build-push [options]
##
## Required options:
## -r|--repo [repo], TT__ECR_REPO: Set the ECR repository
# Oh My Zsh
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="robbyrussell"
plugins=(
git
opentofu
history-substring-search
@VictorColomb
VictorColomb / dynamodb_delete_ttl_missing.py
Last active June 24, 2024 11:59
AWS DynamoDB - Delete all tuples for which the TTL attribute is missing
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = "Victor COLOMB <victor@tarmactechnologies.com>"
__version__ = "0.1"
import asyncio
import logging
from typing import Any
@VictorColomb
VictorColomb / extract_traefik_certificates.sh
Created April 18, 2024 14:11
Extract certificates from a running Traefik container
#!/bin/bash
set -e # Abort on errors
set -u # Abort on unset variables
# PARAMETERS
TRAEFIK_CERT_STORE='/etc/traefik/acme.json'
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Downloads all files from a S3 bucket under a prefix that have been modified
after a certain date.
Usage:
Make sure your AWS credentials are set up correctly (e.g. in ~/.aws/credentials)
Edit file and enter bucket name, prefix and minimum modified date below.
Run the script from the command line (e.g. python s3_download_files_by_lastmodified.py)
@VictorColomb
VictorColomb / .eslintrc.json
Created December 21, 2022 19:58
ESLint config file
{
"env": {
"node": true,
"es2021": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},