Skip to content

Instantly share code, notes, and snippets.

View pabloopez's full-sized avatar

Pablo J. Lopez Zaldivar pabloopez

View GitHub Profile
@pabloopez
pabloopez / Dockerfile
Created November 11, 2024 10:34
index.js
# Use an older version of Node.js
FROM node:18.0
# Set the working directory
WORKDIR /app
# Copy the package files
COPY package.json ./
# Install dependencies (including vulnerable jsonpath-plus version)
@pabloopez
pabloopez / test.sh
Last active April 9, 2024 13:42
test
#!/bin/bash
shopt -s expand_aliases
alias aws=/usr/local/bin/aws
alias pacu=/home/ubuntu/pacu/cli.py
press_any_key() {
echo
echo -e "\e[42m+---------------+"
echo -e "| Press enter |"
apiVersion: batch/v1
kind: CronJob
metadata:
name: mining-hour
spec:
schedule: "0 * * * *"
jobTemplate:
spec:
template:
spec:
---
apiVersion: v1 # Namespace
kind: Namespace
metadata:
name: sock-shop
---
apiVersion: apps/v1 # Deployment - Carts
kind: Deployment
metadata:
name: carts
# HELP go_gc_duration_seconds A summary of the pause duration of garbage collection cycles.
# TYPE go_gc_duration_seconds summary
go_gc_duration_seconds{quantile="0"} 0
go_gc_duration_seconds{quantile="0.25"} 0
go_gc_duration_seconds{quantile="0.5"} 0
go_gc_duration_seconds{quantile="0.75"} 0
go_gc_duration_seconds{quantile="1"} 0
go_gc_duration_seconds_sum 0
go_gc_duration_seconds_count 0
# HELP go_goroutines Number of goroutines that currently exist.
body {
background-color: lightblue;
}
h1 {
color: red;
margin-left: 20px;
}
<h2>Oops... It seems this content is no longer available.</h2>
<p>We appreciate your interest in this hands-on lab, and we are working hard to bring this content in a fresh new environment.</p>
<p>Currently this content is not available as the vendor is no longer supporting their Katakoda virtual training lab solution.</p>
<p id="msg">In the meantime, you can check our videos, or our currently migrated labs at $DOMAIN.</p>
<p>Thank you for your understanding.</p>
<p>
<p style="color: red; font-weight: bold;">You will be redirected to the new labs in <span id="counter" style="font-size:56px;">15</span> second(s).</p>
<script>
let domainRedir = "https://" + window.location.host + "/working-labs";
let redirHTML = "<a href=\"" + domainRedir + "\">" + domainRedir + "</a>";