Skip to content

Instantly share code, notes, and snippets.

View luisgagocasas's full-sized avatar
💙
CEO at AyPhu

Luis Gago Casas luisgagocasas

💙
CEO at AyPhu
View GitHub Profile
@antonputra
antonputra / manifests.tf
Created August 15, 2023 21:23
How to apply MULTIPLE Kubernetes manifests using Terraform?
# Install kubectl provider
terraform {
required_version = ">= 0.13"
required_providers {
kubectl = {
source = "gavinbunney/kubectl"
version = ">= 1.14.0"
}
}
@maikell
maikell / docker-compose.yml
Last active December 11, 2022 16:58
Docker plex/media stack
version: "2.4"
services:
plex:
image: lscr.io/linuxserver/plex:latest
container_name: plex
network_mode: host
environment:
- PUID=1000
- PGID=1000
- VERSION=docker
@LukasForst
LukasForst / README.md
Last active April 11, 2024 17:10
Traefik, Authentik forward auth example

Deploying Traefik using forward proxy mode with Authentik

This is an example guide how to deploy Authentik with Traefik in forward auth proxy mode - that means that any application behind the proxy will be automatically authenticated by Traefik. This allows better reuse of code and completely moves user management to Traefik & Authentik.

In this guide we use custom DNS to make the requests nicer and to show that it works with DNS. So step #1 is to put following records to your /etc/hosts (for example by sudo nano /etc/hosts and adding these values)

@katzefudder
katzefudder / Dockerfile
Last active August 19, 2022 17:35
A simple openresty proxy with metrics endpoint
FROM openresty/openresty:1.21.4.1-1-alpine
ENV PATH=$PATH:/usr/local/openresty/luajit/bin:/usr/local/openresty/nginx/sbin:/usr/local/openresty/bin
RUN apk update \
&& apk add curl perl \
# install nginx-lua-openresty https://opm.openresty.org/package/knyar/nginx-lua-prometheus/
&& opm get knyar/nginx-lua-prometheus \
&& mkdir -p /var/log/nginx \
&& mkdir /var/www \
@Arka111
Arka111 / docker 2 class part1
Created June 18, 2022 06:40
Commands used in Docker 2 Class
curl -L "https://github.com/docker/compose/releases/download/$(curl https://github.com/docker/compose/releases | grep -m1 '<a href="/docker/compose/releases/download/' | grep -o 'v[0-9:].[0-9].[0-9]')/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-compose-on-ubuntu-20-04
mkdir ~/compose-demo
cd ~/compose-demo
mkdir app
vi app/index.html
<!doctype html>
<html lang="en">
@ionelmc
ionelmc / .env-example
Last active August 26, 2022 07:56
multistream-obs
YOUTUBE_KEY=
FACEBOOK_KEY=
TWITCH_KEY=
TWITCH_HOST=live-fra05.twitch.tv
TROVO_KEY=
@jefrnc
jefrnc / Dockerfile
Created January 4, 2022 14:25
Dockerfile for Slave Agent
FROM jenkins/jnlp-agent-docker
USER root
RUN apk update && \
apk add -u libcurl curl && \
apk add --no-cache libc6-compat bash openssh-client git python2 py-pip ansible && \
rm -rf /tmp/* && \
rm -rf /var/cache/apk/*
@oscarhugopaz
oscarhugopaz / change-url-via-db
Created December 23, 2021 21:04
change-url-via-db #sql
UPDATE wp_options SET option_value = replace(option_value, 'http://dominio.com', 'https://dominio.com') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET guid = replace(guid, 'http://dominio.com','https://dominio.com');
UPDATE wp_posts SET post_content = replace(post_content, 'http://dominio.com', 'https://dominio.com');
UPDATE wp_postmeta SET meta_value = replace(meta_value,'http://dominio.com','https://dominio.com');
@BretFisher
BretFisher / Dockerfile
Last active May 8, 2024 20:53
Multi-stage Dockerfile example of installing dependencies with COPY --from
# any images you use later, add them here first to create aliases
# I like keeping all my versions at the top
FROM node:14.3-slim as node
FROM php:7.2.1-fpm-slim as php
FROM nginx:1.17 as nginx
# The real base image to start from
FROM ubuntu:focal-20210827 as base
# install apt stuff
@mijndert
mijndert / Dockerfile
Created May 28, 2021 13:31
WIP multi-stage build for Laravel
FROM php:7.4-fpm-alpine AS be-build
WORKDIR /app/
COPY . .
RUN apk add libzip-dev \
&& docker-php-ext-install zip \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer