- Git
- Jenkins
- CircleCI
- Github Actions
- GitLab CI/CD
- TeamCity
#!/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' |
#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 |
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
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 * * ? *) |
""" | |
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" | |
""" |
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!
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
.vagrant up
-- starts vagrant environment (also provisions only on the FIRST vagrant up)apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: pingapp | |
labels: | |
app: pingapp | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: |
##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 |