lets

Crates.iolets
lib.rslets
version0.1.0
sourcesrc
created_at2020-04-25 18:15:44.574746
updated_at2020-04-25 18:15:44.574746
descriptionA simple productivity tool
homepagehttps://github.com/afgomez/lets
repositoryhttps://github.com/afgomez/lets
max_upload_size
id234053
size7,809
Alejandro Fernández (afgomez)

documentation

https://github.com/afgomez/lets

README

lets: a simple productivity tool

lets 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.

Usage

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

Disclaimer

lets is a toy project to play with Rust. At the time of writing I'm not considering making it production ready.

Commit count: 11

cargo fmt