Skip to content

Instantly share code, notes, and snippets.

@nhtua
nhtua / 00.install-android-sdk.sh
Last active May 9, 2025 10:28
Run a Headless Android Device on Ubuntu server (no GUI)
#!/bin/bash -i
#using shebang with -i to enable interactive mode (auto load .bashrc)
set -e #stop immediately if any error happens
# Install Open SDK
apt update
apt install openjdk-8-jdk -y
update-java-alternatives --set java-1.8.0-openjdk-amd64
java -version
@gavxin
gavxin / readme
Created January 23, 2018 13:25
Get latest gn.exe windows binary from google chromium project.
- From chromium source, find `gn.exe.sha1` file and get content of file. You can search at https://cs.chromium.org with `file:gn.exe.sha1` .
- The content is something like `c0d03f78af494365ff38c663297a20fe61da29ea`,
download file from url `https://storage.googleapis.com/chromium-gn/<content of file>`, like
`https://storage.googleapis.com/chromium-gn/c0d03f78af494365ff38c663297a20fe61da29ea` and rename the downloaded file to `gn.exe`