Skip to content

Instantly share code, notes, and snippets.

Working from home

Júnior César Abreu juniorcesarabreu

Working from home
View GitHub Profile
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 / 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 Github 2FA to Brazil via

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:


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

juniorcesarabreu /
Last active Jan 23, 2019 — forked from teocci/
How to connect multiple Android devices with ADB over TCP

How to connect multiple Android devices with ADB over TCP

From your device, if it is rooted

According to a post on xda-developers, you can enable ADB over Wi-Fi from the device with the commands:

setprop service.adb.tcp.port 5555
stop adbd
juniorcesarabreu /
Created Feb 12, 2018 — forked from Shywim/
A custom Adapter for the new RecyclerView, behaving like the CursorAdapter class from previous ListView and alike. Now with Filters and updated doc.
* The MIT License (MIT)
* Copyright (c) 2014 Matthieu Harlé
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* Copyright (C) 2014
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* Unless required by applicable law or agreed to in writing, software
View Change Editor Theme for

Make sure Code::Block is closed. Run cb_share_config.exe. It should be under the folder where you install Code::Block. Load colour_themes.conf on your left and default.conf on your right. Select the themes that you want to import to Code::Block by clicking the check boxes on the left and then select Transfer>>> and Save. I will recommend select them all.

View colortext.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
juniorcesarabreu / 0_reuse_code.js
Created Mar 25, 2017
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console