Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Tomás A. Márquez L. tomasmetal23

🏠
Working from home
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am tomasmetal23 on github.
  • I am tomasmetal23 (https://keybase.io/tomasmetal23) on keybase.
  • I have a public key ASAdrTV43HjCF4VCJ9bmyA6zememYHQ_mef2l8OwX2Pz-wo

To claim this, I am signing this object:

View install-openresolv-All-Linux-Dist
cd ~
wget https://repo.saiyans.com.ve/openresolv-3.9.2.tar.xz
tar xf openresolv-3.9.2.tar.xz
cd openresolv-3.9.2
./configure
make
make install
cd ..
rm -rf openresolv-3.9.2*
View wireguard-network-manager.sh
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
View network-manager-wireguard-buster.sh
cd ~
git clone https://github.com/tomasmetal23/network-manager-wireguard.git
cd network-manager-wireguard
./autogen.sh
./configure --prefix=/usr \
--without-libnm-glib \
--sysconfdir=/etc \
--libdir=/usr/lib/x86_64-linux-gnu \
--libexecdir=/usr/lib/NetworkManager \
--localstatedir=/var
View wireguard-network-manager-fedora-suse.sh
cd ~
git clone https://github.com/tomasmetal23/network-manager-wireguard.git
cd network-manager-wireguard
./autogen.sh
./configure \
--without-libnm-glib
make install
cd ..
rm -rf network-manager-wireguard
systemctl restart NetworkManager
@tomasmetal23
tomasmetal23 / postemail-traefikv1-docker-compose.yml
Created Feb 6, 2020
mail server with posteio container for traefik v1.7
View postemail-traefikv1-docker-compose.yml
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
View netdata-compose.yml
version: '3'
services:
netdata:
image: netdata/netdata
hostname: saiyans.com.ve # set to fqdn of host
# ports:
# - 19999:19999
cap_add:
- SYS_PTRACE
security_opt:
@tomasmetal23
tomasmetal23 / traefik.toml
Created Apr 20, 2020
ejemplo de la configuración del archivo .toml del traefik
View traefik.toml
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 / run-traefik-with-cloudflare
Created Apr 20, 2020
comando para ejecutar nuestro contenedor de traefik con la api de cloudflare
View run-traefik-with-cloudflare
docker run -d -e CLOUDFLARE_EMAIL=logincloudflare -e CLOUDFLARE_API_KEY=apiglobal \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /opt/traefik/traefik.toml:/traefik.toml \
-v /opt/traefik/servers.toml:/servers.toml \
-v /opt/traefik/acme.json:/acme.json \
-p 80:80 \
-p 443:443 \
-l traefik.frontend.rule=Host:monitor.tudominio.com \
-l traefik.port=8080 \
--network web \
@tomasmetal23
tomasmetal23 / portainer-compose.yml
Created Apr 20, 2020
docker-compose para desplegar portainer con traefik v1.7.*
View portainer-compose.yml
version: "3"
services:
app:
image: portainer/portainer:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/data/portainer:/data
networks:
- web