Skip to content

Instantly share code, notes, and snippets.

📚
Keeping Away to "Get A Living", Literally

Rokib Hasan Sagar rokibhasansagar

📚
Keeping Away to "Get A Living", Literally
Block or report user

Report or block rokibhasansagar

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@rokibhasansagar
rokibhasansagar / appveyor.yml
Created Apr 27, 2020 — forked from FeodorFitsner/appveyor.yml
appveyor.yml reference
View appveyor.yml
# Notes:
# - Minimal appveyor.yml file is an empty file. All sections are optional.
# - Indent each level of configuration with 2 spaces. Do not use tabs!
# - All section names are case-sensitive.
# - Section names should be unique on each level.
#---------------------------------#
# general configuration #
#---------------------------------#
View new_fix.patch
diff --git a/build.sh b/build.sh
index 22f66b76eeac1c13ba41b415da81957f6798b2fe..19ede910311b388a9001806e730503b99adf9415 100644
--- a/build.sh
+++ b/build.sh
@@ -45,10 +45,12 @@ if [[ -n $EXTRA_CMD ]]; then
cd $DIR/work
fi
-echo -e "\nPreparing Delicious Lunch..."
+LOG_FILE="/tmp/${CODENAME}_build_${CIRCLE_BUILD_NUM}.log"
View build.sh
#!/bin/bash
###
#
# Semi-AIO Script for Building PitchBlack Recovery in CircleCI
#
# Copyright (C) 2019-2020, Rokib Hasan Sagar <rokibhasansagar2014@outlook.com>
# PitchBlack Recovery Project <pitchblacktwrp@gmail.com>
#
# This program is free software: you can redistribute it and/or modify
@rokibhasansagar
rokibhasansagar / README.md
Last active Mar 16, 2020
[WIP] SkyHawk Builder
View README.md

Build SkyHawk Recovery Project in CircleCI and Release onto Device Tree itself. Attach the .CircleCI.config.yml file as ".circleci/config.yml" in DT and set some ENV Vars. Trigger the build and voilà, You get the built zip as-well-as recovery.img for safekeeping.

View update-omni.sh
#!/bin/bash
username=rokibhasansagar
url="gerrit.omnirom.org"
port="29418"
branch="android-6.0"
ref="android-6.0.1_r81"
wget -q https://github.com/omnirom/android_vendor_omni/raw/android-6.0/utils/aosp-forked-list
@rokibhasansagar
rokibhasansagar / tg_group_cleaner.py
Created Mar 4, 2020 — forked from nitanmarcel/tg_group_cleaner.py
Kick all the deleted accounts from a telegram chat using telethon.
View tg_group_cleaner.py
from telethon import TelegramClient
from telethon.tl.functions.channels import EditBannedRequest
from telethon.tl.types import ChatBannedRights
import asyncio
import datetime
api_id = 1234 # Your API_ID
api_hash = "1a2b3c456" # Your APP_ID
View aosp-push-merge.sh
#!/bin/bash
#
# Copyright (C) 2016 OmniROM Project
#
# 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
#
View aosp-merge.sh
#!/bin/bash
#
# Copyright (C) 2020 OmniROM Project
#
# 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
#
@rokibhasansagar
rokibhasansagar / transfer.fish
Created Jan 26, 2020 — forked from nl5887/transfer.fish
Bash and zsh alias for transfer.sh. Transfers files and directories to transfer.sh.
View transfer.fish
function transfer
if test (count $argv) -eq 0
echo "No arguments specified. Usage:\necho transfer /tmp/test.md\ncat /tmp/test.md | transfer test.md"
return 1
end
## get temporarily filename, output is written to this file show progress can be showed
set tmpfile ( mktemp -t transferXXX )
## upload stdin or file
@rokibhasansagar
rokibhasansagar / gdrive_download
Created Jan 21, 2020 — forked from darencard/gdrive_download
Script to download files from Google Drive using Bash
View gdrive_download
#!/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
You can’t perform that action at this time.