Skip to content

Instantly share code, notes, and snippets.

View diegorribeiro's full-sized avatar

Diego Ribeiro diegorribeiro

View GitHub Profile
@diegorribeiro
diegorribeiro / Android_Studio_Remove.MD
Last active October 27, 2022 23:52
Remove Android-Studio completely on Mac [Android, Emulators, Platform Tools and More]

Execute these commands in the terminal (excluding the lines with hashtags - they're comments):

Deletes the Android Studio application

Note that this may be different depending on what you named the application as, or whether you downloaded the preview version

rm -Rf /Applications/Android\ Studio.app

Delete All Android Studio related preferences

The asterisk here should target all folders/files beginning with the string before it

rm -Rf ~/Library/Preferences/AndroidStudio* rm -Rf ~/Library/Preferences/Google/AndroidStudio*

Deletes the Android Studio's plist file

@diegorribeiro
diegorribeiro / generate_key.sh
Created October 27, 2022 13:40
[rn][mac][mobile,build,release] Create keystore to build signed APP android
sudo keytool -genkey -v -keystore my-upload-key.keystore -alias my-key-alias -keyalg RSA -keysize 2048 -validity 10000
@diegorribeiro
diegorribeiro / androidRelease.whitelabel.sh
Created August 31, 2021 18:54
Run react-native whitelabel project with appIdSuffix and open .MainActivity
## Add --appIdSuffix to fix error 3 on start activity
npx react-native run-android --variant=productionRelease --appIdSuffix "//insert id suffix here"
@diegorribeiro
diegorribeiro / adb.sh
Created October 3, 2020 22:19
Adb broadcast sent referrer
adb shell
am broadcast -a com.android.vending.INSTALL_REFERRER -n your.package/path.to.your.BroadcastReceiver --es "referrer" "test_referrer=test"
@diegorribeiro
diegorribeiro / spring-boot.sh
Last active April 15, 2020 12:55
Java Spring run
#brew install maven
#brew tap pivotal/tap
#brew install spring-boot
#access your project folder and run..
mvn clean install
java -jar target/#NAMEOFFILE.jar
@diegorribeiro
diegorribeiro / RCTModuleMethod.m
Created January 28, 2020 17:17
Fix build react-native ios 13 XCode 11.3.1
#node_modules/react-native/React/Base/RCTModuleMethod.mm
##and update below code
static BOOL RCTParseUnused(const char **input)
{
return RCTReadString(input, "__attribute__((unused))") ||
RCTReadString(input, "__attribute__((__unused__))") ||
RCTReadString(input, "__unused");
}
@diegorribeiro
diegorribeiro / install_guide.sh
Last active December 13, 2018 18:38
Phalcon 3.3.2 not work in Ubuntu server 18.04 (Bionic), return 500
## 1 - Instal php7.2
## 2 - Install apache2
## 3 - Install mysql-server
## 4 - Instal php-phalcon
###
a2enmod rewrite && a2enmod headers
@diegorribeiro
diegorribeiro / example.sh
Created December 6, 2018 11:21
Simple Jarsigner for certified stores
jarsigner -keystore <keystore_file> -storepass <storepassword> <filenameTosigned> <alias>
@diegorribeiro
diegorribeiro / canberra-get.sh
Created October 24, 2018 21:26
Failed to load module "canberra-gtk-module" in Ubuntu 18.04 [64-bit system]
sudo apt install libcanberra-gtk-module
@diegorribeiro
diegorribeiro / package.json
Created October 23, 2018 13:41
Error with npm install npm ERR! Invalid version: "1.0"
{
"name": "colaboradores",
- "version": "1.7.7",
+ "version": "2.0", //"2.0" is not a valid version as defined by Semantic Versioning. Changing it to "2.0.0" should solve your issue.
"private": true,
"license": "ISC",
"scripts": {}
}