- add origin named "upstream" to the forked repo
git remote add upstream https://github.com/OWNER/REPOSITORY.git| // Performance benchmarks: noop function vs optional chaining | |
| const { performance } = require('perf_hooks'); | |
| // Test subjects | |
| function noop() {} | |
| function testNoop() { | |
| noop(); | |
| } |
| const t = require('tap') | |
| const cases = [ | |
| { | |
| matrix: [3, 5, 1, 3, 6, 2], | |
| cols: 1, | |
| result: [1, 2, 3, 3, 5, 6] | |
| }, | |
| { |
| const http = require('http') | |
| const PORT = 3000 | |
| const server = http.createServer((req, res) => { | |
| req.on('aborted', () => { | |
| console.log('>>>>>> server event request aborted') | |
| }) | |
| res.writeHead(200, { 'Content-Type': 'text/plain' }) |
| var express = require('express') | |
| var app = express() | |
| const etag = process.argv[2] == 'ON' | |
| app.listen(9876, () => process.stdout.write('start')) | |
| app.use(express.static('public', { etag })); |
sudo systemd-resolve --flush-caches| const http = require('http') | |
| const baseUrl = 'httpbin.org' | |
| http.createServer((request, response) => { | |
| const forward = http.request({ | |
| host: baseUrl, | |
| path: request.url, | |
| method: request.method, | |
| headers: request.headers |
| @babel | |
| :registry=https://registry.npmjs.org | |
| registry=https://pkgs.dev.azure.com/companyname/FrontendProject/_packaging/RegistryName/npm/registry/ | |
| always-auth=true | |
| ; begin auth token | |
| //https://pkgs.dev.azure.com/companyname/FrontendProject/_packaging/RegistryName/npm/registry/:username=simone | |
| //https://pkgs.dev.azure.com/companyname/FrontendProject/_packaging/RegistryName/npm/registry/:_password=password | |
| //https://pkgs.dev.azure.com/companyname/FrontendProject/_packaging/RegistryName/npm/registry/:email=npm requires email to be set but doesn't use the value |