Skip to content

Instantly share code, notes, and snippets.

View unixzen's full-sized avatar
🎯
Focusing

Eugene unixzen

🎯
Focusing
View GitHub Profile
@unixzen
unixzen / docker-compose.yml
Created June 2, 2020 08:03 — forked from wshihadeh/docker-compose.yml
Traefik docker compose
version: '3.7'
networks:
traefik:
external: true
volumes:
db_data:
secrets:
@unixzen
unixzen / docker-compose.yml
Created June 3, 2020 09:00 — forked from anlek/docker-compose.yml
Setting up error page for traefik and it's applications
app:
image: my/webapp:latest
labels:
- "traefik.enable=true"
- "traefik.frontend.rule=Host:supercoolapp.com"
- "traefik.frontend.errors.network.backend=error"
- "traefik.frontend.errors.network.query=/{status}.html"
- "traefik.frontend.errors.network.status=500-511"
- "traefik.port=3000"
error_pages:
@unixzen
unixzen / Dockerfile
Created June 3, 2020 09:13 — forked from blacksheep--/Dockerfile
Traefik Catch-All to return HTTP421 for unresolved routes
FROM golang:1.14-alpine
COPY . /go/src/app
WORKDIR /go/src/app
RUN go get -v -d
RUN go install
CMD ["app"]
package main
import (
"context"
"fmt"
"github.com/docker/docker/api/types"
"github.com/docker/docker/client"
)
@unixzen
unixzen / fix_git_ps1.sh
Created October 26, 2020 08:39 — forked from tuksik/fix_git_ps1.sh
Fix -bash: __git_ps1: command not found
#http://stackoverflow.com/questions/12870928/mac-bash-git-ps1-command-not-found
curl -o ~/.git-prompt.sh https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh
echo 'source ~/.git-prompt.sh' >> ~/.bashrc
@unixzen
unixzen / Astra_Docker.md
Created February 15, 2021 07:19 — forked from daznext/Astra_Docker.md
Install Docker on AstraLinux Orel

Обновляемся

apt update && apt upgrade

Ставим docker

sudo apt-get install apt-transport-https ca-certificates curl gnupg2 
@unixzen
unixzen / .gitignore
Created April 16, 2021 11:47 — forked from karmi/.gitignore
Example Nginx configurations for Elasticsearch (https://www.elastic.co/blog/playing-http-tricks-nginx)
nginx/
!nginx/.gitkeep
!nginx/logs/.gitkeep
src/
tmp/
@unixzen
unixzen / README.md
Created May 24, 2021 10:21 — forked from zoilomora/README.md
How to disable systemd-resolved in Ubuntu

How to disable systemd-resolved in Ubuntu

Stages

  • Disable and stop the systemd-resolved service:

      sudo systemctl disable systemd-resolved.service
      sudo systemctl stop systemd-resolved
    
  • Then put the following line in the [main] section of your /etc/NetworkManager/NetworkManager.conf:

@unixzen
unixzen / setup.sh
Created February 22, 2023 13:51 — forked from QueuingKoala/setup.sh
Sub-CA example
# Assumptions: easyrsa3 available in current dir, and functional openssl.
# This basic example puts the "offline" and "sub" PKI dirs on the same system.
# A real-world setup would use different systems and transport the public components.
# Build root CA:
EASYRSA_PKI=offline ./easyrsa init-pki
EASYRSA_PKI=offline ./easyrsa build-ca nopass
# Build sub-CA request:
EASYRSA_PKI=sub ./easyrsa init-pki
@unixzen
unixzen / openssh-latest-build-install.md
Created June 2, 2023 08:37 — forked from jtmoon79/openssh-latest-build-install.md
OpenSSH: build and install the latest version