Skip to content

Instantly share code, notes, and snippets.

View Bruno-Furtado's full-sized avatar
👊
Don’t find fault, find a remedy.

Bruno Tortato Furtado Bruno-Furtado

👊
Don’t find fault, find a remedy.
View GitHub Profile
@Bruno-Furtado
Bruno-Furtado / adb.sh
Last active January 28, 2020 13:37
Android Debug Bridge commands
# Get all the logs from device
adb logcat *:V > "adb_all_verbose.txt"
# Get the errors logs from device
adb logcat *:E > "adb_all_errors.txt"
# Get all the app logs from device
adb logcat com.example.app:V > "adb_app_verbose.txt"
# Get the app errors logs from device
@Bruno-Furtado
Bruno-Furtado / nosleep.sh
Created June 26, 2019 23:23
Completely disable sleep on any Mac
# Useful to prevent Macbooks to go to sleep when closing the lid instead of running tools that requires a Kernel Extension (e.g. InsomniaX) and more
sudo pmset -a sleep 0; sudo pmset -a hibernatemode 0; sudo pmset -a disablesleep 1;
# And to go back to normal:
sudo pmset -a sleep 1; sudo pmset -a hibernatemode 25; sudo pmset -a disablesleep 0;
@Bruno-Furtado
Bruno-Furtado / ios_xcarchive-to-ipa.txt
Created March 30, 2018 14:07
Convert Xcarchive to IPA
xcodebuild
-exportArchive
-exportOptionsPlist {PATH_TO_PROJECT_ROOT}/ios/build/info.plist
-archivePath {PATH_TO_ARCHIVE_MADE_USING_XCODE}/App.xcarchive
-exportPath {PATH_TO_EXPORT_THE_APP}/App.ipa
@Bruno-Furtado
Bruno-Furtado / react-native_init.sh
Last active December 23, 2018 11:36
Create and Run a New React Native Project
#Requirements:
# - MacOS 10.13.3
# - Homebrew
# - Node/NPM
# - Watchman
# - React Native CLI
# - Atom (with linter, linter-eslint and linter-ui-default packages)
# 1 - create a new react native project
react-native init <project_name> --package <com.example.project_name>