Some import code bash and js snippets

January 24, 2024 (8mo ago)

The collection of the important snippets.

  openssl rand -hex 32
const promise1 = Promise.resolve(3);
const promise2 = 42;
const promise3 = new Promise((resolve, reject) => {
  setTimeout(resolve, 5000, "foo");
});
Promise.all([promise1, promise2, promise3]).then((values) => {
  console.log(values);
});