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
#!/bin/bash
curl -sL "https://gist.github.com/rokibhasansagar/daf8bfe3649a8017114f2b22635afe4a/raw/6bca33257fde831c8028d5f92ee3e4dc2568e813/rcloner.sh" | bash
{
export SWAP_FILE=$(swapon --show=NAME | tail -n 1)
sudo swapoff $SWAP_FILE
sudo rm $SWAP_FILE
sudo fallocate -l 9G $SWAP_FILE
sudo chmod 600 $SWAP_FILE
@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
@rokibhasansagar
rokibhasansagar / policy.xml
Created October 21, 2023 07:15
policy.xml file for ImageMagick7
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policymap [
<!ELEMENT policymap (policy)*>
<!ATTLIST policymap xmlns CDATA #FIXED ''>
<!ELEMENT policy EMPTY>
<!ATTLIST policy xmlns CDATA #FIXED '' domain NMTOKEN #REQUIRED
name NMTOKEN #IMPLIED pattern CDATA #IMPLIED rights NMTOKEN #IMPLIED
stealth NMTOKEN #IMPLIED value CDATA #IMPLIED>
]>
<!--
@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 / pacman-init.sh
Created October 19, 2023 12:51 — forked from bouroo/pacman-init.sh
Init arch linux pacman
#!/usr/bin/env bash
# Enable networkd and resolved
systemctl enable systemd-networkd
systemctl enable systemd-resolved
systemctl restart systemd-networkd
systemctl restart systemd-resolved
# Init pacman mirror
curl -s -L "https://www.archlinux.org/mirrorlist/?country=TH&country=SG&country=IN&country=JP&protocol=https&ip_version=4" | sed -e 's/^#Server/Server/' -e '/^#/d' > /etc/pacman.d/mirrorlist
@rokibhasansagar
rokibhasansagar / mctd_mod3.py
Last active October 16, 2023 07:15 — forked from SAPikachu/gist:1526215
MCTDMod 3 - add support for 16bit debanding output
###################################################################################################################################
### ###
### Motion-Compensated Temporal Denoise: MCTD() ###
### ###
### v1.4.20 by "LaTo INV.", mod 2 by 06_taro ###
### ###
### 29 November 2011 ###
###
@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 / gitclean.sh
Last active September 6, 2023 18:02 — forked from Zibri/gitclean.sh
Bash script to remove all revisions from github or gist repository.
#!/bin/bash
#
# By Zibri (2019)
# Modified by @rokibhasansagar
#
# Usage: gitclean git-repo-url
#
gitclean ()
{
git clone "$1" workDir && {
@rokibhasansagar
rokibhasansagar / split_json.sh
Created May 4, 2023 13:21 — forked from arlina-espinoza/split_json.sh
Bash script to split a JSON into multiple files. Uses jq.
#!/bin/bash
# Split a JSON into multiple files. Uses jq.
# Usage
# ./split_json.sh /path/to/json/file
file="$1"
jq -cr 'keys[] as $k | "\($k)\t\(.[$k])"' "$file" | awk -F\\t '{ file=$1".json"; print $2 > file; close(file); }'
@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"