Skip to content

Instantly share code, notes, and snippets.

View okelet's full-sized avatar
🎯
Focusing

Juan A. S. okelet

🎯
Focusing
  • Madrid
  • 11:29 (UTC +02:00)
View GitHub Profile
@okelet
okelet / tf-auto-state.sh
Last active May 20, 2025 11:31
Simple script to automatically create an S3 bucket for Terraform state storage, and modify backend configuration.
#!/bin/bash
# Master code for this script:
# https://gist.github.com/okelet/19361a3bdd1d2dd0492409cbb8c20222
# Check if macos or linux
if [ "$(uname)" == "Darwin" ]; then
# We need gmktemp because default mktemp in MacOs doesn't support --suffix
if ! command -v gmktemp &> /dev/null; then
echo "gmktemp is not installed. Please install it using \`brew install coreutils\`."
@okelet
okelet / README.md
Last active January 27, 2023 16:31
Calendario Laboral Madrid 2023 (Google/ICS)

Post original: https://blog.okelet.dev/post/2023/01/calendario-laboral-madrid-2023-google-ics/

He estado buscando por toda Internet y no he encontrado un calendario público en formato ICS con los festivos de Madrid, de tal forma que se pueda añadir directamente a Google Calendar o cualquier otra aplicación (Google Calendar ya te muestra los festivos nacionales y de todas las comunidades autónomas, pero no los locales). Así que como tampoco son tantos, me he creado un calendario en mi cuenta y he decidido compartirlo públicamente. Aquí tenéis las direcciones para poder usarlo.

Visualización en el navegador: https://calendar.google.com/calendar/embed?src=6bbcb4bdfed25a4f2444338f51fb8a5a80164c733180487e49698a86f43c4cfe%40group.calendar.google.com&ctz=Africa%2FCeuta

URL ICS (para descargar o añadir directamente en Google Calendar u otras aplicaciones):

@okelet
okelet / poetry_lambda_generate_zip.sh
Created September 16, 2022 14:26
Simple shell script to generate a ZIP package for a script whose dependencies are defined using Poetry
#!/bin/bash
set -e
TMP_DIR=$(mktemp -d --suffix=.poetry-lambda-generate-zip)
APP_DIR=$(pwd)
rm -Rf dist
mkdir dist
#!/bin/bash
##################################################################################################################################
# https://www.digitalocean.com/community/tutorials/how-to-install-elasticsearch-logstash-and-kibana-elastic-stack-on-ubuntu-20-04
##################################################################################################################################
# Configures a full ELK stack ob Ubuntu 20.04
# - Elasticsearch
# - Kibana
# - nginx

My Visual Studio Code extensions

Moved to the blog.

Testing Athena partition projection

Moved to the blog.

Testing aws ecs execute-command

Moved to the blog.