Skip to content

Instantly share code, notes, and snippets.

Working from home

Hugo Marcelo e Silva hugo-marcelo

Working from home
View GitHub Profile
View gist:2932fd0b327ddb832feced4e48f45d7f
Find each occurrence of 'foo' (in all lines), and replace it with 'bar'.
clear file
git push origin +branch
View gist:56c4bee2b3d0c04b87cfe0305e9d2908
1 - Create a file: /etc/wsl.conf.
2 - Put the following lines in the file
generateResolvConf = false
3 - In a cmd window run: wsl --shutdown
4 - Restart WSL2
5- Create a file: /etc/resolv.conf. If it exists, replace existing one with this new file.
7- Put the following lines in the file
6 - Repeat step 3 and 4. You will see git working fine now.
View gist:a203f325b8d7cf88baf85d1a29b46c81
install apk on device
- cd android
- adb -s [DEVICE_ID] -d install ./app/build/outputs/apk/release/app-release.apk
log react native device
- adb -s [DEVICE_ID] logcat *:S ReactNative:V ReactNativeJS:V
gerar apk
- ./gradlew assembleRelease
View gist:9c91c3832308a571b88e315a082285e8
- criar projeto
heroku create [NAME] --remote [NAME]
- acessar projeto
heroku git:remote -a [NAME]
- enviar pasta do projeto
git subtree push --prefix [PASTA] heroku master
- ver os logs