Skip to content

Instantly share code, notes, and snippets.

View Felipe00's full-sized avatar
😤
Banzai!

Felipe Costa Felipe00

😤
Banzai!
  • SulAmérica
  • Brazil - PI
View GitHub Profile
@Felipe00
Felipe00 / playintellijidea.md
Created October 29, 2015 21:12 — forked from ntenisOT/playintellijidea.md
Build and Debug Play 2.3+ using IntellijIdea 14

Download and Installation

Download Play Framework:

 https://www.playframework.com/download

Execute:

./activator ( Mac )

@Felipe00
Felipe00 / debug_via_wifi.sh
Created November 23, 2016 16:39 — forked from Folyd/debug_via_wifi.sh
A shell script let you debug android device via WI-FI.
#!/usr/bin/env bash
#Notice: if unable to connect to [ip]:5555,
#try adb kill-server then try again.
adb shell ip route > addrs.txt
#Case 1:Nexus 7
#192.168.88.0/23 dev wlan0 proto kernel scope link src 192.168.89.48
#Case 2: Smartsian T1,Huawei C8813
#default via 192.168.88.1 dev eth0 metric 30
@Felipe00
Felipe00 / debug_via_wifi.sh
Created November 23, 2016 16:39 — forked from Folyd/debug_via_wifi.sh
A shell script let you debug android device via WI-FI.
#!/usr/bin/env bash
#Notice: if unable to connect to [ip]:5555,
#try adb kill-server then try again.
adb shell ip route > addrs.txt
#Case 1:Nexus 7
#192.168.88.0/23 dev wlan0 proto kernel scope link src 192.168.89.48
#Case 2: Smartsian T1,Huawei C8813
#default via 192.168.88.1 dev eth0 metric 30
package com.example.marcin.splitlayout;
import android.annotation.TargetApi;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.PorterDuff;
import android.graphics.PorterDuffXfermode;
import android.graphics.Region;
@Felipe00
Felipe00 / ChangePassword.java
Created February 21, 2017 03:46 — forked from zach-klippenstein/ChangePassword.java
The keystore password on Java keystore files is utterly pointless. You can reset it without knowing it, as shown by this code. Note that private keys are still secure, as far as I know. The JKS implementation is copyright Casey Marshall ([email protected]), and the original source is available at http://metastatic.org/source/JKS.java. I've in…
import java.util.*;
import java.io.*;
import java.security.*;
public class ChangePassword
{
private final static JKS j = new JKS();
public static void main(String[] args) throws Exception
{
@Felipe00
Felipe00 / CreditCardFormattingTextWatcher.java
Created February 22, 2017 17:57 — forked from epool/CreditCardFormattingTextWatcher.java
Text watcher for giving "#### #### #### ####" format to edit text.
import android.text.Editable;
import android.text.TextWatcher;
/**
* Text watcher for giving "#### #### #### ####" format to edit text.
* Created by epool on 3/14/16.
*/
public class CreditCardFormattingTextWatcher implements TextWatcher {
private static final String EMPTY_STRING = "";
@Felipe00
Felipe00 / SeuController.java
Last active January 22, 2018 17:12 — forked from anonymous/LoginForm.java
Chamando um método do Controller através da View - Play framework
public class SeuController extends Controller {
public Result login() {
System.out.println("Chamando meu método java");
// Aqui vc faz algo...
// retorno pra view...
return ok();
}
@Felipe00
Felipe00 / Readme.md
Created May 15, 2018 04:04 — forked from gabrielemariotti/Readme.md
A SimpleSectionedRecyclerViewAdapter: use this class to realize a simple sectioned `RecyclerView.Adapter`.

You can use this class to realize a simple sectioned RecyclerView.Adapter without changing your code.

The RecyclerView should use a LinearLayoutManager. You can use this code also with the TwoWayView with the ListLayoutManager (https://github.com/lucasr/twoway-view)

This is a porting of the class SimpleSectionedListAdapter provided by Google

Screen

Example:

@Felipe00
Felipe00 / remount.sh
Created February 21, 2019 19:53 — forked from ertseyhan/remount.sh
Temporarily increase size of tmp folder on Arch linux
#!/bin/bash
sudo mount -o remount,size=10G,noatime /tmp
echo "Done. Please use 'df -h' to make sure folder size is increased."