Skip to content

Instantly share code, notes, and snippets.

View tomasmetal23's full-sized avatar
🏠
Working from home

Tomás A. Márquez L. tomasmetal23

🏠
Working from home
View GitHub Profile
@tomasmetal23
tomasmetal23 / postemail-traefikv1-docker-compose.yml
Created February 6, 2020 16:39
mail server with posteio container for traefik v1.7
version: '3'
services:
posteio:
image: analogic/poste.io:latest
container_name: poste.io
hostname: example.com
restart: always
ports:
- '25:25' # SMTPS - mostly processing incoming mails
- '465:465' # SMTPS - mostly processing incoming mails
@tomasmetal23
tomasmetal23 / traefik.toml
Created April 20, 2020 14:55
ejemplo de la configuración del archivo .toml del traefik
defaultEntryPoints = ["http", "https"]
[entryPoints]
[entryPoints.dashboard]
address = ":8080"
[entryPoints.dashboard.auth]
[entryPoints.dashboard.auth.basic]
users = ["aquituhtpasswd"] #linea 8
[entryPoints.http]
address = ":80"
@tomasmetal23
tomasmetal23 / apache-reverse-proxy-docker.conf
Created March 23, 2023 13:56 — forked from felipefernandes/apache-reverse-proxy-docker.conf
Apache Reverse Proxy Setup for Docker Containers
<VirtualHost *:80>
ProxyPreserveHost On
ProxyRequests Off
ServerName <<<SITE NAME>>>.com
ProxyPass / http://0.0.0.0:8080/ # Server IP + the exposed port of docker container
ProxyPassReverse / http://0.0.0.0:8080/ # Server IP + the exposed port of docker container
</VirtualHost>
version: '3.7'
services:
bitwarden:
image: vaultwarden/server:latest
container_name: bitwarden
restart: always
volumes:
- ./bw-data:/data
environment:
@tomasmetal23
tomasmetal23 / saiyans-actions-workflow-ci-cd-main.yml
Created June 8, 2021 03:51
CI/CD Workflow para github actions y docker. Logear la cuenta de dockerhub en el server.
# This is a basic workflow to help you get started with Actions
name: CI/CD
# Controls when the action will run.
on:
push:
branches: [main]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
cd ~
git clone https://github.com/tomasmetal23/network-manager-wireguard.git
cd network-manager-wireguard
./autogen.sh --without-libnm-glib
./configure --without-libnm-glib \
--prefix=/usr \
--without-libnm-glib \
--sysconfdir=/etc \
--libdir=/usr/lib/arm-linux-gnueabihf \
--libexecdir=/usr/lib/NetworkManager \
@tomasmetal23
tomasmetal23 / kill-miner.sh
Created March 17, 2021 23:59
Scritp para borrar minero kdevtmpfsi, kinsing
#!/bin/bash
# kinsing deleteing here
PID=$(pidof kinsing)
echo "$PID"
kill -9 $PID
# /tmp/kinsing deleteing here (Some times it will run /tmp path)
PID=$(pidof /tmp/kinsing)
cd ~
git clone https://github.com/tomasmetal23/network-manager-wireguard.git
cd network-manager-wireguard
./autogen.sh
./configure --prefix=/usr \
--sysconfdir=/etc \
--libdir=/usr/lib/x86_64-linux-gnu \
--libexecdir=/usr/lib/NetworkManager \
--localstatedir=/var
make install
@tomasmetal23
tomasmetal23 / cloudflare-ddns-update.sh
Created February 16, 2021 01:33 — forked from Tras2/cloudflare-ddns-update.sh
A bash script to update a Cloudflare DNS A record with the external IP of the source machine
#!/bin/bash
# A bash script to update a Cloudflare DNS A record with the external IP of the source machine
# Used to provide DDNS service for my home
# Needs the DNS record pre-creating on Cloudflare
# Proxy - uncomment and provide details if using a proxy
#export https_proxy=http://<proxyuser>:<proxypassword>@<proxyip>:<proxyport>
# Cloudflare zone is the zone which holds the record
version: '3.8'
#volumes:
# nextcloud:
services:
nextcloud:
image: nextcloud
volumes: