-
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.
- 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/ |
For an emulator that mimics a Pixel 5 Device with Google APIs and ARM architecture (for an M1/M2 Macbook):
-
List All System Images Available for Download:
sdkmanager --list | grep system-images
-
Download Image:
sdkmanager --install "system-images;android-30;google_atd;arm64-v8a"
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
Thanks to Erwin Jansen for these samples and this readme. (I just formatted this and threw it in a gist to make it more shareable and readable)
Samples can be downloaded here: https://android.googlesource.com/platform/external/qemu/+/refs/heads/emu-master-dev/android/android-grpc/docs/grpc-samples
This is currently an experimental feature, and as such there are some things lacking that might be important if you want to use this in production:
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 |
There are many ways to test Jenkins...
Jenkins Pipeline Unit is great but it's generally recommended to keep all of your logic with stages and not get too crazy with custom Groovy in your pipeline. Though, it's a great option if you have a very advanced use-case and want to make sure your code is reliable.
The Replay Pipeline Run Option is awesome if you want to verify a quick change or iterate quickly on a previously setup pipeline. But it only allows for altering Jenkinsfile Code and runs against the production Jenkins Instance.
== Adb Server | |
adb kill-server | |
adb start-server | |
== Adb Reboot | |
adb reboot | |
adb reboot recovery | |
adb reboot-bootloader | |
== Shell |