Skip to content

Instantly share code, notes, and snippets.

View lyzhang1999's full-sized avatar

wangwei lyzhang1999

  • Helium3 Tech
  • 广东深圳
View GitHub Profile
@aanari
aanari / config.ini
Created February 2, 2024 03:23
Play Store in Android Emulator
PlayStore.enabled=true
image.sysdir.1=system-images/android-34/google_apis_playstore/arm64-v8a
tag.display=Google Play
tag.id=google_apis_playstore
@Abyss-W4tcher
Abyss-W4tcher / AArch64_Android_emulation_and_kernel_cross-compilation.md
Last active May 21, 2025 14:38
AArch64 Android emulation and kernel cross-compilation

AArch64 Android emulation and kernel cross-compilation

The following assumes you are using a AArch64 host.

Android SDK installation

Setup SDK and emulator :

# https://developer.android.com/studio/index.html#command-line-tools-only
sudo apt-get install unzip openjdk-17-jdk gradle -y
@atyachin
atyachin / Android_Emulator_AWS_EC2_ARM64_2022.txt
Last active May 21, 2025 06:25
Running headless android emulator on AWS EC2 Ubuntu instance (ARM64 / aarch64) - 2022
Android Emulator (ARM64) on EC2 - 2022
---------------------------------------
1. Launch EC2 ARM based Instance (a1.metal / a1.2xlarge): (16 Gb RAM, 32Gb Disk), Ubuntu Server 22.04 LTS (HVM) ARM x64
2. sudo apt update && sudo apt upgrade
3. sudo apt install default-jdk python3-pip repo python-is-python3 unzip libpcre2-dev adb
4. wget https://dl.google.com/android/repository/commandlinetools-linux-8512546_latest.zip
5. unzip commandlinetools-linux-8512546_latest.zip -d android-sdk
6. sudo mv android-sdk /opt/
7. mkdir /opt/android-sdk/cmdline-tools/latest
8. mv /opt/android-sdk/cmdline-tools/* /opt/android-sdk/cmdline-tools/latest (ignore the error)
@codemem
codemem / build-and-publish.yml
Created August 28, 2021 09:42
Build and Publish React Native Project to Testflight and Google Play
# Sources:
# https://blog.usejournal.com/automate-react-native-builds-with-github-actions-af54212d26dc
# https://zach.codes/ios-builds-using-github-actions-without-fastlane/
# https://stackoverflow.com/questions/16550594/jenkins-xcode-build-works-codesign-fails/19550453#19550453
# https://www.valueof.io/blog/deploying-to-google-play-using-github-actions
name: Build and Publish Test Builds
on:
push:
@duncangrist
duncangrist / helm-package.sh
Created April 7, 2021 10:42
Wraps "helm package" in order to be able to --set values at package time. Depends on yq and helm.
#!/usr/bin/env bash
scriptName=$(basename "$0")
USAGE="Wraps \"helm package\" in order to be able to --set values at package time.
Usage:
$scriptName \\
--set key1=value1 --set key2=value2 \\
[--app-version 1.2.3] <chart-path>"
#!/usr/bin/env bash
# Inspired by: https://github.com/kayrus/kuttle
# Usage:
#
# sshuttle -v -r 'none' -e /path/to/this_script 172.20.0.0/16
#
set -e
VERSION=0.1
@yangchuansheng
yangchuansheng / prometheus-rules-others.yaml
Created August 5, 2020 09:22
prometheus-rules-others.yaml
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
labels:
prometheus: others
role: alert-rules
name: prometheus-others-rules
namespace: monitoring
spec:
groups:
import {
FirebaseAnalyticsJSCodedEvent,
FirebaseAnalyticsJSConfig,
FirebaseAnalyticsJSOptions,
} from './FirebaseAnalyticsJS.types';
/**
* A pure JavaScript Google Firebase Analytics implementation that uses
* the HTTPS Measurement API 2 to send events to Google Analytics.
*
package main
import (
"bytes"
"fmt"
"io"
"io/ioutil"
"net/http"
"os"
"strconv"