Skip to content

Instantly share code, notes, and snippets.

View ciberado's full-sized avatar

Javier Moreno ciberado

View GitHub Profile
@ciberado
ciberado / s3-features-part-1.md
Created January 24, 2024 09:40
S3, the lesser known features

S3,

the lesser known details

  1. Improving ingestion performance
  2. Why is pagination important?
  3. S3 as a SQL database
  4. Divide and conquer you files
  5. Mountpoint: the good, the bad and the awful

GitLab CICD playful runner instructions

Project creation

  • Create an account at https://gitlab.com

  • Create a new empty project

  • Add a file named .gitlab-ci.yml

[
{
"text": "The terraform.tfstate file always matches your currently built infrastructure.",
"responses": [
{
"letter": "A. ",
"text": "True",
"correct": false
},
{
#!/bin/sh
 
sudo apt update
sudo apt install openjdk-8-jre-headless -y
wget https://github.com/ciberado/pokemon/releases/download/stress/pokemon-0.0.4-SNAPSHOT.jar
java -jar pokemon-0.0.4-SNAPSHOT.jar
AWSTemplateFormatVersion: '2010-09-09'
Description: 'Simple (not production-ready) VPC'
Parameters:
ClassB:
Description: 'Class B of VPC (10.XXX.0.0/16)'
Type: Number
Default: 0
ConstraintDescription: 'Must be in the range [0-255]'
MinValue: 0
#!/bin/bash
if [[ $# -eq 0 ]] ; then
echo 'Provide the name of the owner, please.'
exit 0
fi
OWNER=$1
VPC_ID=$(aws ec2 create-vpc \
# sudo apt update; sudo apt install graphviz
# pip3 install diagrams
# python3 diagrams-aws.py
from diagrams import Cluster, Diagram, Edge
from diagrams.aws.compute import EC2
from diagrams.aws.database import RDS
from diagrams.aws.network import ELB
from diagrams.custom import Custom
from urllib.request import urlretrieve
#!/bin/bash
delete-vpc() {
local teamName=${1:-ciberadok8s}
local region=${2:-eu-west-1}
aws ec2 describe-vpcs --region ${region} | jq -r ".Vpcs[] | select(.Tags[].Value | contains(\"${teamName}\")) | .VpcId" 2>/dev/null |
while read vpcID; do
echo "# deleting vpc (${vpcID}) ..."
@ciberado
ciberado / 01_preparar_storage.md
Last active April 6, 2016 11:12
Instrucciones para preparar un storage account usando el cli
@ciberado
ciberado / java8install.sh
Last active November 11, 2015 08:49 — forked from mikakoivisto/java7install.sh
Ubuntu 14.04 Java 7 automated install script
#!/bin/bash
cat - <<-EOF >> /etc/apt/sources.list.d/webupd8team-java.list
# webupd8team repository list
deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main
# deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main
EOF
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xEEA14886