Skip to content

Instantly share code, notes, and snippets.

Avatar
📚
Keeping Away to "Get A Living", Literally

Rokib Hasan Sagar rokibhasansagar

📚
Keeping Away to "Get A Living", Literally
View GitHub Profile
@rokibhasansagar
rokibhasansagar / ffmpeg-extract-keyframes.sh
Created Oct 2, 2021 — forked from savvot/ffmpeg-extract-keyframes.sh
Extract only keyframes (I-frames) from video to images with console ffmpeg
View ffmpeg-extract-keyframes.sh
ffmpeg -ss <start_time> -i video.mp4 -t <duration> -q:v 2 -vf select="eq(pict_type\,PICT_TYPE_I)" -vsync 0 frame%03d.jpg
View Userge_In_Actions.md

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
Latest rclone install script which installs only latest tagged version directly from github releases.
View rclone_install_mirror.min.sh
#!/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 Oct 8, 2021
Google Service Accounts Randomizer for TTK
View README.md

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 Apr 16, 2021
Modified ngrok2actions for own use
View ngrok2actions.sh
#!/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 May 12, 2021
Android ROM Build Environment Setup Helper on GitHub Actions macOS SSH using https://github.com/Area69Lab/macOS-SSH
View Cleanup_Space_In_macOS_Runner.md

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
View git-io-custom-url.md

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 Dec 18, 2020
Fixed OmniROM's roomservice for Unofficial builds
View roomservice.README.md

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 Aug 8, 2020
[BETA] This one is final. Note: Docker commands Must Not be inside the sourced shell.
View circleci_config.yml
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 Feb 13, 2022
PitchBlack Recovery Builder Setup for Android 10
View .circleci.config.yml
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