1- Create required config files
$ touch ~/.config/fish/config.fish; nano ~/.config/fish/config.fish
Now copy below:
set --export ANDROID_HOME $ANDROID/sdk;
set -gx PATH $ANDROID_HOME/tools $PATH;
set -gx PATH $ANDROID_HOME/tools/bin $PATH;
<?php | |
function getFallbackToken() | |
{ | |
$date = new DateTime(); | |
$date->add(new DateInterval('PT4H')); | |
echo $date->format('Y-m-d H:i:s'); | |
$expires = $date->format(DateTime::ATOM); | |
$content = json_encode([ | |
'expires' => $expires, |
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="fill_parent" | |
android:layout_height="match_parent"> | |
<!-- TextView to welcome users into the app --> | |
<TextView | |
android:id="@id/logo_text" |
open class AwesomeFragment(var name: String): Fragment(), TextWatcher { | |
public var textToPrependOnTVAfterTextChanged = "Hello " | |
init { | |
// Make sure we don't crash if name is null | |
name = name ?: "" | |
} | |
override fun onCreateView( |
import android.graphics.Color | |
import android.annotation.SuppressLint | |
import android.content.Context | |
import org.json.JSONArray | |
import org.json.JSONException | |
import org.json.JSONObject | |
import java.security.MessageDigest | |
import java.util.regex.Pattern | |
val String.creditCardFormatted: String |
//apply using: android:theme="@style/MyCheckboxTheme" | |
<style name="MyCheckboxTheme" parent="Theme.AppCompat"> | |
<item name="colorAccent">#FFF</item> // Checked color | |
<item name="android:textColorSecondary">#FFF</item> // Checkbox border color | |
</style> |
inline fun <T> measureTimeMillis(loggingFunction: (Long) -> Unit, | |
function: () -> T): T { | |
val startTime = System.currentTimeMillis() | |
val result: T = function.invoke() | |
loggingFunction.invoke(System.currentTimeMillis() - startTime) | |
return result | |
} |
1- Create required config files
$ touch ~/.config/fish/config.fish; nano ~/.config/fish/config.fish
Now copy below:
set --export ANDROID_HOME $ANDROID/sdk;
set -gx PATH $ANDROID_HOME/tools $PATH;
set -gx PATH $ANDROID_HOME/tools/bin $PATH;
The following is an extremely simplified view of how SSL is implemented and what part the certificate plays in the entire process.
Normal web traffic is sent unencrypted over the Internet. That is, anyone with access to the right tools can snoop all of that traffic. Obviously, this can lead to problems, especially where security and privacy is necessary, such as in credit card data and bank transactions. The Secure Socket Layer is used to encrypt the data stream between the web server and the web client (the browser).
SSL makes use of what is known as asymmetric cryptography, commonly referred to as public key cryptography (PKI). With public key cryptography, two keys are created, one public, one private. Anything encrypted with either key can only be decrypted with its corresponding key. Thus if a message or data stream were encrypted with the server's private key, it can be decrypted only using its corresponding public key, ensuring
#!/bin/sh | |
echo "executing post-push hook to make sure lint is not failing the build" | |
# run the tests with the gradle wrapper | |
./gradlew lintProductionRelease | |
# store the last exit code in a variable | |
RESULT=$? | |
# return the './gradlew test' exit code |
cd /home | |
find /home/*/public_html -type f -name '*.php' | xargs chmod 0644 -- | |
find /home/*/public_html -type d | xargs chmod 0755 -- |