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 / 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)
@roxsross
roxsross / deployment.yaml
Created October 13, 2022 00:40
template deployment
apiVersion: apps/v1
kind: Deployment
metadata:
name: pingapp
labels:
app: pingapp
spec:
replicas: 1
selector:
matchLabels:
@roxsross
roxsross / Dockerfile
Last active October 12, 2022 13:55
kubernetes
##Descargamos UBUNTU
FROM ubuntu
##Actualizamos el sistema
RUN apt-get update
##En algunas versiones de Linux es necesario configurar una variable para el TIMEZONE
ENV TZ=Europe/Madrid
##Luego creamos un fichero llamado /etc/timezone para configurar
@roxsross
roxsross / docker-help.md
Created October 11, 2022 17:04 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info