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
rsync -av --delete --exclude-from="$HOME/exclude.rsync" "$HOME" <server>:<backup dir>/ |
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
:w !sudo tee % |
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
old() | |
{ | |
command=$1 | |
shift | |
$(which -a $command | head -n 2 | tail -n 1) $@ | |
} |
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
head -n 2 | tail -n 1 |
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
function find_command | |
{ | |
i=1; | |
while [ $(echo $PATH | cut -d : -f "$i") ]; do | |
PATHITEM=$(echo $PATH | cut -d : -f "$i") | |
find $PATHITEM -name "$1" | |
let i="$i+1" | |
done | |
} |
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
alias all_done="notify Config Done || notify Config Failed" | |
./configure && all_done |
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
05-14 22:32:16.744: WARN/WindowManager(63): Attempted to add window with non-application token WindowToken{43ee9978 token=null}. Aborting. | |
05-14 22:32:16.764: WARN/dalvikvm(63): threadid=15: thread exiting with uncaught exception (group=0x4001b188) | |
05-14 22:32:16.764: ERROR/AndroidRuntime(63): Uncaught handler: thread android.server.ServerThread exiting due to uncaught exception | |
05-14 22:32:16.764: ERROR/AndroidRuntime(63): *** EXCEPTION IN SYSTEM PROCESS. System will crash. | |
05-14 22:32:16.794: ERROR/AndroidRuntime(63): android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application | |
05-14 22:32:16.794: ERROR/AndroidRuntime(63): at android.view.ViewRoot.setView(ViewRoot.java:472) | |
05-14 22:32:16.794: ERROR/AndroidRuntime(63): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:177) | |
05-14 22:32:16.794: ERROR/AndroidRuntime(63): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91) | |
05-14 22:32:16.794: ERROR/AndroidRuntime(63): |
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
${FOO##*( )} |
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
FOO=" Bar" |
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
$(echo $FOO) |
OlderNewer