This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# memusg -- Measure memory usage of processes | |
# Usage: memusg COMMAND [ARGS]... | |
# | |
# Author: Jaeho Shin <netj@sparcs.org> | |
# Created: 2010-08-16 | |
############################################################################ | |
# Copyright 2010 Jaeho Shin. # | |
# # | |
# Licensed under the Apache License, Version 2.0 (the "License"); # |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
PACKAGE=$(adb shell pm list packages -3 | cut -d ':' -f 2 | sort \ | |
| fzf --reverse \ | |
--preview-window right:40% \ | |
--preview "echo {} | xargs -I % curl -s -o- \"https://play.google.com/store/apps/details?id=%\" | grep -oh '<div class=\"id-app-title\" tabindex=\"0\">[^<]*</div>' | sed -r -n 's/^<.*>(.*)<.*>$/\1/p'" \ | |
) | |
if [[ ! -z "$PACKAGE" ]]; then | |
pidcat "$PACKAGE" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Deprecated: use https://github.com/ontherunvaro/adb-uninstall |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
function simpleDirName(){ | |
# Echoes only the last folder of the current path, or ~ if we are at $HOME | |
if [ "$(pwd)" == "$HOME" ] | |
then | |
DN="~" | |
else | |
DN="${PWD##*/}"; | |
fi |