yarn add react-native-config
react-native link react-native-config
- Create
.env
files for each configuration. Ex:.env.dev
,.env.prod
, etc Ex:
API_ENDPOINT=https://api.myresource.com/dev
ENV=dev
yarn add react-native-config
react-native link react-native-config
.env
files for each configuration. Ex: .env.dev
, .env.prod
, etc
Ex:API_ENDPOINT=https://api.myresource.com/dev
ENV=dev
https://wiki.strongswan.org/projects/strongswan/wiki/AndroidVPNClientBuild
./autogen.sh && ./configure && make dist
#!/bin/sh | |
# yum install android-tools -y | |
yum install java-1.8.0-openjdk-devel | |
mkdir -p android-sdk-linux | |
cd android-sdk-linux | |
# @see https://developer.android.com/studio/index.html | |
wget --output-document=android-sdk.zip --quiet https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip | |
unzip android-sdk.zip | |
rm -f android-sdk.zip | |
yes | tools/bin/sdkmanager --licenses |
export ZSH=$HOME/.oh-my-zsh | |
export DEFAULT_USER='athityakumar' | |
TERM=xterm-256color | |
ZSH_THEME="powerlevel9k/powerlevel9k" | |
POWERLEVEL9K_MODE='awesome-fontconfig' | |
POWERLEVEL9K_PROMPT_ON_NEWLINE=true | |
POWERLEVEL9K_PROMPT_ADD_NEWLINE=true | |
POWERLEVEL9K_RPROMPT_ON_NEWLINE=true | |
POWERLEVEL9K_SHORTEN_DIR_LENGTH=2 |
BIG iOS URL SCHEME LIST | |
HAD TO MAKE A DROPBOX FILE BECAUSE THIS LIST WAS TOO LONG TO POST IN THE COMMENTS OR NOT MAKE THE WORKFLOW APP TAKE FOREVER TO READ IT. | |
☠JAILBREAK/SYSTEM APPS | |
-------------------------- | |
activator:// | |
itms-apps:// | |
itms-services:// |
var UUID: String? { | |
return keychain[Constants.Keychain.UUID.description] ?? { | |
let string = UIDevice.currentDevice().identifierForVendor?.UUIDString | |
keychain[Constants.Keychain.UUID.description] = string | |
return string | |
}() | |
} |
package com.enginebai.sample; | |
import android.content.Context; | |
import android.location.Location; | |
import android.location.LocationListener; | |
import android.location.LocationManager; | |
import android.os.Bundle; | |
import android.support.design.widget.FloatingActionButton; | |
import android.support.design.widget.Snackbar; | |
import android.support.v7.app.AppCompatActivity; |
https://wiki.strongswan.org/projects/strongswan/wiki/AndroidVPNClientBuild
./autogen.sh && ./configure && make dist
// status bar height | |
int statusBarHeight = 0; | |
int resourceId = getResources().getIdentifier("status_bar_height", "dimen", "android"); | |
if (resourceId > 0) { | |
statusBarHeight = getResources().getDimensionPixelSize(resourceId); | |
} | |
// action bar height | |
int actionBarHeight = 0; | |
final TypedArray styledAttributes = getActivity().getTheme().obtainStyledAttributes( |
<?php | |
// API access key from Google API's Console | |
define( 'API_ACCESS_KEY', 'YOUR-API-ACCESS-KEY-GOES-HERE' ); | |
$registrationIds = array( $_GET['id'] ); | |
// prep the bundle | |
$msg = array |