Skip to content

Instantly share code, notes, and snippets.

Avatar
🧟
Zombie processes haunting the computer

Facu de la Cruz fmdlc

🧟
Zombie processes haunting the computer
View GitHub Profile
@fmdlc
fmdlc / Dockerfile
Created Oct 31, 2020
Dockerfile build multistage
View Dockerfile
### STAGE 1: clone ###
FROM node:12.16.3-alpine3.9 AS clone
LABEL mantainer="Facu de la Cruz <fmdlc.unix@gmail.com>"
LABEL type="builder"
WORKDIR /usr/src/frontend
# We need to install those packages to use npm
# A few repositories are cloned by using Git over SSH
View gist:1b26a0c936775bae5bc4d4e79cec8208
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Initial node
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
sudo curl -sfL https://get.k3s.io | \
INSTALL_K3S_CHANNEL=testing \
K3S_KUBECONFIG_MODE=644 sh -s - --cluster-init
- The initial token can be found in: /var/lib/rancher/k3s/server/node-token
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@fmdlc
fmdlc / nginx.conf
Created Feb 21, 2016 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
View nginx.conf
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048