Skip to content

Instantly share code, notes, and snippets.

View escandihub's full-sized avatar
🎯
Focusing

Alex escandihub

🎯
Focusing
View GitHub Profile
@RobinCPC
RobinCPC / wine_setup.md
Last active January 13, 2025 01:31
Wine Setup

Install Wine with Mono & Gecko in Ubuntu 20.04

Warning: Do not try those command in your main PC, I test in a virtual Machine

Note: Most of commands are from the Dockerfile in Reference section. If you want to test wine, just run their docker container

1. Setup PPA

sudo dpkg --add-architecture i386
wget -qO - https://dl.winehq.org/wine-builds/winehq.key | sudo tee /etc/apt/trusted.gpg.d/winehq.asc
@joeytwiddle
joeytwiddle / async-await-forEach-alternatives.md
Last active April 24, 2025 05:32
Do not use forEach with async-await

Do not use forEach with async-await

TLDR: Use for...of instead of forEach() in asynchronous code.

For legacy browsers, use for...i or [].reduce()

To execute the promises in parallel, use Promise.all([].map(...))

The problem