This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Ver métricas de todos los contenedores | |
| docker stats | |
| # Ver métricas de todos los contenedores incluidos los detenidos | |
| docker stats --all | |
| # Ver métrica de un solo contenedor por nombre o ID | |
| docker stats demo-adminer | |
| # Ver métricas de más de un contenedor, útil para troubleshooting |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| services: | |
| nginx: | |
| image: nginx:stable-alpine | |
| ports: | |
| - "8080:80" | |
| restart: unless-stopped | |
| networks: | |
| - front | |
| httpd: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Stage 1: build | |
| FROM node:18-slim AS build | |
| WORKDIR /app | |
| # Copiar dependencias | |
| COPY package*.json ./ | |
| RUN npm install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| services: | |
| reverse-proxy: | |
| image: nginx:alpine | |
| container_name: demo-nginx | |
| ports: | |
| - "8080:80" | |
| volumes: | |
| - ./nginx.conf:/etc/nginx/conf.d/default.conf:ro | |
| depends_on: | |
| - whoami |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM node:18-slim | |
| WORKDIR /app | |
| # Crear usuario/grupo NO ROOT | |
| RUN groupadd --gid 10001 appgroup \ | |
| && useradd --uid 10001 --gid 10001 --create-home --home-dir /home/app appuser \ | |
| && chown -R appuser:appgroup /app | |
| # Copiar dependencias |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Homebrew (macOS) | |
| /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
| # Zsh (instalar y dejar por defecto) | |
| brew install zsh | |
| chsh -s "$(which zsh)" | |
| # Tabby (terminal) | |
| brew install --cask tabby |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '3' | |
| networks: | |
| borbotones-network: | |
| name: borbotones-network | |
| driver: bridge | |
| services: | |
| db: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function slugify(text) | |
| { | |
| return text.toString().toLowerCase() | |
| .replace(/\s+/g, '-') // Replace spaces with - | |
| .replace(/[^\w\-]+/g, '') // Remove all non-word chars | |
| .replace(/\-\-+/g, '-') // Replace multiple - with single - | |
| .replace(/^-+/, '') // Trim - from start of text | |
| .replace(/-+$/, ''); // Trim - from end of text | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Navigation Test</title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> | |
| <script> | |
| var isTouchDevice = 'ontouchstart' in document.documentElement; | |
| window.onload = function () { | |
| var where = document.getElementById('where'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width"> | |
| <title>JS Bin</title> | |
| </head> | |
| <body> | |
| <script id="jsbin-javascript"> |
NewerOlder