macOS Sierra Auto load ssh keys

OS: macOS 10.12.3

Create config file in your ssh folder:

vi ~/.ssh/config

Edit config file:

Host *
UseKeychain yes
AddKeysToAgent yes
IdentityFile ~/.ssh/id_rsa_build_server
IdentityFile ~/.ssh/id_rsa_mac

Replace the path with the path to you keys.

Shell Count the numbers of lines of code

Exclude empty & Comment lines.

find . -name “*.java”|xargs cat|grep -v -e ^$ -e ^\s*\/\/.*$|wc -l

Manage SSH Keys

Generate SSH Key

$ ssh-keygen -t rsa -C "[email protected]"

Add Key

$ ssh-add ~/.ssh/id_rsa

Check Saved Keys

ssh-add -l

Delete All Keys

ssh-add -D

Start ssh agent

If you get the error : “Could not open a connection to your authentication agent.”

eval `ssh-agent -s`

VAO VBO VEO Template

GLfloat vertices[] = {
     0.5f,  0.5f, 0.0f, 1.0f, 0.0f, 0.0f, 1.0f, 1.0f,
     0.5f, -0.5f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f, 0.0f,
    -0.5f, -0.5f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f,
    -0.5f,  0.5f, 0.0f, 1.0f, 1.0f, 0.0f, 0.0f, 1.0f,

GLuint indices[] = {
    0, 1, 3,
    1, 2, 3

GLfloat texCoords[] = {
    0.0f, 0.0f,
    1.0f, 0.0f,
    0.5f, 1.0f

GLuint VBO;
GLuint VAO;
GLuint EBO;

glGenBuffers(1, &VBO);
glGenVertexArrays(1, &VAO);
glGenBuffers(1, &EBO);

    glBindBuffer(GL_ARRAY_BUFFER, VBO);
    glBufferData(GL_ARRAY_BUFFER, sizeof(vertices), vertices, GL_STATIC_DRAW);
    glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, 8 * sizeof(GLfloat), (GLvoid*)0);
    glVertexAttribPointer(1, 3, GL_FLOAT, GL_FALSE, 8 * sizeof(GLfloat), (GLvoid*)(3 * sizeof(GLfloat)));
    glVertexAttribPointer(2, 2, GL_FLOAT, GL_FALSE, 8 * sizeof(GLfloat), (GLvoid*)(6 * sizeof(GLfloat)));

    glBufferData(GL_ELEMENT_ARRAY_BUFFER, sizeof(indices), indices, GL_STATIC_DRAW);

    glBindBuffer(GL_ARRAY_BUFFER, 0);

Alt none



Set abi filters in gradle file:

android {
    defaultConfig {
        ndk {
            moduleName "module_name"

            abiFilters "armeabi", "armeabi-v7a"

If getting NDK integration deprecated error, add one line to file named