Skip to content

Instantly share code, notes, and snippets.

View m4xp1's full-sized avatar
🚀
stronger, higher, faster

Dmitrii Makarov m4xp1

🚀
stronger, higher, faster
View GitHub Profile
@m4xp1
m4xp1 / .bashrc
Last active April 25, 2018 10:17
Adb alias
# Add in end file ~/.bashrc
findapp() { adb shell pm list packages | grep "$1" | cat -v | sed -e 's/package://g' -e 's/\^M//g'; }
# findapp [shortName] out: com.example.package
findps() { adb shell ps | grep "$1"; }
# findps [shortName] out: process info if exist
stopapp() { adb shell am force-stop "$1"; }
# stopapp com.example.package
@m4xp1
m4xp1 / album
Last active July 3, 2018 12:50
Bash script for recording musical album from audio card output (using record scripts)
#!/bin/bash
# Setup album data
artist="Steven Solveig"
album="Beginning of the End - Trailer Underscores"
year=2017
# Setup album songs
declare -a name; declare -a time;
name+=("Dark Awakening"); time+=("01:43")