- Shift + F5 (Current slide)
- F5 (From beginning slide)
- B (Black board)
- W (White board)
- Esc (Exit Slideshow)
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
<?php | |
$devices = explode("\n", shell_exec("adb devices")); | |
$pattern = "/([a-zA-Z0-9]+)\s+device/"; | |
$zip = new ZipArchive; | |
if ($zip->open($argv[1]) === TRUE) { | |
$zip->extractTo('.', 'AndroidManifest.xml'); | |
$zip->close(); | |
} |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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 | |
DEVICE=$1 | |
if [ -z $DEVICE ]; then | |
DEVICE=`adb devices | sed '/List of devices/d' | head -n 1 | awk '{print $1}'` | |
fi | |
if [ -z "$DEVICE" -o "$str" == " " ]; then | |
echo "Please connect a device." | |
exit 1 | |
fi | |
adb -s $DEVICE shell 'pm list packages -f -3' | sed -e 's/.*=//' | sed -e "s/^/adb -s $DEVICE uninstall /" | sort | less |
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 | |
DEVICE=`adb devices | sed '/List of devices/d' | sed '/:4444/d' | sed '/emulator/d' | sed '/vbox86p/d' | head -n 1 | awk '{print $1}'` | |
if [ "$DEVICE" == "" ]; then | |
echo "Please conntect devices!" | |
exit 0 | |
else | |
echo "Devices: "$DEVICE | |
fi | |
adb -s $DEVICE forward tcp:4444 localabstract:/adb-hub; adb connect localhost:4444 |
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 | |
DEVICE=`adb devices -l | sed '/List of devices/d' | sed '/clockwork/d' | head -n 1 | awk '{print $1}'` | |
adb -s $DEVICE -d forward tcp:5601 tcp:5601 |
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 | |
keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android |
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
### Git tweak | |
function git_branch { | |
ref=$(git symbolic-ref HEAD 2> /dev/null) || return; | |
echo "["${ref#refs/heads/}"] "; | |
} | |
function git_since_last_commit { | |
now=`date +%s`; | |
last_commit=$(git log --pretty=format:%at -1 2> /dev/null) || return; |
-
Git 教學 (指令版)
http://gogojimmy.net/2012/01/17/how-to-use-git-1-git-basic/ -
Git 教學 (SourceTree 圖文版)
http://superbil.github.io/slide/sourcetree/ -
設定SSH KEY
-
顯示隱藏檔案:
defaults write com.apple.finder AppleShowAllFiles TRUE;\killall Finder -
不顯示隱藏檔案:
defaults write com.apple.finder AppleShowAllFiles FALSE;\killall Finder