Skip to content

Instantly share code, notes, and snippets.

Avatar

Nazar Sukhovych naz013

View GitHub Profile
View gist:4a214413b88c85679e1dba96ffa7dad6
{
"account":{
"Account":[
{
"Identification":"30104700045652",
"Name":"Ian Black",
"SchemeName":"UK.OBIE.SortCodeAccountNumber"
}
],
"AccountId":"1cc57068-afc8-4628-99d1-c6f0d83b04a7",
View Balance Request
POST https://tsb.simulator.miapago.com/api/v2.0/consents/4a074/c36bb/accounts/1cc57068-afc8-4628-99d1-c6f0d83b04a7/balances
BODY
{
"account":{
"Account":[
{
"Identification":"30104700045652",
"Name":"Ian Black",
"SchemeName":"UK.OBIE.SortCodeAccountNumber"
View config.java
public String getConfigFile(Context context, boolean configForOvpn3) {
boolean isDebug = BuildConfig.DEBUG && PrefUtils.getBoolean(context, PrefUtils.USE_CUSTOM, false);
File cacheDir = context.getCacheDir();
String cfg = "";
// Enable management interface
cfg += "# Enables connection to GUI\n";
cfg += "management ";
cfg += cacheDir.getAbsolutePath() + "/" + "mgmtsocket";
View cutom_config.java
public String getCustomConfigFile(Context context) {
boolean isDebug = BuildConfig.DEBUG && PrefUtils.getBoolean(context, PrefUtils.USE_CUSTOM, false);
File cacheDir = context.getCacheDir();
String cfg = "";
// Enable management interface
cfg += "# Enables connection to GUI\n";
cfg += "management ";
cfg += cacheDir.getAbsolutePath() + "/" + "mgmtsocket";
cfg += " unix\n";
View ndk crash
F/jni_primitives.h:109 'detRetClass' Must be non NULL
A/native: terminating.
A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 13904 (xyz.gateguard), pid 13904 (xyz.gateguard)
View LocationTracker
@SuppressWarnings("MissingPermission")
public class LocationTracker implements LocationListener {
private Context mContext;
private LocationManager mLocationManager;
private Callback mCallback;
public LocationTracker(Context context, Callback callback) {
this.mContext = context;
this.mCallback = callback;