GithubHelp home page GithubHelp logo

szero / volascripts.sh Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 0.0 93 KB

Quality of shitposting improvement.

Home Page: https://volafile.org

License: ISC License

Shell 100.00%
shitposting utility volafile uploading web vola filesharing

volascripts.sh's Introduction

volascripts.sh

Those are bash scripts which are meant to interact with Volafile without a need of using the browser.

Disclaimer

volaupload.sh was originally made by lain and Xiao. It seemed to be abandoned so I enhanced it with agrument parsing and some other features.

volaupload.sh ver. 3.3

This script allows you to upload files to Volafile without using the browser. This is convenient, since it allows you to upload files with different names without a need to rename them beforehand. Use -h or --help command for full list of capabilities. Check Configuration section below to learn how to preset your room, nick and password.

stuff2vola.sh ver. 2.7

Are you a fan of redundancy and don't want to post links to stuff in chat like a pleb? Than this is a script for you. It will download most content from the web and upload it to designeted Volafile room. Script can take multiple arguments just like volaupload.sh. Script doesn't save downloaded files by default. If you want to keep downloaded files, please specify download directory with the -d option. Invoke script with -h or --help command to list other options.

volacrypt.sh ver. 1.3

With this script you are able to upload and retrive files encrypted with symmetric AES256 algorithm. If you will supply the script with a file, it will encrypt it and upload to a specified room. If you will specify valid volafile link, script will download and decrypt it.

prowatch.sh ver. 1.2

Ever wanted to watch something posted on vola but it was in a format that isn't playable in the browser? If so, then get this script, bad boi. It will work with mpv and vlc. Just use it with the direct link from vola as argument, see its help page for more description. (This can be also used by non-Proβ„’ users, you just won't get faster download speeds).

Prerequisites

  • bash >= 4.0
    • 4.3 version is needed if you want to have better upload bar in volaupload.sh
  • coreutils
  • curl >= 7.33.0
  • bc
    • required for floating point arithmetics
  • youtube-dl
  • ffmpeg
    • two above required for stuff2vola.sh
  • gpg
    • required for volacrypt.sh

Optional:

  • curlbar
    • required for riced upload bar, install script will ask you if you want to install it
  • inotify-tools
    • This one is needed just for --watch command in volaupload.sh script. Check the script source and decide if you find this usefull.
  • mpv
  • vlc
    • One from two above is needed in prowatch.sh.

Installation & Updating

bash and coreutils packages are essential on most Linux distributions, so you should already have them. All you need to do is to get curl and ffmpeg with your distribution's package manager. (ffmpeg is needed because sometimes to get best audio and video, youtube-dl will download separate streams and mux them together with ffmpeg) youtube-dl and curlbar will be installed with install script if you don't have them already.

To install on all UNIX-like systems for current user (into ~/.local/bin directory) type:

bash <(curl -sLo- https://raw.githubusercontent.com/szero/volascripts.sh/master/install.sh)

To install on all UNIX-like systems for all users (into /usr/local/bin directory) type:

sudo bash -c 'bash <(curl -sLo- https://raw.githubusercontent.com/szero/volascripts.sh/master/install.sh)'

Restart your terminal to finalize installation process. Install script is responsible both for updating and installing so you are good with running it whenever I release new updates.

Configuration

You can create .volascriptsrc file in your $HOME directory to preset some options you may not want to specify every time you upload something. Possible values to set:

# Room you want to upload by default.
ROOM="HF33Go"
# Your nick and password if you want to upload as logged user so
# uploads counts toward your profile statistics.
NICK="somedude"
PASSWORD="somepass"
# Room aliases in a form of bash array for setting memorable names for chosen rooms
ROOM_ALIASES=(
"plebeians=HF33Go"
"patricians=BEEPi"
)
# If you will set this options, all the files downloaded by stuff2vola.sh script will be saved
# in the specified directory.
VID_DIR="/home/dude/weed"

Example usage

volaupload.sh -r BEEPi -n Monkey ~/Pictures/wild_nigra.jpg -a "merc - approximation"

stuff2vola.sh -r HF33Go -a "oy vey" https://jewtube.com/watch?v=SH4L0M

How to upload empty file with custom name (useful for file requests).

    volaupload.sh -r BEEPi -n Liquid <(true) -a "Requesting latest BLACKED release"

Contributing

Just hit me with that sweet issue ticket or pull-request.

volascripts.sh's People

Contributors

szero avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

volascripts.sh's Issues

Room's file listing

This topic might out of current features. Is there a way to listing file on a room in Volafile.io?

e.g.

volalisting.sh -r SomeRoom | wget -i -

This will download via wget input listing file. volalisting.sh is a script that generated links to download file. Typical JavaScript pre-rendered link as-seen-on-web-browser.

Automatically deletes uploaded file.

Let's have an example case:
FBI is raiding my house and I have to upload a whole folder into Vola. ASAP.

volaupload.sh ~/Pictures/2018-26-8/

There are about 80 files.
Is there a way to delete uploaded files without wait until whole progress done then delete?

RawGit is shutting down. Please revoke any url points to it.

bash <(curl -sLo- https://raw.githubusercontent.com/szero/volascripts.sh/master/install.sh)

Is work fine. I have to replace all string on install.sh, from https://rawgit.com/ to https://raw.githubusercontent.com/, thought.

Got better solutions?

Unable upload via volaupload.sh files greater than a few hundred megabytes

For some time now, regardless of the server one is uploading to, 7 - 10, when trying to upload with volaupload.sh, latest or the older variations, from sizes of a few hundred megabytes up to the maximum of 20 gigabytes, volaupload.sh is randomly halting upload to curl error 22 or 52:

`$ bash volaupload.sh -r 1bmweqm3c 600
</> Uploading 600 to 1bmweqm3c, dl9 as Volaphile
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
50 600M 0 0 50 303M 0 5146k 0:01:59 0:01:00 0:00:59 7184k
curl: (22) The requested URL returned error: 502 Service Unavailable

</> Uploading 600 to 1bmweqm3c, dl7 as Volaphile
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
58 600M 0 0 58 350M 0 5954k 0:01:43 0:01:00 0:00:43 6108k
curl: (52) Empty reply from server

</> Uploading 600 to 1bmweqm3c, dl9 as Volaphile
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
41 600M 0 0 41 251M 0 4279k 0:02:23 0:01:00 0:01:23 4214k
curl: (52) Empty reply from server
`

`bc` is required for `curlbar`

It requires bc to run curlbar. Most of Linux dist doesn't have this installed. You should add this to prerequisites list too.

Local user installation

I don't want to install as root. I want the volascript installed into $HOME dir, at $HOME/.local/bin.

ERROR: One line install script doesn't work well.

I tried this (as written on README.md):

curl -sLo- https://rawgit.com/Szero/volascripts.sh/master/install.sh | bash

This is what I got:
2018-01-08-164457_1366x768_scrot

Try ahead in clean machine.

As alternative, I downloaded install.sh locally then run it.

wget https://rawgit.com/Szero/volascripts.sh/master/install.sh
bash ./install.sh

No error indeed. πŸ€”

Volafile support for stuff2vola.sh

Normally, to download a file from Volafile via wget, I use this:

wget --no-cookies --header "Cookie: allow-download=1" "https://volafile.org/get/ABCDEFGH/filename.zip

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.