Skip to content

Instantly share code, notes, and snippets.

View muhammad-syaifudin's full-sized avatar

Muhammad Syaifudin muhammad-syaifudin

  • 06:45 (UTC +07:00)
View GitHub Profile
@muhammad-syaifudin
muhammad-syaifudin / del_vscode_mac.md
Created October 25, 2023 01:41 — forked from karansinghgit/del_vscode_mac.md
How to completely uninstall VSCode on Mac
  1. Close and Quit VSCode

  2. Remove VScode from Applications (just go to Finder -> Applications and move VSCode to Bin)

  3. Execute these commands in any order. The paths might be slightly different for you.

rm -fr ~/.vscode*
rm -fr ~/Library/Application\ Support/Code/

rm -fr ~/Library/Saved\ Application\ State/com.microsoft.VSCode.savedState/
rm -fr ~/Library/Preferences/com.microsoft.VSCode.helper.plist 
@muhammad-syaifudin
muhammad-syaifudin / package.json
Last active October 11, 2023 09:16
Expo on WSL2
{
"name": "expo-wsl2",
"version": "1.0.0",
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"start": "expo start",
"start:wsl": "REACT_NATIVE_PACKAGER_HOSTNAME=$(netsh.exe interface ip show address 'Wi-Fi' | grep -a 'IP' | grep -oP '\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}'| awk '{print $1}') expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web"
@muhammad-syaifudin
muhammad-syaifudin / docker-mysqldump.md
Last active September 20, 2022 12:01
mysqldump on docker

Backup MySQL to SQL File

Backup to SQL

docker exec <container_id> /usr/bin/mysqldump -u <username> --password=<password> --no-tablespaces <database_name> > backup.sql

Restore from SQL

Add a static route temporarily

sudo route -n add -net 10.0.0.0/8 10.254.169.190

To verify the route you added:

netstat -rn | grep 10.0.0.0

Install Android SDK CLI Ubuntu 20.04 WSL2 (Work in Progress)

Install Java 8

sudo apt update && sudo apt install openjdk-8-jdk-headless unzip

Android SDK