Skip to content

Instantly share code, notes, and snippets.

View rokibhasansagar's full-sized avatar
📑
Keeping Away to "Get A Living", Literally

Rokib Hasan Sagar rokibhasansagar

📑
Keeping Away to "Get A Living", Literally
View GitHub Profile
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
@rokibhasansagar
rokibhasansagar / README.md
Created April 26, 2018 13:02 — forked from hofmannsven/README.md
My simply Git Cheatsheet
@rokibhasansagar
rokibhasansagar / gist:633f6d0d30c36f7c01049e35f3f91ba3
Created June 2, 2018 00:23 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :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
@rokibhasansagar
rokibhasansagar / MANUAL.md
Last active November 14, 2019 18:10
Add Legacy MTK Flashing Support in PitchBlack Recovery Project

In PBRP, To add Simple Flashing Method for MTK Devices,

Open /vendor/pb/pb_build.sh and Modify the following part

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"
@rokibhasansagar
rokibhasansagar / update-binary-mtk
Created November 17, 2019 16:52
New Updated `update-binary` for PBRP, only for MediaTek Devices
#!/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
#

Auto Deploy Hexo Organizational/Team Site Using Travis CI

Part 1: Sample Travis Yaml Config (.travis.yml)

language: node_js
node_js:
  - "node"
os: linux
dist: bionic
sudo: required
@rokibhasansagar
rokibhasansagar / gdrive_download
Created January 21, 2020 06:46 — forked from darencard/gdrive_download
Script to download files from Google Drive using Bash
#!/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