This file contains 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
#!/bin/bash | |
## 2048 for your web browser on localhost:2048 | |
git clone https://github.com/gabrielecirulli/2048 | |
docker run -d --name 2048 -p 2048:80/tcp -v `pwd`/2048/:/usr/share/nginx/html/ nginx:latest |
This file contains 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
--- | |
kind: pipeline | |
type: docker | |
name: linux-amd64 | |
trigger: | |
branch: | |
- myapp | |
event: |
This file contains 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
--- | |
kind: pipeline | |
type: kubernetes | |
name: linux-amd64 | |
trigger: | |
ref: | |
include: | |
- refs/tags/myapp-* |
This file contains 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
#!/bin/bash | |
for i in `curl -s -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/arendst/Tasmota/releases/latest | grep browser_download_url | cut -d '"' -f 4`; do wget ${i}; done |
This file contains 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 docker.io/library/golang:1.17-bullseye as builder | |
ARG MIKROTIK_VERSION=4bfa7adfef500ff621a677adfab1f7010af920d1 | |
RUN git clone https://github.com/nshttpd/mikrotik-exporter /src && \ | |
cd /src && \ | |
git checkout $MIKROTIK_VERSION && \ | |
git reset --hard && \ | |
make build | |
FROM docker.io/library/debian:bullseye-slim | |
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt |
This file contains 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
--- | |
apiVersion: networking.k8s.io/v1 | |
kind: NetworkPolicy | |
metadata: | |
name: speed | |
spec: | |
podSelector: | |
matchLabels: |
This file contains 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 docker.io/library/golang:1.17-bullseye as builder | |
ARG MIKROTIK_VERSION=4bfa7adfef500ff621a677adfab1f7010af920d1 | |
RUN git clone https://github.com/nshttpd/mikrotik-exporter /src && \ | |
cd /src && \ | |
git checkout $MIKROTIK_VERSION && \ | |
git reset --hard && \ | |
make build |
This file contains 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
--- | |
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: vaultwarden | |
--- | |
apiVersion: networking.k8s.io/v1 |
This file contains 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 docker.io/library/debian:bookworm-slim | |
ARG UID=1000 | |
ARG GID=1066 | |
RUN apt-get update && apt-get install -y --no-install-recommends \ | |
ca-certificates \ | |
wget \ | |
aria2 && \ | |
rm -rf /var/lib/apt/lists |
This file contains 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
import os | |
from datetime import datetime, timedelta | |
from requests import get | |
from typing import Tuple | |
# https://prometheus.io/docs/prometheus/latest/querying/api/ | |