Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
Command for Downloading any big file from GDrive (for big file we may need to confirm download): | |
wget --load-cookies /tmp/cookies.txt "https://docs.google.com/uc?export=download&confirm=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate 'https://docs.google.com/uc?export=download&id=FILEID' -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')&id=FILEID" -O FILENAME && rm -rf /tmp/cookies.txt | |
Replace the FILEID from the URL after ".../file/d/**********/view" and put in the two places | |
Replace the FILENAME as the original Filename.extention or whatever you want the file to be saved as | |
Credits to: @beliys [https://github.com/beliys] | |
I'm just Copying :p |
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
People
:bowtie: |
😄 :smile: |
😆 :laughing: |
---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |
<?xml version="1.0" encoding="UTF-8"?> | |
<manifest> | |
<project name="svoboda18/android_device_x5" path="device/doogee/x5" remote="github" revision="n" /> | |
<project name="svoboda18/android_vendor_x5" path="vendor/doogee/x5" remote="github" revision="n" /> | |
</manifest> |
<iframe width="980" height="410" src="https://mars.nasa.gov/layout/embed/send-your-name/mars2020/certificate/?cn=806006240420" frameborder="0"></iframe> |
echo -en "The Whole PATH ENV is - " && echo $PATH | |
which ghr && which repo | |
mkdir $(pwd)/work && cd work | |
echo "Initialize & Sync PBRP repo" | |
echo $(pwd) | |
repo init -q -u https://github.com/PitchBlackRecoveryProject/manifest_pb.git -b ${MANIFEST_BRANCH} --depth 1 | |
time repo sync -c -q --force-sync --no-clone-bundle --no-tags -j32 |
Replace this part:
if [[ "$PB_FORCE_DD_FLASH" = "true" ]]; then
cp -R "$PB_VENDOR/updater/update-binary-dd" "$PB_WORK_DIR/META-INF/com/google/android/update-binary"
else
cp -R "$PB_VENDOR/updater/update-binary" "$PB_WORK_DIR/META-INF/com/google/android/update-binary"
#!/sbin/sh | |
# Copyright (C) 2018 ATG Droid | |
# Copyright (C) 2019 PitchBlack Recovery <pitchblackrecovery@gmail.com> | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# |
#!/usr/bin/env bash | |
# gdrive_download | |
# | |
# script to download Google Drive files from command line | |
# not guaranteed to work indefinitely | |
# taken from Stack Overflow answer: | |
# http://stackoverflow.com/a/38937732/7002068 | |
gURL=$1 |