Skip to content

Instantly share code, notes, and snippets.

View halysongoncalves's full-sized avatar

Halyson Lima Gonçalves halysongoncalves

View GitHub Profile
@halysongoncalves
halysongoncalves / amazon_appstore_submission.py
Created February 15, 2023 20:22 — forked from JesusM/amazon_appstore_submission.py
Python script to submit apps to Amazon AppStore
import requests
import sys
from pathlib import Path
# Arguments you need to provide:
# 1.- client_id = Amazon client API id
# 2.- client_secret = Amazon client API secret
# 3.- app_id = Amazon app id
# 4.- local_apk_path = Path for the apk file to submit
arguments = sys.argv
public class SessionController {
private static final String BOB = "bob";
private static final String ALICE = "alice";
private static final String KEY_PUBLIC = "KEY_PUBLIC";
private static final String KEY_PRIVATE = "KEY_PRIVATE";
private static final String PROVIDER = "SC";
private static final String CURVE = "secp256K1";
private static final String ALGORITHM = "ECDH";
private final ECParameterSpec ecNamedCurveParameterSpec = ECNamedCurveTable.getParameterSpec(CURVE);
@halysongoncalves
halysongoncalves / ECDH_BC.java
Created July 13, 2016 19:59 — forked from wuyongzheng/ECDH_BC.java
Elliptic curve Diffie–Hellman using Bouncy Castle v1.50 example code
import java.math.BigInteger;
import java.security.PublicKey;
import java.security.PrivateKey;
import java.security.KeyFactory;
import java.security.Security;
import java.security.KeyPairGenerator;
import java.security.KeyPair;
import java.security.SecureRandom;
import java.security.spec.PKCS8EncodedKeySpec;
import java.security.spec.ECGenParameterSpec;
@halysongoncalves
halysongoncalves / gist:8acf304408393ae17ed3
Created March 28, 2016 12:40
CallbackRequest Retrofit 2.0
import android.util.Log;
import java.io.IOException;
import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;
/**
import android.util.Log;
import com.google.gson.Gson;
import com.google.gson.annotations.SerializedName;
import java.io.IOException;
import retrofit.Callback;
import retrofit.Response;
import retrofit.Retrofit;
@halysongoncalves
halysongoncalves / maven.gradle
Created December 9, 2015 14:41
Maven Publish
apply plugin: 'maven'
apply plugin: 'signing'
def isReleaseBuild() {
return VERSION_NAME.contains("SNAPSHOT") == false
}
def getReleaseRepositoryUrl() {
return hasProperty('RELEASE_REPOSITORY_URL') ? RELEASE_REPOSITORY_URL
: "https://oss.sonatype.org/service/local/staging/deploy/maven2/"