Skip to content

Instantly share code, notes, and snippets.

View hesoyamcode's full-sized avatar
💭
I may be slow to respond.

fu hesoyamcode

💭
I may be slow to respond.
  • Singapore
View GitHub Profile
@hesoyamcode
hesoyamcode / settings.json
Created August 6, 2017 07:08
Remove unstructured error VS Code React App
// Add this following configuration into your VS Code settings.json
// (File->Setting->User Settings)
"files.associations": {
"*.js": "javascriptreact"
}
@hesoyamcode
hesoyamcode / gist:d8df3e8761b68a1f25559f59934c03d5
Last active October 10, 2018 18:37
Error:java.util.concurrent.ExecutionException: java.lang.RuntimeException: AAPT process not ready to receive commands Ubuntu 64
Set Env variabel (type in your terminal) or set it on .bashrc or .bash_profile
===============================================================================
export ANDROID_HOME=/home/fuadaip/Android/Sdk
export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
intall if not installed
===============================================================================
sudo apt-get install lib32stdc++6
sudo apt-get install lib32z1
create assets folder inside android/app/src/main if not exist
react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res
react-native run-android
ng build --production --aot false
git rm -r --cached <folder>
sudo systemd-resolve --flush-caches
See if caches removed
sudo systemd-resolve --statistics
ENV=staging npm run xxxx
@hesoyamcode
hesoyamcode / PM2 error cannot find module ProcessContainerFork.js
Created September 30, 2017 18:01
PM2 cannot find module pm2/lib/ProcessContainerFork.js
rm -rf ~/.pm2
/*========== Mobile First Method ==========*/
/* Custom, Extra Small Devices, Phones, iPhone Retina */
@media only screen and (min-width: 320px) and (max-width: 767px) {}
/* Small Devices, Tablets */