Skip to content

Instantly share code, notes, and snippets.

@testica
testica / country-code.json
Last active April 26, 2018 20:24
List of countries in Spanish libphonenumber compatible
[
{"code": "AF", "name": "Afganistán"},
{"code": "AX", "name": "Islas Aland"},
{"code": "AL", "name": "Albania"},
{"code": "DZ", "name": "Argelia"},
{"code": "AS", "name": "Samoa Americana"},
{"code": "AD", "name": "Andorra"},
{"code": "AO", "name": "Angola"},
{"code": "AI", "name": "Anguila"},
{"code": "AG", "name": "Antigua y Barbuda"},
@testica
testica / agentx_get_backup.sh
Last active December 11, 2018 10:05
Shell script to extract backup files from android application via adb
#!/bin/bash
# Script to make and get android application backup (databases-extract purpose)
# Use: agentx_get_backup <package_name>
# Example: agentx_get_backup com.ltapps.textscanner
package_name=$1
echo ">>>>>> Please, accept backup creation (set password when device is encrypted) <<<<<<"
# Execute backup create command
adb backup -f /var/tmp/backup.ab -noapk $package_name
@testica
testica / Shop.java
Last active July 7, 2023 03:17
Shop class from StayFree decompile app
package com.burockgames.timeclocker.shop;
import android.app.Dialog;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.support.v7.app.e;
import android.support.v7.widget.Toolbar;
import android.view.LayoutInflater;
@testica
testica / Shop.d.java
Last active December 20, 2018 01:54
D function of Shop class
private String d() {
try {
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("ddMM", Locale.getDefault());
StringBuilder stringBuilder = new StringBuilder();
stringBuilder.append(this.b.k());
stringBuilder.append(simpleDateFormat.format(Long.valueOf(System.currentTimeMillis())));
String stringBuilder2 = stringBuilder.toString();
int i = 0;
int parseInt = Integer.parseInt(this.b.k().substring(0, 2));
int parseInt2 = Integer.parseInt(this.b.k().substring(2, 4));
@testica
testica / .git-aliases
Created March 18, 2019 14:06
Git aliases
# Pretty log format
logdog = log --all --decorate --oneline --graph
# Prune local branches according to remote ones
clean-branches = remote prune origin