Skip to content

Instantly share code, notes, and snippets.

View a-barbieri's full-sized avatar
🛸
glidin

Alessandro a-barbieri

🛸
glidin
View GitHub Profile
@a-barbieri
a-barbieri / server.js
Created July 13, 2020 15:10 — forked from edolyne/server.js
Dynamic Sitemap creation for NextJS based projects
const express = require('express');
const next = require('next');
const sm = require('sitemap');
const axios = require('axios');
const port = parseInt(process.env.PORT, 10) || 3000;
const dev = process.env.NODE_ENV !== 'production';
const app = next({ dev });
const handle = app.getRequestHandler();
@a-barbieri
a-barbieri / README.md
Created July 16, 2018 13:27 — forked from hofmannsven/README.md
My simply MySQL Command Line Cheatsheet
@a-barbieri
a-barbieri / gist:96935a129a628cc054df5cc8bb47328f
Created February 28, 2018 10:15 — forked from tylerlee/gist:53609bff1346cebf8f0a85b6be29a88e
whitelist for uploads: extensions and mimetypes
{
// Image Formats
"jpg": "image/jpeg",
"jpeg": "image/jpeg",
"gif": "image/gif",
"png": "image/png",
"bmp": "image/bmp",
"tiff": "image/tiff",
"tif": "image/tiff",