Code Monkey home page Code Monkey logo

gd-utils's Introduction

GDUtils Terminal + Bot

Gd-Utils is just another Tool which helps us to Bypass the 750GB daily limit by Google

๐ŸŒŸ This repo is just for Docker/Heroku deployment of GDUtils ๐ŸŒŸ

Do not overuse it, or your account might be banned by Heroku.

Old Deployments Needs to be updated as new Builds are based on Alpine

Pre Requisites

1๏ธโƒฃ Github Account

2๏ธโƒฃ Heroku Account

3๏ธโƒฃ Telegram Account

4๏ธโƒฃ Some Patience

Deployment

๐Ÿ”ท Here I Don't Provide any Deploy button to heroku, We Use Github Actions to Deploy container to Heroku

Steps

  1. Fork this Repo

  2. Go to Repository Settings -> Secrets

    Secrets

  3. Now set the below Variables in the Github Repository Secrets Environmental Variables

  4. After Setting this go to Actions and Run the Workflow

    Actions

  5. Now Go to the App URL and Press the link shown Below

    Webhook

  6. Now it Opens the Web Terminal

    Terminal

  7. Setting WebHook for Bot Mode

    ๐Ÿ”ท By Default Script will set the Webhook

    ๐Ÿ”ท if the Bot didn't respond Just type SetWebhook

    > bash-4.4$ SetWebhook
    {"ok":true,"result":true,"description":"Webhook is already set"}
    
  8. Done You Bot is Now Live and You can use the terminal Even if you want and Can generate Snap2HTML and Tree

    ๐Ÿ”ท To access your files in your working directory go to (Avoid Using name index.html for Both Snap2HTML and Tree)

    https://YOURAPP.herokuapp.com/out/
    

Usage

  • Web Terminal

    Just type gdutils in Web Terminal

    bash-5.0$ gdutils
    GD-UTILS by iwestlin, English version by Roshanconnor, Polished by Nenokkadine
    1.Copy Files to your Teamdrive
    โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–
    2.Calculate Size
    โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–
    3.Remove Duplicate Files
    โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–โž–
    4.EXIT
    
    Choose any Number [1-4]:
    
    
  • Telegram Bot

    Just Type /help in Telegram Bot

Environmental Variables

Variable Value Example Required Description
HEROKU_EMAIL Heroku email [email protected] True Just Give the email you used for Heroku Account
HEROKU_API_KEY Heroku API key xxxxxxx-xxxx-xxxx-xxxx-xxxxxx True Get it from Heroku
REGION Heroku Container Region EU False Needed only if you need an EU Container
HEROKU_APP Heroku app name Name Must be unique True Heroku app name that needs to be Updated or Created (Should be in lowercase)
SA_ZIP Direct Link https://abc.com/sa.zip False* Service accounts to be zipped in a way that there should be a folder named accounts containing SA Jsons
GH_REPO SA repo name accounts False** Git repo name where SA's are Uploaded
GH_USER Github Username Nenokkadine False** Github username Where SA are uploaded
GH_AUTH_TOKEN Github Auth Token xxxxxxxxxxxxxx False** Get this from Github With Scopes repo
BOT_TOKEN Telegram Bot Token 123456:abcdef True Get this from Telegram
AUTH_CHATS Authorized Chats 'UserA','UserB' True Telegram Username's/User ID's Should be Given and Should be in Single Quotes
HTTP_USER Username user False HTTP Basic auth adds an Extra Layer security for your app (recommended)
HTTP_PASS Password pass False HTTP Basic auth adds an Extra Layer security for your app (recommended)
DEFAULT_DEST Folder ID 0ADXXXXXXXMUk9PVA False Default Destination G-Drive folder ID (TeamDrive ID Recommended)

How to make the App Never Sleep?

  1. Setup a CronJob to Make the heroku app never sleep

    • First Sign-up in the above Site

    • Then Go here, and Follow the ScreenShot below

      URL:
      https://YOURAPPNAME.herokuapp.com/gdutils/check.js
      

      cronJob Basic

    • If you have Setup Basic HTTP Auth you should fill these too

      HTTP Auth

    • Now you can save and enable the cron job, and your app never Sleeps again.

  2. Use Kaffeine and Just give the app name, App's With Basic HTTP Auth enabled Might not work here

Note

  • No Need to redeploy if new changes are made to src folder, it will built and your apps will fetch the latest release

  • if Docker Base image is updated then you should redeploy (Not gonna happen Soon).

Credits

๐Ÿ‘ iwestlin - The original Developer of this tool

๐Ÿ‘ Roshan - Translated Entire repo into English and the bash Script

๐Ÿ‘ Shuanglei Tao - Developer of TTYD (Terminal over Web)

License

MIT

gd-utils's People

Contributors

nenokkadine avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.