Skip to content

Instantly share code, notes, and snippets.

View raelga's full-sized avatar
🐱
Learning

Rael Garcia raelga

🐱
Learning
View GitHub Profile
#!/bin/sh
set -euo pipefail
function EnableStackDynamoDbBackups {
local CF_STACK="$1"
local CF_REGION=${2:-eu-central-1}
echo "Getting tables from the $CF_STACK stack in the $CF_REGION region."
#!/bin/bash
date
function sendMessage {
MESSAGE=$@;
if [ "${MESSAGE}" != "" ];
then
for u in $(curl -sq https://destinytracker.com/d2/clan/427309/the-packets | sed -n 's@.*clanmembers = \(.*\)</script>@\1@p' | jq -c '.[] | { id: .DestinyUserInfo.membershipId, name:.DestinyUserInfo.displayName }' 2>/dev/null); do echo "$(echo $u | jq -c '.name') - Last played on $(curl -sq https://destinytracker.com/d2/api/profile/2/$(echo $u | jq -r -c '.id' )/recentgames | jq -c '.matches | .[0].period' 2>/dev/null)"; done;
sudo: required
language: go
go:
- "1.12"
services:
- docker
install: true
Cloud Native Barcelona overview
05-2019
Introduction to the Cloud Native Barcelona, the official Cloud Native Computing Foundation user group in Barcelona.
500
https://rael.io/talk/cnbcn-overview/
---
Kubernetes for all: AWS, Azure and GCP
06-2019
Breakdown of the managed Kubernetes distributions in AWS, Azure and GCP.
28
@raelga
raelga / depgo
Created September 9, 2019 22:19
import sys
import re
regex = r"^([0-9]+)\s+([0-9]{4}\-[0-1][1-9]-[0-3][0-9]-[0-2][0-9]:[0-6][0-9]:[0-6][0-9])\s+(\"[^\"]*\"|\w+)\s+(\"[^\"]*\"|\w+)\s+(\"[\w]*\"|\w+)$"
def dep(fildep):
deps = 0
nodeps = list()
for line in open(fildep):
regdeps = re.search(regex, line, re.MULTILINE)
@raelga
raelga / tekton-pipelinerun-cleaner.yaml
Last active December 15, 2022 15:30
CronJob to clean up PipelineRuns, keeping up to `NUM_TO_KEEP` of runs of each pipeline
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: tekton-pipelinerun-cleaner
labels:
app: tekton-pipelinerun-cleaner
app.kubernetes.io/name: tekton-pipelinerun-cleaner
app.kubernetes.io/component: pipelinerun-cleaner
app.kubernetes.io/part-of: tekton