Skip to content

Instantly share code, notes, and snippets.

View rpappalax's full-sized avatar

Richard Pappalardo rpappalax

  • Mozilla
  • Valencia, Spain
View GitHub Profile
---
- name: Create instance(s)
hosts: localhost
gather_facts: no
connection: local
vars:
machine_type: n1-standard-1 # default
image: debian-7
service_account_email: [email protected]
#https://cloud.google.com/kubernetes-engine/docs/tutorials/hello-appo
# eval (sed -n '2p' < file.txt)
# will evaluate the command on a given line of a file (i.e. line 2)
#==================================================
# NOTES
#==================================================
We are going to create the following entities:
#!/bin/bash
## ----------------------------------
# Step #1: Define variables
# ----------------------------------
STD='\033[0;0;39m'
NONE='\033[00m'
RED='\033[01;31m'
BLUE='\033[01;34m'
$ gcloud firebase test ios models list
┌─────────────┬───────────────────────┬─────────────────────┬──────────────────────────────────┐
│ MODEL_ID │ NAME │ OS_VERSION_IDS │ TAGS │
├─────────────┼───────────────────────┼─────────────────────┼──────────────────────────────────┤
│ ipad5 │ iPad (5th generation) │ 11.2,12.0 │ deprecated=11.2 │
│ ipadmini4 │ iPad mini 4 │ 11.2,12.0 │ deprecated=11.2 │
│ ipadpro_105 │ iPad Pro (10.5-inch) │ 11.2 │ deprecated=11.2 │
│ iphone11 │ iPhone 11 │ 13.3 │ │
│ iphone11pro │ iPhone 11 Pro │ 13.3 │ │
│ iphone6 │ iPhone 6 │ 11.4,12.2 │ deprecated=11.4 │
gcloud firebase test android models list
┌───────────────────┬────────────────────┬──────────────────────────────────────┬──────────┬─────────────┬──────────────────────┬───────────────┐
│ MODEL_ID │ MAKE │ MODEL_NAME │ FORM │ RESOLUTION │ OS_VERSION_IDS │ TAGS │
├───────────────────┼────────────────────┼──────────────────────────────────────┼──────────┼─────────────┼──────────────────────┼───────────────┤
│ 602SO │ Sony │ Sony XZs │ PHYSICAL │ 1920 x 1080 │ 26 │ │
│ A0001 │ OnePlus │ OnePlus One │ PHYSICAL │ 1920 x 1080 │ 22 │ │
│ A1N_sprout │ HMD Global │ Nokia 8 Sirocco │ PHYSICAL │ 2560 x 1440 │ 26 │ │
│ ASUS_X00T_3 │ Asus │ Asus ZenFone Max Pro M1 │ PHYSICAL │ 2160 x 1080 │
@rpappalax
rpappalax / gist:3a0200270e0d200ec057d3cec54c994d
Created June 5, 2019 23:42
Docker build - Ubuntu 17.10 - failure
$ docker build .
Sending build context to Docker daemon 21.5kB
Step 1/22 : FROM ubuntu:17.10
17.10: Pulling from library/ubuntu
4ccdce43d1e0: Pull complete
c95f13c88d92: Pull complete
82656eee95ad: Pull complete
78ff727be57a: Pull complete
448bb314afa5: Pull complete
Digest: sha256:3b811ac794645dfaa47408f4333ac6e433858ff16908965c68f63d5d315acf94
n configuration ':app:armDebugAndroidTestCompileClasspath': substituting megazord module 'org.mozilla.appservices:fenix-megazord:0.28.1' for component module 'org.mozilla.appservices:fxaclient:0.28.1'
In configuration ':app:armDebugAndroidTestCompileClasspath': substituting megazord module 'org.mozilla.appservices:fenix-megazord:0.28.1' for component module 'org.mozilla.appservices:rustlog:0.28.1'
> Task :app:lint FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:lint'.
> Lint infrastructure error
> Task :app:generateAarch64BetaSources
> Task :app:javaPreCompileAarch64Beta
> Task :app:compileAarch64BetaJavaWithJavac
> Task :app:compileAarch64BetaUnitTestKotlin
Compilation with Kotlin compile daemon was not successful
java.rmi.UnmarshalException: Error unmarshaling return header; nested exception is:
java.io.EOFException
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:236)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:161)
@rpappalax
rpappalax / gist:2d051e81691ff88e9c6dcd3f31ed499c
Created May 16, 2019 15:34
logcat - metrics ping sent when app is already open, then Glean command run
2019-05-16 02:28:25.157 16982-17001/? I/glean/Glean: Metrics enabled: true
2019-05-16 02:28:25.157 16982-17001/? I/glean/Glean: Registering pings for mozilla.components.service.glean.GleanMetrics.Pings
2019-05-16 02:28:34.647 794-9748/? I/ActivityManager: START u0 {flg=0x10000000 cmp=org.mozilla.fenix/mozilla.components.service.glean.debug.GleanDebugActivity (has extras)} from uid 2000
2019-05-16 02:28:34.686 16982-16982/? I/glean/GleanDebugActivity: Setting debug config Configuration(serverEndpoint=https://incoming.telemetry.mozilla.org, userAgent=Glean/0.52.0 (Android), connectionTimeout=10000, readTimeout=30000, maxEvents=500, logPings=true, httpClient=mozilla.components.lib.fetch.httpurlconnection.HttpURLConnectionClient@4137c61, pingTag=rpapa-test-091, channel=null)
2019-05-16 02:28:34.784 16982-17193/? D/glean/HttpPingUploader: Glean ping to URL: /submit/org-mozilla-fenix/metrics/1/497ee033-db7e-47e6-a99e-21ef387e4893
{
"metrics": {
"boolean": {
"metrics.default_browser": fal
@rpappalax
rpappalax / gist:5e5ab6fbad51e44f2d6ef58d2ac5410d
Created May 16, 2019 15:29
logcat - metrics ping sent after backgrounding app
2019-05-16 02:24:04.347 794-9748/? I/ActivityManager: START u0 {flg=0x10000000 cmp=org.mozilla.fenix/mozilla.components.service.glean.debug.GleanDebugActivity (has extras)} from uid 2000
2019-05-16 02:24:04.386 794-1803/? I/ActivityManager: Start proc 16415:org.mozilla.fenix/u0a200 for activity org.mozilla.fenix/mozilla.components.service.glean.debug.GleanDebugActivity
2019-05-16 02:24:04.631 16415-16432/? I/glean/Glean: Metrics enabled: true
2019-05-16 02:24:04.632 16415-16432/? I/glean/Glean: Registering pings for mozilla.components.service.glean.GleanMetrics.Pings
2019-05-16 02:24:04.681 16415-16415/? I/glean/GleanDebugActivity: Setting debug config Configuration(serverEndpoint=https://incoming.telemetry.mozilla.org, userAgent=Glean/0.52.0 (Android), connectionTimeout=10000, readTimeout=30000, maxEvents=500, logPings=true, httpClient=Lazy value not initialized yet., pingTag=rpapa-test-090, channel=null)
2019-05-16 02:24:04.881 16415-16447/? D/glean/Glean: No content for ping 'PingType(name=metrics, include