Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View juniorcesarabreu's full-sized avatar
🏠
Working from home

Júnior César Abreu juniorcesarabreu

🏠
Working from home
View GitHub Profile
@juniorcesarabreu
juniorcesarabreu / 0_reuse_code.js
Created March 25, 2017 12:00
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@juniorcesarabreu
juniorcesarabreu / Change Editor Theme for Code::Blocks.md
Last active June 30, 2017 20:24 — forked from yzhong52/colour_themes.conf
Change Editor Theme for Code::Blocks

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.

/*
* Copyright (C) 2014 skyfish.jy@gmail.com
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@juniorcesarabreu
juniorcesarabreu / CursorRecyclerAdapter.java
Created February 12, 2018 15:47 — forked from Shywim/CursorRecyclerAdapter.java
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
@juniorcesarabreu
juniorcesarabreu / MultipleDevicesOverTCP.md
Last active January 23, 2019 19:01 — forked from teocci/MultipleDevicesOverTCP.md
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:

su
setprop service.adb.tcp.port 5555
stop adbd

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 / ProGuard_ignore_libraries
Created January 7, 2021 17:15 — forked from SeanZoR/ProGuard_ignore_libraries
ProGuard - simple ignore for 3rd party 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.
@juniorcesarabreu
juniorcesarabreu / git-pull-all
Created July 31, 2021 22:27 — forked from grimzy/git-pull-all
Git pull all remote branches
#!/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