Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Júnior César Abreu juniorcesarabreu

🏠
Working from home
View GitHub Profile
@juniorcesarabreu
juniorcesarabreu / Disable Firebase Analytics Crashylitcs Android.md
Last active Nov 12, 2021
Desabilitar Firebase Analytcs e Crashlytcs no Android
View Disable Firebase Analytics Crashylitcs Android.md

Desabilitar Firebase Analytcs e Crashlytcs no Android

  • Adicione as variáveis ao build.gradle do módulo:
android {
 /* ... */
View websevice-example-checkin.json
{
"eventId": 1,
"name": "Junior Cesar Abreu",
"email": "junior@email.com"
}
@juniorcesarabreu
juniorcesarabreu / git-pull-all
Created Jul 31, 2021 — forked from grimzy/git-pull-all
Git pull all remote branches
View git-pull-all
#!/usr/bin/env bash
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
git fetch --all
git pull --all
@juniorcesarabreu
juniorcesarabreu / save-file-to-download-folder-android-10-api-29.md
Created Jul 7, 2021
Como criar arquivos de mídia na pasta downloads no Android 10 (API 29) - Problema do Armazenamento por escopo
View save-file-to-download-folder-android-10-api-29.md
@juniorcesarabreu
juniorcesarabreu / De-obfuscating the crash reports.md
Last active Jun 29, 2021
De-obfuscating the Firebase crash reports
View De-obfuscating the crash reports.md

De-obfuscating the Firebase crash reports

Add the following config to app's proguard-rules.pro file:

-keepattributes *Annotation*
-keepattributes SourceFile,LineNumberTable
# prevent Crashlytics obfuscation
-keep class com.google.firebase.crashlytics.** { *; }
-dontwarn com.google.firebase.crashlytics.**
View The Complete List of MIME Types.md
@juniorcesarabreu
juniorcesarabreu / ProGuard_ignore_libraries
Created Jan 7, 2021 — forked from SeanZoR/ProGuard_ignore_libraries
ProGuard - simple ignore for 3rd party libraries
View ProGuard_ignore_libraries
# Ignoring all of the external "org" libraries
# (for example org.apache & org.jackson)
-keep class org.** { *; }
-dontwarn org.**
# Have more? Simply add them like the one above,
# and change to the desired package name.
View scroll-to-text-fragment.md
View Github 2FA to Brazil via SMS.md

Github Two-Factor Authentication (2FA) for Brazil via SMS

The Github doesn't provide country code for Brazil (+55). To add this option, just run the code below in your console:


[PT-BR]

Autenticação em dois fatores (2FA) do GitHub para o Brasil via SMS

@juniorcesarabreu
juniorcesarabreu / sharing-folder-windows-macos-vmware.md
Created Mar 30, 2020
Sharing a folder between windows and mac os x on vmware
View sharing-folder-windows-macos-vmware.md

You need to follow this procedure in order to share files between Windows 7 and Mac OS X on VMWare :

  1. Go in your virtual machine settings and select 'Options' tab.
  2. Click on 'Folder Sharing' and tick 'Always enabled'.
  3. Click on 'Add' button and select a folder you want to share.
  4. Confirm virtual machine settings.
  5. From 'System preferences' on Mac OS X, select 'Sharing'.
  6. Make sure that 'File Sharing' is enabled.
  7. From top menu bar, select 'Go' and 'Computer'.
  8. You will now see a folder named '/'. This is your shared folder between Windows 7 and Mac OS X.