{"id":13581245,"url":"https://github.com/zingmars/termux-scripts","last_synced_at":"2025-04-06T07:31:52.390Z","repository":{"id":141420163,"uuid":"81006985","full_name":"zingmars/termux-scripts","owner":"zingmars","description":"Collection of small scripts I wrote for use with Termux.","archived":false,"fork":false,"pushed_at":"2019-12-28T13:10:32.000Z","size":18,"stargazers_count":45,"open_issues_count":0,"forks_count":11,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-11-05T20:47:02.738Z","etag":null,"topics":["bash","curl","shorten","termux","upload"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zingmars.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-02-05T16:55:55.000Z","updated_at":"2024-10-18T19:27:28.000Z","dependencies_parsed_at":"2024-01-16T20:47:45.266Z","dependency_job_id":"815404df-7be9-4d89-a5a1-2d2ade633082","html_url":"https://github.com/zingmars/termux-scripts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zingmars%2Ftermux-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zingmars%2Ftermux-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zingmars%2Ftermux-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zingmars%2Ftermux-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zingmars","download_url":"https://codeload.github.com/zingmars/termux-scripts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247450070,"owners_count":20940852,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","curl","shorten","termux","upload"],"created_at":"2024-08-01T15:01:59.526Z","updated_at":"2025-04-06T07:31:52.028Z","avatar_url":"https://github.com/zingmars.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"Termux-upload script collection\n===\n\nSince there's no ShareX/Screencloud or any other similar software for android, I wrote a few shell scripts to be used with termux to recreate at least some of the uploading functionality. Please note that I wrote this for my personal use (Linx+YOURLS), and a lot of modification will be needed if you end up using this for your own setup, but at least it's a good place to start. These scripts require [termux](https://play.google.com/store/apps/details?id=com.termux), [termux-api](https://play.google.com/store/apps/details?id=com.termux.api). After installing both run `pkg update \u0026\u0026 pkg install termux-api curl jq` and you should be ready go.\n\n# Installation instructions\nIf entering them by hand on a phone or tablet, I recommend using [Hacker's Keyboard](https://f-droid.org/en/packages/org.pocketworkstation.pckeyboard/) which has arrow keys and a tab button for autocomplete.\n\n```bash\n$ pkg update\n$ pkg install wget # termux come with busybox wget by default that doesn't support https\n$ hash -r\n$ wget https://github.com/zingmars/termux-scripts/archive/master.zip\n$ unzip master.zip\n$ pkg install vim #or nano or whatever editor you want\n$ cd termux-scripts-master\n$ chmod +x *.sh\n# ! Edit your files, i.e. vim upload.sh\n$ pkg install termux-api termux-tools curl jq\n# Install the scripts\n$ cd $HOME \u0026\u0026 mkdir bin \u0026\u0026 ln -s $HOME/termux-scripts-master/upload.sh $HOME/bin/termux-file-editor\n$ ln -s $HOME/termux-scripts-master/delete.sh /data/data/com.termux/files/usr/bin/delete-file\n$ ln -s $HOME/termux-scripts-master/shorten.sh /data/data/com.termux/files/usr/bin/shorten\n```\n\n# Script descriptions\n## upload.sh\n\nSimple upload script. Edit it's curl upload commands. Afterwards place it in termux's `$HOME/bin/` rename it to termux-file-editor (or just symlink it) and then share your files to Termux like you would to any other app. A bit hackish, but it works. \n\n## delete.sh\n\nSends a DELETE request to an URL either passed as a parameter or from a file generated by upload.sh. Might not be needed for your host.\n\n## shorten.sh\n\nShortens the passed URL. Uses a private YOURLS instance by default.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzingmars%2Ftermux-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzingmars%2Ftermux-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzingmars%2Ftermux-scripts/lists"}