https://github.com/sathwikmatsa/tcad
tcloud automatic downloader
https://github.com/sathwikmatsa/tcad
Last synced: 1 day ago
JSON representation
tcloud automatic downloader
- Host: GitHub
- URL: https://github.com/sathwikmatsa/tcad
- Owner: sathwikmatsa
- Created: 2019-11-13T08:59:07.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-12-03T14:16:55.000Z (over 5 years ago)
- Last Synced: 2025-04-06T17:56:05.987Z (9 days ago)
- Language: Rust
- Size: 42 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome - sathwikmatsa/tcad - tcloud automatic downloader (Rust)
README
# tcad
tcloud automatic downloaderhttps://github.com/Lunik/tcloud-heroku
## Dependencies
Install the following:
- [wget](https://chocolatey.org/packages/Wget) (comes pre-installed in Linux on most distros)
For Windows Users: `choco install wget`## Installation
## Windows
Download [release](https://github.com/sathwikmatsa/tcad/releases/download/0.2/TCAD_For_Windows.zip)Extract it and run `install.bat`
## Linux
Download the readily available binary at https://github.com/sathwikmatsa/tcad/releases/download/0.1/tcad and skip the `Build` section.## Build
```
> git clone https://github.com/sathwikmatsa/tcad.git
> cd tcad
> cargo build --release
```## Configure
[`> cp .env_sample .env`](https://github.com/sathwikmatsa/tcad/blob/b64cbd1702ee7d7bd691853349ab1b2d1f910440/.env_sample)**substitue** dummy values in `.env` with actuals
## Setup
After `cargo build`:
```
> mkdir -p ~/.bin/tcad
> cp target/release/tcad ~/.bin/tcad # if you directly downloaded binary, use: cp tcad ~/.bin/tcad
> cp .env ~/.bin/tcad
```
Add a cron job
```
> crontab -e
```
append the following line* :
```
*/5 * * * * sudo -u DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user//bus /home//.bin/tcad/tcad /home//.bin/tcad/.env >> /home//.bin/tcad/tcad.log
```
to run tcad every `5 minutes`.*Note: replace \ and \ in the above line. (use `whoami` to get user, `id -u $(whoami)` to get user id)