Skip to content

Instantly share code, notes, and snippets.

View mrexojo's full-sized avatar

mrexojo ☁️ mrexojo

View GitHub Profile
@mrexojo
mrexojo / ec2-costs-steampipe
Last active April 24, 2024 08:20
steampipe
WITH filtered_instances AS (
SELECT instance_id, instance_type
FROM aws_ec2_instance
WHERE tags->>'Name' LIKE 'web-server%'
),
usage_costs AS (
SELECT resource_id, SUM(blended_cost) AS total_cost
FROM aws_cost_usage
WHERE usage_start_date >= DATE_TRUNC('month', CURRENT_DATE) - INTERVAL '1 month'
AND usage_end_date < DATE_TRUNC('month', CURRENT_DATE)
@mrexojo
mrexojo / kubernetes-certifications.md
Created February 1, 2023 09:04 — forked from bakavets/kubernetes-certifications.md
How I passed Kubernetes KCNA, CKAD, CKA, and CKS exams. My experience. Exam tips and tricks.
@mrexojo
mrexojo / bash-cheatsheet.sh
Created February 1, 2023 08:57 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
@mrexojo
mrexojo / PackerPolicy.json
Created July 12, 2019 17:20 — forked from MattSurabian/PackerPolicy.json
Minimum IAM policy required by AWS for Packer to do its thing.https://github.com/mitchellh/packer Permissions are broken out by API functionality and a resource array has been defined with a wild card for each group. For tighter security resource level permissions can be applied per this documentation: http://aws.typepad.com/aws/2013/07/resource…
{
"Statement": [
{
"Sid": "PackerSecurityGroupAccess",
"Action": [
"ec2:CreateSecurityGroup",
"ec2:DeleteSecurityGroup",
"ec2:DescribeSecurityGroups",
"ec2:AuthorizeSecurityGroupIngress",
"ec2:RevokeSecurityGroupIngress"
@mrexojo
mrexojo / readme.md
Created November 20, 2018 07:45 — forked from gimenete/readme.md
Notas para orientación profesional como programador

Tras este tweet que publiqué

He sido freelance, emprendedor y trabajo desde hace años para empresas USA de diversos tamaños en remoto como programador fullstack. Ahora en GitHub. Si puedo ayudar a alguien en orientar su carrera, mis DMs están abiertos. Ask me anything.

he recibido muchos mensajes y escribo aquí algunos de los consejos que he dado en resumen. Nota: algunas cosas son concretas de trabajar en España. Si vas a trabajar desde Sudamérica sólo una nota: tienes la ventaja de la zona horaria para trabajar con EEUU.

Inglés

Tener un buen nivel de inglés es fundamental para poder trabajar con clientes extranjeros. El conocimiento del idioma tiene que mantenerse en el tiempo. Es como mantenerse en forma física; si lo dejas, lo pierdes. Personalmente aunque trabajo 100% en inglés desde hace bastantes años, intento crearme un entorno diario con el idioma para no perderlo:

@mrexojo
mrexojo / CHEAT-LISTS
Last active February 21, 2024 05:09 — forked from habbdt/Git cheat sheets
CHEATS
### Markdown
https://packetlife.net/media/library/16/Markdown.pdf
### GIT
https://www.atlassian.com/git/tutorials/atlassian-git-cheatsheet
### Bash
https://devhints.io/bash.html (really nice)
### Python CheatSheet
@mrexojo
mrexojo / Vi-tips
Last active October 9, 2018 06:48
Some tips and resources about vi editor
#Help for command on vi - ej:delete
[Esc]:h x
#Edit multiple files. From shell:
vi file1 file2
#Write to file1 and NEXT to file2
[Esc]:wn
#Next to follow file
[Esc]:n
#List files online