Noprocrast

栏目: IT技术 · 发布时间: 5年前

内容简介:I wrote a command line script calledThe correspondingIn case I really need to visit one of these sites, I use the following

noprocrast

I wrote a command line script called noprocrast . This script updates /etc/hosts to make distracting websites unreachable from my machine:

sudo cp /etc/noprocrast_hosts /etc/hosts

The corresponding /etc/noprocrast_hosts :

127.0.0.1 localhost db001 db002 db003 db004 web030 web048
255.255.255.255 broadcasthost
::1             localhost
fe80::1%lo0     localhost

127.0.0.1 news.ycombinator.com
127.0.0.1 reddit.com www.reddit.com
127.0.0.1 twitter.com
127.0.0.1 nytimes.com www.nytimes.com

In case I really need to visit one of these sites, I use the following procrast script:

sudo cp /etc/procrast_hosts /etc/hosts
echo `date` >> ~/.procrasts

Then if I want to see how I have been doing with procrastination, I tail ~/.procrasts .

The /etc/procrast_hosts file is just:

127.0.0.1 localhost db001 db002 db003 db004 web030 web048
255.255.255.255 broadcasthost
::1             localhost
fe80::1%lo0     localhost

If you haven’t tried an /etc/hosts hack like this, I suggest giving it a try. You may be surprised by how much time you save.

Also see


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

JavaScript忍者秘籍

JavaScript忍者秘籍

John Resig、Bear Bibeault / 徐涛 / 人民邮电出版社 / 2015-10 / 69.00

JavaScript语言非常重要,相关的技术图书也很多,但没有任何一本书对JavaScript语言的重要部分(函数、闭包和原型)进行深入、全面的介绍,也没有任何一本书讲述跨浏览器代码的编写。本书是jQuery库创始人编写的一本深入剖析JavaScript语言的书。 本书共分四个部分,从准入训练、见习训练、忍者训练和火影训练四个层次讲述了逐步成为JavaScript高手的全过程。全书从高级We......一起来看看 《JavaScript忍者秘籍》 这本书的介绍吧!

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

URL 编码/解码
URL 编码/解码

URL 编码/解码

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具