Giter VIP home page Giter VIP logo

control-yourself's Introduction

Control-Yourself

Control Yourself

All Contributors Gitter chat

GitHub issues GitHub forks GitHub stars GitHub license

HitCount Maintenance Website shields.io Ask Me Anything !


forthebadge

A Software to reduce your distraction caused by several non-productive websites

Prerequisites

  • Git
  • NodeJs

Getting Started

Make sure that you have installed git and nodejs on your system. Make a fork of this repository. Open up the Terminal(or Git Bash) and navigate to the working directory and type the following command.

git clone https://github.com/{USERNAME}/Control-Yourself.git

Make sure to replace the {USERNAME} with your github username.

Then run the following command to install all the dependencies.

npm install

Run the following command to fire up the application

npm start

Join us at Gitter

https://gitter.im/Control-Yourself/Lobby

Steps to run the blocker.js

Running the blocker is very simple. Just download the blocker.js file (inside JavaScript folder) and type in the following command through your terminal,

sudo node blocker.js

It will block the websites in the websites array in blocker.js file from 2pm to 6pm.

Note If you want to block some other websites, just place those websites in the websites array at line number 21 of blocker.js file. And, if you want to change the time at which the program blocks the website, just change the time interval inside the if statement at line number 33. By default the script blocks www.someRandomWebsite.com (I dont know what that is, as the name suggests it is SOME RANDOM WEBSITE xD), and it blocks it from 1400 hours (2pm) to 1600 hours (4pm).

Important Notice

Please take a backup of your hosts file (/etc/hosts) before running the script. I am not responsible for any damages.

Contributors

Thanks goes to these wonderful people (emoji key):


MADHAV BAHL

๐Ÿ“– ๐Ÿ“ ๐Ÿ’ป ๐Ÿ’ก ๐Ÿค” ๐Ÿ‘€ โœ…

Rajdeep Roy Chowdhury

๐Ÿ“– ๐Ÿ’ป ๐Ÿค”

Rajat

๐Ÿ“–

This project follows the all-contributors specification. Contributions of any kind welcome!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.