$ mkdir ~/bin
$ PATH=~/bin:$PATH
$ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
$ mkdir ~/RR
$ cd ~/RR
$ repo init -u https://github.com/ResurrectionRemix/platform_manifest.git -b oreo
$ curl --create-dirs -L -o .repo/local_manifests/g3.xml -O -L https://raw.githubusercontent.com/G3-Development/local_manifests/8.1/g3.xml
[Hint: This might take a long time as the source is ~25GB]
$ repo sync -f --force-sync --no-clone-bundle -j8
$ echo "export USE_CCACHE=1" >> ~/.bashrc
$ ~/RR/prebuilts/misc/linux-x86/ccache/ccache -M 50G
$ cd ~/RR
$ . build/envsetup.sh && brunch (codename)
$ . build/envsetup.sh
$ lunch rr_d855-userdebug
$ make bacon -j8