Skip to content

Instantly share code, notes, and snippets.

@loicbourg
loicbourg / next.config.js
Last active December 27, 2021 12:50
copy workbox webpack config
const CopyPlugin = require('copy-webpack-plugin');
const path = require('path');
const moduleFileExtensions = [
'.dev.js',
'.dev.js.map',
'.prod.js',
'.prod.js.map',
];
@loicbourg
loicbourg / bench-index.js
Created September 14, 2018 15:31
bench index
const list = {
'a': null,
'b': null,
'c': null,
'd': null,
'e': null,
'f': null,
'g': null,
@loicbourg
loicbourg / bench-list.js
Created September 14, 2018 15:31
bench-list
const list = [
'a',
'b',
'c',
'd',
'e',
'f',
'g',
'h',
'i',
@loicbourg
loicbourg / dashboard.json
Last active August 17, 2018 16:51
json dashboard grafana
{
"annotations": {
"list": [{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no