Skip to content

Instantly share code, notes, and snippets.

Avatar

José Manuel Martínez Blancas blanks88

View GitHub Profile
@blanks88
blanks88 / kubernetes-cheat-sheet.md
Last active Jan 12, 2022
Kubernetes cheat sheet
View kubernetes-cheat-sheet.md

Login in Docker registry

  1. Create secret
kubectl create secret docker-registry dockerLogin --docker-server=https://index.docker.io/v2/ --docker-username=USER_NAME --docker-password=USER_PSW --docker-email=USER_EMAIL
  1. Implement on deployment
  template:
  ...
 spec:
View Heroku's server.js
const express = require('express');
const path = require('path');
const app = express();
// Run the app by serving the static files
// in the dist directory
app.use(express.static(__dirname + '/dist'));
// Start the app by listening on the default
// Heroku port
app.listen(process.env.PORT || 8080);
// For all GET requests, send back index.html
@blanks88
blanks88 / macbook-initializer.md
Last active Oct 27, 2018
Macbook initializer
View macbook-initializer.md