๐Ÿ“ฆ marcoww6 / TimedBan-C-

TimedBan is a productivity improvement tool that bans your access to specified websites. A typical usage is to ban YouTube for 2 hours and focus on your work entirely during that time!

โ˜… 0 stars โ‘‚ 0 forks ๐Ÿ‘ 0 watching
๐Ÿ“ฅ Clone https://github.com/marcoww6/TimedBan-C-.git
HTTPS git clone https://github.com/marcoww6/TimedBan-C-.git
SSH git clone git@github.com:marcoww6/TimedBan-C-.git
CLI gh repo clone marcoww6/TimedBan-C-
Bazinga Bazinga update 7fc21d9 6 years ago ๐Ÿ“ History
๐Ÿ“‚ master View all commits โ†’
๐Ÿ“„ .gitignore
๐Ÿ“„ makefile
๐Ÿ“„ pro.cc
๐Ÿ“„ README.md
๐Ÿ“„ README.md

Timed Ban

Block certain sites (e.g. YouTube) for a period of time so that you can focus on your valueable work! A perfect use case is shutting down attention attraction website like YouTube.

Usage

Clone the repository and cd into that directory. Run

make ban [time in seconds] [lists of sites...]
e.g. this will ban YouTube and Quora for the next 60 minutes.
make ban 3600 youtube.com quora.com

Active Development

WIP:
  • support more unit, e.g. minutes, hours
  • handle some signals so it cannot be killed easily
  • change makefile to make it run in the background
  • rewrite in other fancier languages, e.g. python/go. C++ is bit of wordy and inconsistent (boost algo to others) here.
  • upload it to a package manager
Feel free to suggest any other features you want!