Skip to content

Instantly share code, notes, and snippets.

View thisismzm's full-sized avatar
😁

Mohammad Zare Moghadam thisismzm

😁
View GitHub Profile
@mrk-han
mrk-han / emulator-install-using-avdmanager.md
Last active July 1, 2025 22:36
Installing and creating Emulators with AVDMANAGER (For Continuous Integration Server or Local Use)

Install and Create Emulators using AVDMANAGER and SDKMANAGER

TL;DR

For an emulator that mimics a Pixel 5 Device with Google APIs and ARM architecture (for an M1/M2 Macbook):

  1. List All System Images Available for Download: sdkmanager --list | grep system-images

  2. Download Image: sdkmanager --install "system-images;android-30;google_atd;arm64-v8a"

@mjavadhpour
mjavadhpour / count-lines-of-code-in-directory.md
Last active May 5, 2018 03:48
How to count all the lines of code in a directory recursively?
$ find . -name '*.php' | xargs wc -l
$ find . -name '*.js' -or -name '*.php' | xargs wc -l | grep 'total'  | awk '{ SUM += $1; print $1} END { print "Total text lines in PHP and JS",SUM }'
$ cloc --exclude-lang=DTD,Lua,make,Python .