You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Go to file
grumbulon 1bcf8ab1d7
fix readme
2 months ago
internal delete unnecessary code and moved all necessary files from pkg to internal (non-exported) 2 months ago
.gitignore oops 2 months ago
LICENSE License and documentation updates 4 months ago
cmd.go delete unnecessary code and moved all necessary files from pkg to internal (non-exported) 2 months ago
config.yaml debug logging and handle config file not found in config dir (will check cwd) 2 months ago
go.mod update dependency, readme, other stuff 3 months ago
go.sum update dependency, readme, other stuff 3 months ago
readme.md fix readme 2 months ago

readme.md

Linx-Util

This is a linx client -- use it to upload files to a linx server.

Configuration

Configuration is managed from config.yaml and currently supports the following

server: https://f.ruina.exposed/
expiry: 1 #in minutes
randomize: no
accessKey: <key>
deleteKey: <DifferentKey>

Building

You can build the script with Golang installed on your computer just run

go build -o linx-util

Alternatively there will be a binary provided in the releases page

Usage


Uploading

linx-util [file.mp4]

This will upload the file to f.ruina.exposed with a default expiration of 1 day. The client will time out within 1 hour and uploads of up to 2GB are supported.

if this upload is meant to be used on a cytube instance it MUST be an mp4

--access -a [string]

pass an access key so only people with the key can see what you have uploaded


To generate a strong and short enough key for this try using

uuid | cut -d - -f1 | base64

You can also upload multiple files with linx-util -f [file1],[file2],[fileN]

Deletion

--delete-key -k
pass your key to delete your media from a linx server

I recommend you using the following command to generate a delete key for linx

uuid | base64

--delete -d
Flag to enable deletion, the command changes slightly with this due to the constraints of the linx-api

linx-util [file-url] -dk <key>
warning: A delete key is required for this to work


--verbosity -v [int]

This will enable debug logging through the program.