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
export PS1="\u:$ " | |
export ANDROID_HOME=$HOME/Library/Android/sdk | |
export PATH="/usr/local/bin:/usr/local/sbin:~/bin:$PATH:$ANDROID_HOME/emulator:$ANDROID_HOME/platform-tools:$ANDROID_HOME/build-tools/26.0.2:~/scripts:.:$ANDROID_HOME/tools:$ANDROID_HOME/tools/bin:/usr/local/share/npm/bin:$HOME/bin/gsutil:$HOME/.rvm/bin" | |
export NODE_PATH="/usr/local/lib/node_modules" | |
export EDITOR="subl -w" | |
export GRADLE_OPTS="-Dorg.gradle.daemon=true" | |
export HISTTIMEFORMAT="%m-%d %T " | |
#[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* |
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
#/bin/bash | |
uptime=$(adb shell cat /proc/uptime | awk '{print int($1)}' ) | |
apps=$(adb shell pm list packages | sed s/package:// | sed $'s/\x0D//' | awk '{printf "%s\\\|", $0} END {printf "@@@\n"}') | |
adb shell ps | grep `echo $apps` | while read line ; | |
do | |
pid=$(echo -n $line | awk '{print int($2)}') | |
name=$(echo -n $line| awk '{printf "%s", $NF}'| sed $'s/\x0D//') | |
starttime=$(adb shell cat /proc/$pid/stat | awk '{print int($22 / 100)} ') | |
now=$(date +%s) |
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
/** | |
* Nest Direct | |
* | |
* Author: [email protected] | |
* Date: 2013-07-18 | |
* Code: https://gist.github.com/Dianoga/6055918 | |
* | |
* INSTALLATION | |
* ========================================= | |
* 1) Create a new device type (https://graph.api.smartthings.com/ide/devices) |