Skip to content

Instantly share code, notes, and snippets.

View roxsross's full-sized avatar
🔥
Onfire

Rossana Suarez roxsross

🔥
Onfire
View GitHub Profile
@roxsross
roxsross / challenge-git.md
Created October 4, 2024 22:13
Examen Práctico de Git

By Roxs

Challenge GIT

Instrucciones Generales

Sigue los pasos detallados a continuación. Cada paso debe completarse en tu terminal o herramienta de Git. Al final, incluye las capturas de pantalla de los comandos solicitados como prueba de tu trabajo.


Parte 1: Inicialización y Estructura Básica

Description: This template deploys a VPC, with
A pair of public and private subnets spread across two Availability Zones.
It deploys an internet gateway, with a default route on the public subnets.
It deploys an Ec2 with WordPress and EC2 MySQL RDS
It Needs The KeyPairs
LONG Version - With Multi AZ and RR - It deploy in almost 30 min
LITE Version - Whitout Multi AZ and RR - It deploy in only 3 min max
Parameters:
@roxsross
roxsross / kubectl_aliases
Created April 10, 2024 02:13
alias-kubectl
#!/bin/bash
# other
alias k='kubectl'
alias kl='kubectl logs'
alias kexec='kubectl exec -it'
alias kpf='kubectl port-forward'
alias kaci='kubectl auth can-i'
alias kat='kubectl attach'
alias kapir='kubectl api-resources'

Control de Version

  1. Git

(CI/CD):

  1. Jenkins
  2. CircleCI
  3. Github Actions
  4. GitLab CI/CD
  5. TeamCity
@roxsross
roxsross / comandos_linux.properties
Created April 4, 2024 21:26
Desatando el poder de la automatización en DeVOps
#Material extra by @roxsross
#https://cheatography.com/romeodol/cheat-sheets/comandos-de-terminal-linux/
#https://terminaldelinux.com/assets/terminal-cheatsheet.pdf
#https://www.hostinger.com.ar/tutoriales/linux-comandos
#https://bit.ly/roxstop50linux
#https://bit.ly/roxsbashes
date #devuelve la fecha actual
echo "mensaje" #comando para mostrar un mensaje en la pantalla
@roxsross
roxsross / 50-ejercicios.md
Created February 23, 2024 17:19
comandos linux

50 ejercicios de comandos de Linux con soluciones, centrados en enfoque DevOps.

1. Mostrar la versión de Linux que estás utilizando.

$ uname -a

2. Listar todos los archivos en el directorio actual.

$ ls
@roxsross
roxsross / StopServices-At-Scheduled-Interval.yaml
Created September 2, 2023 16:02
Yaml template to stop AWS Services like RDS, Aurora, EKS in scheduled interval
AWSTemplateFormatVersion: '2010-09-09'
Transform: 'AWS::Serverless-2016-10-31'
Description: Yaml template to stop AWS Services like RDS, Aurora, EKS in scheduled interval
Parameters:
#general params
ScheduleExpression:
Type: String
Description: Schedule expressions using cron
Default: cron(30 4 * * ? *)
@roxsross
roxsross / chatgpt.py
Last active August 29, 2023 10:29
Python automation with ChatGPT
"""
Python automation with ChatGPT byRoxsRoss
### DEFINED VARIABLE OPENAI_API_KEY
export OPENAI_API_KEY=your-key-here
### GENERATE PYTHON CODE from Open AI
python3 chatgpt.py "leer version package.json" "script.py"
"""
@roxsross
roxsross / vagrant-cheat-sheet.md
Created January 28, 2023 17:02 — forked from wpscholar/vagrant-cheat-sheet.md
Vagrant Cheat Sheet

Typing vagrant from the command line will display a list of all available commands.

Be sure that you are in the same directory as the Vagrantfile when running these commands!

Creating a VM

  • vagrant init -- Initialize Vagrant with a Vagrantfile and ./.vagrant directory, using no specified base image. Before you can do vagrant up, you'll need to specify a base image in the Vagrantfile.
  • vagrant init <boxpath> -- Initialize Vagrant with a specific box. To find a box, go to the public Vagrant box catalog. When you find one you like, just replace it's name with boxpath. For example, vagrant init ubuntu/trusty64.

Starting a VM

  • vagrant up -- starts vagrant environment (also provisions only on the FIRST vagrant up)