| Crates.io | lets |
| lib.rs | lets |
| version | 0.1.0 |
| created_at | 2020-04-25 18:15:44.574746+00 |
| updated_at | 2020-04-25 18:15:44.574746+00 |
| description | A simple productivity tool |
| homepage | https://github.com/afgomez/lets |
| repository | https://github.com/afgomez/lets |
| max_upload_size | |
| id | 234053 |
| size | 7,809 |
lets: a simple productivity toollets blocks a list of distracting websites of your choice. It works by
modifying your /etc/hosts file and pointing the hosts to the own machine.
Because of this, it needs to be run with sudo.
To use lets, first create a file called /etc/hosts.block with the hosts
that you want to block.
$ echo "facebook.com" >> /etc/hosts.block
$ echo "twitter.com" >> /etc/hosts.block
$ echo "reddit.com" >> /etc/hosts.block
To block the hosts, tell the command that you want to work.
$ sudo lets work
To unblock the hosts, tell the command that you want to play.
$ sudo lets play
lets is a toy project to play with Rust. At the time of writing I'm not
considering making it production ready.