Skip to content

Instantly share code, notes, and snippets.

View longht021189's full-sized avatar
🥺
I may be slow to respond.

Long Huỳnh longht021189

🥺
I may be slow to respond.
  • Hồ Chí Minh City
  • 02:48 (UTC +07:00)
View GitHub Profile
@longht021189
longht021189 / use-jest-in-ts-project.md
Created April 16, 2024 02:19
Use jest to test typescript
  1. Add devDependencies: @babel/preset-env, @babel/preset-typescript, @types/jest, jest
  2. Create babel.config.js file:
module.exports = {
  presets: [
    [
      '@babel/preset-env', { targets: { node: 'current' } }
    ],
    '@babel/preset-typescript',
 ],
@longht021189
longht021189 / setup.sh
Created January 25, 2023 05:10
Setup My Computer
# Install iTerm v2
curl -L https://iterm2.com/downloads/stable/iTerm2-3_4_19.zip -o iterm2.zip
unzip iterm2.zip
mv /Users/thanhlong/Downloads/iTerm.app /Applications/iTerm.app
# Install Brew
# Install Minikube + Docker + Docker Compose
# Install VSCode
# Install Firefox
@longht021189
longht021189 / VSCode-DevContainer.md
Last active January 25, 2023 07:20
Fix some issues with DevContainer in VSCode

with Minikube

  • bad performance
minikube start --cpus='max' --memory='max'
  • buildx not found
brew install docker-buildx
ln -s $(which docker-buildx) $HOME/.docker/cli-plugins/docker-buildx
@longht021189
longht021189 / Build V8 - Note.md
Last active June 7, 2021 02:28
Build V8 - Note

Build V8 Note

Step by step:

git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git ~/.v8/depot_tools
export PATH=~/.v8//depot_tools:$PATH
gclient
cd path/to/v8/folder
fetch v8