Navigation Menu

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

How to run Userge in Github Actions, step by step

First things first

Get the config.env file completely filled.

Use custom docker-compose file

I use This docker-compose.yml file to build and start-up my Userge Workflow.

@rokibhasansagar
rokibhasansagar / rclone_install_mirror.min.sh
Last active May 27, 2022 13:08
Latest rclone install script which installs only latest tagged version directly from github releases.
#!/usr/bin/env bash
# error codes
# 0 - exited without problems
# 1 - parameters not supported were used or some unexpected error occurred
# 2 - OS not supported by this script
# 3 - installed version of rclone is up to date
# 4 - supported unzip tools are not available
set -e
@rokibhasansagar
rokibhasansagar / README.md
Last active September 25, 2023 04:51
Google Service Accounts Randomizer for TTK

To use Service Accounts through script, follow this method

As the Dockerfile defined WORKDIR /torapp, make sure you have /torapp folder in root with user write access.

If you use any other WORKDIR, please change the path mention from this method according to your needs.

Step 1: Put your service account in a folder

I've uploaded 100 SA JSON files in "accounts" folder in a private repo. DO NOT UPLOAD them in a Public Repo.

@rokibhasansagar
rokibhasansagar / ngrok2actions.sh
Last active October 19, 2023 15:49
Modified ngrok2actions for own use
#!/usr/bin/env bash
#
# Copyright (c) 2020-2021 P3TERX <https://p3terx.com>
#
# https://github.com/P3TERX/ssh2actions
# File name:ngrok2actions.sh
# Description: Connect to Github Actions VM via SSH by using ngrok
# Version: 2.0
#
@rokibhasansagar
rokibhasansagar / Cleanup_Space_In_macOS_Runner.md
Last active December 26, 2023 08:12
Android ROM Build Environment Setup Helper on GitHub Actions macOS SSH using https://github.com/Area69Lab/macOS-SSH

Cleanup Some Space First

{
  echo "will cite" | parallel --citation
} &>/dev/null
parallel --jobs 200% sudo rm -rf {} 2>/dev/null ::: ~/hostedtoolcache/*
brew update &>/dev/null
brew uninstall -q --force --zap --cask chromedriver firefox google-chrome julia microsoft-auto-update microsoft-edge session-manager-plugin r soundflower 2>/dev/null
brew uninstall -q --force --zap aliyun-cli ant aspell aws-sam-cli azure-cli bazelisk carthage composer fontconfig freetds freetype gcc@8 gd geckodriver gh gradle helm httpd hub jpeg libpq libtiff llvm maven mongodb-community mongodb-database-tools nginx node@14 openjdk packer php pipx postgresql python@3.8 rustup-init selenium-server-standalone subversion tidy-html5 unixodbc webp switchaudio-osx sox go ruby@2.7 2&gt;/dev/null
@rokibhasansagar
rokibhasansagar / git-io-custom-url.md
Created December 24, 2020 13:14 — forked from dikiaap/git-io-custom-url.md
git.io custom URL

Command:

curl https://git.io/ -i -F "url=https://github.com/YOUR_GITHUB_URL" -F "code=YOUR_CUSTOM_NAME"

URLs that can be created is from:

  • https://github.com/*
  • https://*.github.com
  • https://*.github.com/*
  • https://*.github.io
@rokibhasansagar
rokibhasansagar / roomservice.README.md
Last active December 7, 2023 15:58
Fixed OmniROM's roomservice for Unofficial builds

OmniROM's roomservice - For Everybody

OmniROM's roomservice is now strictly blocking Unofficial Builds if the Device Tree is not available in their Gerrit/Github Organization.

These files are patched to bypass those restrictions.

@rokibhasansagar
rokibhasansagar / circleci_config.yml
Last active May 10, 2023 05:01
[BETA] This one is final. Note: Docker commands Must Not be inside the sourced shell.
version: 2.1
jobs:
build:
docker:
# Use this New Image for Starting things up
- image: fr3akyphantom/droid-runner:latest # DO Not Change
environment: # Use Double-Quotes to enclose the values
MANIFEST_BRANCH: "android-10.0"
#PBRP_BRANCH: ""
#USE_SECRET_BOOTABLE: "true"
@rokibhasansagar
rokibhasansagar / .circleci.config.yml
Last active November 6, 2023 17:50
PitchBlack Recovery Builder Setup for Android 10
version: 2.1
jobs:
build:
docker:
# Use this New Image for Starting things up
- image: fr3akyphantom/droid-runner:latest # DO Not Change
environment:
MANIFEST_BRANCH: "android-10.0"
VERSION: "2.9.1" # Change as necessary
VENDOR: "" # Mandatory
#!/bin/bash
set -eo pipefail
# SANITY CHECKS
if [[ -z $GitHubMail ]]; then echo -e "You haven't configured GitHub E-Mail Address." && exit 1; fi
if [[ -z $GitHubName ]]; then echo -e "You haven't configured GitHub Username." && exit 1; fi
if [[ -z $GITHUB_TOKEN ]]; then echo -e "You haven't configured GitHub Token.\nWithout it, recovery can't be published." && exit 1; fi
if [[ -z $MANIFEST_BRANCH ]]; then echo -e "You haven't configured PitchBlack Recovery Project Manifest Branch." && exit 1; fi
if [[ -z $VENDOR ]]; then echo -e "You haven't configured Vendor name." && exit 1; fi
if [[ -z $CODENAME ]]; then echo -e "You haven't configured Device Codename." && exit 1; fi