Skip to content

Instantly share code, notes, and snippets.

View atyachin's full-sized avatar

Avital Yachin atyachin

View GitHub Profile
@atyachin
atyachin / Android-Emulator-on-AWS-EC2.txt
Last active August 22, 2024 09:26
Installing and running Android Emulator on Amazon AWS EC2 (Ubuntu 16.04 / m5.xlarge)
Update (2022): https://gist.github.com/atyachin/2f7c6054c4cd6945397165a23623987d
Steps for installing the Android Emulator from EC2 console:
-----------------------------------------------------------
sudo apt install default-jdk
wget https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip
unzip sdk-tools-linux-4333796.zip -d android-sdk
sudo mv android-sdk /opt/
export ANDROID_SDK_ROOT=/opt/android-sdk
@atyachin
atyachin / android-emulator-as-system-service.txt
Created August 14, 2018 19:42
Android Emulator as a system service (systemd)
---------------------------------------------
/etc/systemd/system/android-emulator.service:
---------------------------------------------
[Unit]
Description=Android Emulator
After=network.target
[Service]
Type=simple
Environment=SHELL=/bin/bash
@atyachin
atyachin / aws_regions.json
Created September 29, 2020 19:08
AWS Regions / Datacenters Geo Locations
[
{
"code": "us-east-1",
"region": "US East",
"city": "Virginia",
"lat": 38.9940541,
"long": -77.4524237,
"country": "US"
},
{
@atyachin
atyachin / Android_Emulator_AWS_EC2_ARM64_2022.txt
Last active November 15, 2024 14:04
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)
@atyachin
atyachin / curl_ssl_ciphers_nss.json
Last active June 7, 2024 02:10
Curl SSL/TLS Ciphers (CURLOPT_SSL_CIPHER_LIST) - NSS
{
"rc4": "SSL_EN_RC4_128_WITH_MD5",
"rc4-md5": "SSL_EN_RC4_128_WITH_MD5",
"rc4export": "SSL_EN_RC4_128_EXPORT40_WITH_MD5",
"rc2": "SSL_EN_RC2_128_CBC_WITH_MD5",
"rc2export": "SSL_EN_RC2_128_CBC_EXPORT40_WITH_MD5",
"des": "SSL_EN_DES_64_CBC_WITH_MD5",
"desede3": "SSL_EN_DES_192_EDE3_CBC_WITH_MD5",
"rsa_rc4_128_md5": "SSL_RSA_WITH_RC4_128_MD5",
"rsa_rc4_128_sha": "SSL_RSA_WITH_RC4_128_SHA",
@atyachin
atyachin / curl_ssl_ciphers_openssl.json
Last active November 15, 2024 14:26
Curl SSL/TLS Ciphers (CURLOPT_SSL_CIPHER_LIST) - OpenSSL
{
"SSL_RSA_WITH_NULL_MD5": "NULL-MD5",
"SSL_RSA_WITH_NULL_SHA": "NULL-SHA",
"SSL_RSA_WITH_RC4_128_MD5": "RC4-MD5",
"SSL_RSA_WITH_RC4_128_SHA": "RC4-SHA",
"SSL_RSA_WITH_IDEA_CBC_SHA": "IDEA-CBC-SHA",
"SSL_RSA_WITH_3DES_EDE_CBC_SHA": "DES-CBC3-SHA",
"SSL_DH_DSS_WITH_3DES_EDE_CBC_SHA": "DH-DSS-DES-CBC3-SHA",
"SSL_DH_RSA_WITH_3DES_EDE_CBC_SHA": "DH-RSA-DES-CBC3-SHA",
"SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA": "DHE-DSS-DES-CBC3-SHA",
@atyachin
atyachin / curl_ssl_ec_curves.json
Created February 8, 2023 00:53
Curl SSL/TLS EC Curves (CURLOPT_SSL_EC_CURVES) - OpenSSL
{
"sect163k1": {
"hex": "0x0001",
"dec": 1,
"alias": "K-163"
},
"sect163r1": {
"hex": "0x0002",
"dec": 2
},