Matteo is the Co-Founder and CTO of Platformatic.dev with the goal to remove all friction from backend development. He is also a prolific Open Source author in the JavaScript ecosystem and modules he maintain are downloaded more than 17 billion times a year. Previously he was Chief Software Architect at NearForm, the best professional services company in the JavaScript ecosystem. In 2014, he defended his Ph.D. thesis titled "Application Platforms for the Internet of Things". Matteo is a member of the Node.js Technical Steering Committee focusing on streams, diagnostics and http. He is also the author of the fast logger Pino and of the Fastify web framework. Matteo is an renowed international speaker after more than 60 conferences, including OpenJS World, Node.js Interactive, NodeConf.eu, NodeSummit, JSConf.Asia, WebRebels, and JsDay j
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
VERSION=$1 | |
MODULES=`node -e "console.log(require('./package.json').workspaces.join(' '))"` | |
for MODULE in $MODULES; do | |
echo "Building $MODULE" | |
pushd $MODULE | |
npm version $VERSION --save | |
NAME=`node -e "console.log(require('./package.json').name)"` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sysctl net.core.rmem_default=268435456 | |
sysctl net.core.wmem_default=268435456 | |
sysctl net.core.rmem_max=268435456 | |
sysctl net.core.wmem_max=268435456 | |
sysctl net.core.netdev_max_backlog=100000 | |
sysctl "net.ipv4.tcp_rmem=4096 16384 134217728" | |
sysctl "net.ipv4.tcp_wmem=4096 16384 134217728" | |
sysctl "net.ipv4.tcp_mem=786432 1048576 268435456" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# set-option -g default-command "reattach-to-user-namespace -l /bin/bash" | |
set -g default-terminal "screen-256color" | |
# Pane resizing | |
bind -r H resize-pane -L 5 | |
bind -r J resize-pane -D 5 | |
bind -r K resize-pane -U 5 | |
bind -r L resize-pane -R 5 | |
# splitting panes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const assert = require('node:assert'); | |
const fs = require('node:fs/promises'); | |
const DATA_HOME_URL = 'https://storage.googleapis.com/access-logs-summaries-nodejs/index.html'; | |
const DATA_FILE_PATH = 'data.json'; | |
const DATA_CSV_PATH = 'data.csv'; | |
const DATA_CSV_SEVEN_DAY_PATH = 'data-seven-day-avg.csv'; | |
const LINES = ['14', '16', '18', '19', '20']; | |
async function main() { |
Any organization that designs a system (defined broadly) will produce a design whose structure is a copy of the organization's communication structure.
In order to design a piece of software we need to “design” the team that is going to produce it.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const pinoStdSerializers = require('pino-std-serializers') | |
const logger = require('pino')({ | |
serializers: { | |
error: pinoStdSerializers.err | |
} | |
}) | |
try { | |
throw new Error('kaboom') | |
} catch (error) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { createServer } from 'http' | |
import { connect } from 'net' | |
const server = createServer(function (req, res) { | |
console.log('request!') | |
server.close() | |
res.setHeader('Connection', 'close') | |
res.end('hello world') | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Run this with npx jest globals-jest-problem.test.js | |
// This is because of https://github.com/facebook/jest/issues/2549 | |
const assert = require('assert') | |
test('assert', () => { | |
try { | |
assert.strictEqual(2, 3) | |
} catch (err) { | |
// This will fail |
Sponsor Adventures in Nodeland
Last updated: May 2022
- 1700+ subscribers
- Qualified and engaged audience that like receiving my emails
NewerOlder