This file contains hidden or 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
# cmd | |
alias vs="code" | |
alias ll="ls -l" | |
alias la="ls -a" | |
alias lla="ls -la" | |
alias lt="ls -lt" | |
alias t="tree" | |
alias h="history" | |
alias g="grep" | |
alias hg="history|grep" |
This file contains hidden or 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
# Escapte to root | |
# su - | |
# Update, upgrade and install development tools: | |
apt update | |
apt -y upgrade | |
apt -y install git curl libssl-dev libreadline-dev zlib1g-dev autoconf bison build-essential libyaml-dev libreadline-dev libncurses5-dev libffi-dev libgdbm-dev | |
# Install rbenv | |
git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv |
This file contains hidden or 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
# Escapte to root | |
# su - | |
# Update, upgrade and install development tools: | |
apt update | |
apt -y upgrade | |
apt -y install build-essential git-core | |
# Install rbenv | |
git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv |
This file contains hidden or 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
# From your PC terminal | |
$ adb backup -noapk com.example.app | |
$ dd if=backup.ab bs=1 skip=24 | python -c "import zlib,sys;sys.stdout.write(zlib.decompress(sys.stdin.read()))" | tar -xvf - |
This file contains hidden or 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
// https://github.com/ratanachai/popularmovies/blob/dup-db-bug/app/src/androidTest/java/com/ratanachai/popularmovies/data/TestProvider.java | |
// From the file in link above. When setup() delete in the whold database instead of just delete all records in all tables, | |
// assertEquals will fails. Direct DB query will return correct amount of rows, but ContentProvider will not, because Data from | |
// the previous test still persists, likely caused by database couldn't deleted successfully. | |
// | |
// Question 1: Why direct db query and content provider query return different result as if there were 2 databases. | |
// I tried pulling out sqlite database to view and the show direct database query version. Where is Content Provider version? | |
// Question 2: Why mContext.deleteDatabase() was not success? | |
This file contains hidden or 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
<section class="" id="body_content"> | |
<div class="row> | |
<h1 id="body_content_title">Blog</h1> | |
</div> | |
<div class="row> | |
<section id="body"> | |
</section> | |
<section id="side_body"> | |
</section> | |
</div> |