-
specifying revisions: http://schacon.github.io/git/git-rev-parse.html#_specifying_revisions
-
list of all affected files both tracked/untracked (for automation)
git status --porcelain
-
name of the current banch and nothing else (for automation)
Because pointers can be ugh
To understand a pointer, let's review "regular" variables first. If you're familiar with a programming language without pointers like JavaScript, this is what you think when you hear "variable".
When declaring a variable by identifier (or name), the variable is synonymous with its value.
package com.onavo.android.common.ui; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import java.util.LinkedList; | |
import java.util.List; | |
/** | |
* Based on http://stackoverflow.com/a/8831593/37020 by by Shlomi Schwartz |
#!/usr/bin/env bash | |
######################################################################## | |
# Goal: Run this script and start automating! | |
# 1) Pull all changes for Appium/iOS/Android repo | |
# 2) Build iOS App then Copy to Appium Repo | |
# 3) Build Android App then Copy to Appium Repo | |
# 4) Allow user to choose emulator, launch emulator, install app | |
######################################################################## |
I learned from a combination video tutorials (CasterIO) , online classes (Udacity) , blogs (medium posts) , forums (/r/androiddev) , and the developer.android documentation, codelabs, and javadocs. Also, I follow anyone I learned from on Twitter so I could get more insight into the android ecosystem. I got a copy of the Android Big Nerd Ranch book but I’m not much of a book person when I’m on my computer, I mostly just google and SO stuff instead.
I got my start learning through Udacity’s courses which were made in partnership with Google
- Node and Apache are not mutually exclusive. Apache (or NGINX if preferred) can be set up as a reverse-proxy for the Node server. This means that requests would go to Apache first, then forwarded on to the Node server.
- Reasoning for this can be found: https://linuxtogether.org/configuring-reverse-proxy-for-node-using-apache-mod-proxy/
- We had the opportunity of setting up a fresh Digital Ocean server running CentOS 7, and opt'd for this for simplicity and for the fun experience of learning how to set up a fresh CentOS 7 Server to be used with the MERN stack.
- In our scenario, Node can listen on port 80 and we should be good to go...
# Android w/ x86 Emulator | |
## SETUP | |
sudo -S apt-get update && sudo apt-get upgrade -y | |
sudo -S apt-get install zip unzip wget git curl vim openjdk-8-jdk qemu-kvm -y | |
sudo -S adduser $USER kvm | |
mkdir -p Android/platforms | |
wget https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip | |
unzip sdk-tools-linux-4333796.zip -d Android/ |
# Minorly adjusted from https://gist.github.com/badsyntax/ce848ab40b952d944c496575d40e5427 and https://github.com/igorboskovic3/actions-test/actions/runs/3239143575/workflow | |
name: HAXM Installation before Android Test Snippet | |
# Controls when the workflow will run | |
on: | |
workflow_dispatch: | |
jobs: | |
install-haxm-and-run-emulator: |
# Minorly adjusted from https://gist.github.com/badsyntax/ce848ab40b952d944c496575d40e5427 and https://github.com/igorboskovic3/actions-test/actions/runs/3239143575/workflow | |
name: HAXM Installation before Android Test Snippet | |
# Controls when the workflow will run | |
on: | |
workflow_dispatch: | |
jobs: | |
install-haxm-and-run-emulator: |