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 / 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

@roxsross
roxsross / Readme.md
Last active September 27, 2022 14:54
sonarq

Install docker

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
apt-cache policy docker-ce
sudo apt-get install -y docker-ce
sudo usermod -aG docker ubuntu
sudo systemctl status docker
#Press CTRL+C or CTRL+Z to exit from the above command
@roxsross
roxsross / bash.sh
Created September 12, 2022 21:45
Bash scripting cheatsheet
#!/bin/bash
##############################################################################
# SHORTCUTS and HISTORY
##############################################################################
CTRL+A # move to beginning of line
CTRL+B # moves backward one character
CTRL+C # halts the current command
CTRL+D # deletes one character backward or logs out of current session, similar to exit
CTRL+E # moves to end of line
@roxsross
roxsross / Readme.md
Last active June 14, 2023 16:47
reto Docker

Only python 3.7

install

python -m pip install -r requirements.txt

run

python, -u, main.py

Ejercicio 2

Namespace a usar: educacionit-ns

Port: 8080

kubectl exec -it -n bm-corp bm-api -- /bin/sh
/app # wget localhost:8080/k8s.png
Connecting to localhost:8080 (127.0.0.1:8080)
@roxsross
roxsross / deploy_web.sh
Created August 25, 2022 23:48
deploy_web
#!/bin/bash
#variables
DISTRO=$(lsb_release -ds)
USERID=$(id -u)
DOMAIN="web.192.168.56.108.nip.io"
WEB="pages"
#Check user
@roxsross
roxsross / ejemplo.md
Last active August 16, 2022 22:01
ejemplo permisos

Linux - gestión de permisos

  1. En un directorio vacío (nuevo), crear 9 archivos (archiv1, archiv2, etc.) utilizando el comando touch:

Deberás quitarle todos los permisos con el comando

chmod a-rwx archiv*



@roxsross
roxsross / exercise.md
Created August 16, 2022 16:57
Ejercicios comandos Linux

Ejercicios-comandos-linux

Ejercicios comandos Linux

  1. Listar todos los archivos del directorio bin.
    ls /bin
  2. Listar todos los archivos del directorio tmp.
    ls /tmp
  3. Listar todos los archivos del directorio etc que empiecen por t en orden inverso.
    ls –r /etc/t*
  4. Listar todos los archivos del directorio dev que empiecen por tty y tengan 5 caracteres.
#!/bin/bash
SRC_REPO=https://github.com/roxsross/frontend-angular-docker
SRC_DIR=frontend-angular-docker
# Clone website
rm -Rf temp/
mkdir temp
cd temp
git clone ${SRC_REPO}
cd ${SRC_DIR}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Hello World - Bootcamp DevOps</title>
<style>
h1 {
font-weight: lighter;