scripts/README.md

41 lines
784 B
Markdown
Raw Normal View History

2023-10-13 11:24:13 +11:00
# Useful Scripts
## Upload
This script is used for quick uploading and sharing of files.
It prints a QR code of the share link to allow for quick and easy sharing to a phone
### Usage
2023-10-13 11:28:01 +11:00
```sh
2023-10-13 11:24:13 +11:00
upload <file>
```
### Dependencies
- curl
- qrencode
### Installation
2023-10-13 11:28:01 +11:00
```sh
2023-10-13 11:35:53 +11:00
sudo apt install curl qrencode
sudo wget -O /usr/local/bin/upload https://git.woodburn.au/nathanwoodburn/scripts/raw/branch/main/upload
sudo chmod +x /usr/local/bin/upload
```
## Copy
This script is used for copying the contents of a file to the clipboard.
### Usage
```sh
copy <file>
2024-09-09 15:45:27 +10:00
... | copy
2023-10-13 11:35:53 +11:00
```
### Dependencies
- xclip
### Installation
```sh
sudo apt install xclip
sudo wget -O /usr/local/bin/copy https://git.woodburn.au/nathanwoodburn/scripts/raw/branch/main/copy
sudo chmod +x /usr/local/bin/copy
2023-10-13 11:24:13 +11:00
```