Skip to content

Instantly share code, notes, and snippets.

View naugtur's full-sized avatar
🧉

Zbyszek Tenerowicz naugtur

🧉
View GitHub Profile
const asyncOk = async () => {
return new Promise(re => setTimeout(re, 0))
}
const asyncFail = async () => {
return new Promise((_, re) => setTimeout(() => re(Error()), 0))
}
const run1 = async () => {
try {
const [a, b] = [asyncFail(), asyncOk()]
@naugtur
naugtur / GetOptimizationStatus.md
Created August 9, 2019 21:08 — forked from justjavac/GetOptimizationStatus.md
V8 %GetOptimizationStatus

%GetOptimizationStatus return a set of bitwise flags instead of a single value, to access the value, you need to take the binary representation of the returned value. Now, for example, if 65 is returned, the binary representation is the following:

(65).toString(2).padStart(12, '0');
// 000001000001

Each binary digit acts as a boolean with the following meaning:

A developer's take on security

A security talk is often a hacker showing off what they can do and how you should defend.

I'm not a hacker. At least I never considered myself one in my adult life.

My team at Egnyte is running an ever-growing number of small integrations to make big apps work together.

I happened to be in the middle of a maintenance run across 30 repositories when a bunch of new vulnerabilities in popular npm packages were published. What follows is a story of good security practices at scale: 30 failed pipelines, lots of teeth grinding and finally - automation.

@naugtur
naugtur / fbwrkplc-webhook-proposal.md
Last active March 22, 2018 07:39
fbwrkplc-webhook-proposal

Link finalizatin for link collection+preview hook

Comments indicate proposed changes.

link>collection

response:

introduce linkIsFinal

@naugtur
naugtur / minutes.md
Created July 11, 2017 06:21
wg-meeting-bot generated meeting minutes

WG Meeting 2017/9/8

from tag: diag-agenda

Agenda

  • Integrate C++ AsyncHooks Embedder API with native abstraction node#13254
  • Missing async callstacks on setTimeout node#11370
  • async_hooks does not currently provide a way to track causality for a PromiseReactionJob node#13437
  • [async_hooks] tracking issue diagnostics#29
@naugtur
naugtur / minutes.md
Created July 10, 2017 20:45
wg-meeting-bot generated meeting minutes

WG Meeting 6/2017

from tag: diag-agenda

Agenda

  • Integrate C++ AsyncHooks Embedder API with native abstraction node#13254
  • Missing async callstacks on setTimeout node#11370
  • async_hooks does not currently provide a way to track causality for a PromiseReactionJob node#13437
  • [async_hooks] tracking issue diagnostics#29
@naugtur
naugtur / minutes.md
Created July 10, 2017 20:43
wg-meeting-bot generated meeting minutes

WG Meeting 6/2017

from tag: diag-agenda

Agenda

  • Integrate C++ AsyncHooks Embedder API with native abstraction node#13254
  • Missing async callstacks on setTimeout node#11370
  • async_hooks does not currently provide a way to track causality for a PromiseReactionJob node#13437
  • [async_hooks] tracking issue diagnostics#29
@naugtur
naugtur / minutes.md
Created July 10, 2017 20:20
wg-meeting-bot generated meeting minutes

WG Meeting 6/2017

from tag: diag-agenda

Agenda

  • Integrate C++ AsyncHooks Embedder API with native abstraction node#13254
  • Missing async callstacks on setTimeout node#11370
  • async_hooks does not currently provide a way to track causality for a PromiseReactionJob node#13437
  • [async_hooks] tracking issue diagnostics#29
@naugtur
naugtur / minutes.md
Created July 10, 2017 20:03
wg-meeting-bot generated meeting minutes

WG Meeting 6/2017

diag-agenda

Agenda

  • Integrate C++ AsyncHooks Embedder API with native abstraction node#13254
  • Missing async callstacks on setTimeout node#11370
  • async_hooks does not currently provide a way to track causality for a PromiseReactionJob node#13437
  • [async_hooks] tracking issue diagnostics#29
@naugtur
naugtur / minutes.md
Created July 10, 2017 20:02
wg-meeting-bot generated meeting minutes
# WG Meeting 6/2017
*diag-agenda*

## Agenda

* Integrate C++ AsyncHooks Embedder API with native abstraction [node#13254](https://github.com/nodejs/node/issues/13254)
  • Missing async callstacks on setTimeout node#11370
  • async_hooks does not currently provide a way to track causality for a PromiseReactionJob node#13437
  • [async_hooks] tracking issue diagnostics#29