瞎扯淡 效率启示录

turristan · March 27, 2015 · Last by est replied at March 27, 2015 · 1793 hits

有人在唱哈利路亚,恍惚间我得到了天启,于是我的开发效率提升了数倍。

天启如下:

首先需要本地安装Apache server,然后 redirect 404 request 到 localhost, 我的系统中DocumentRoot/srv/http, 于是设置/etc/httpd/conf/httd.conf:

<Directory "/srv/http">
  AllowOverride All
</Directory>

接下来编辑 /srv/http/.htaccess,将 404 request redirect 到 index 页。

ErrorDocument 404 /index.html

紧接着,创建/srv/http/index.html:

<html>
    <head>
        <title>GET BACK TO WORK, YOU HOBO</title>
        <style type="text/css">
            html {
                background: #f00;
            }
            h1 {
                color: #0f0;
                font-family: sans-serif;
                text-align: center;
                margin-top: 100px;
                font-size: 64pt;
            }
        </style>
    </head>
    <body>
        <h1>GET BACK TO WORK, YOU HOBO</h1>
    </body>
</html>

最后一步,编辑/etc/hosts:

127.0.0.1 ruby-china.org weibo.com 9gag.com www.weibo.com hupu.com nba.hupu.com reddit.com www.reddit.com

All done.

为了不刺瞎诸位的眼球,我将结果放在了这里

如果这样效果还一般,试着加点背景音乐,加点 gif 动画。定时变换背景色闪瞎氪金狗眼也不错。

这算是挥刀自宫吗?

请问你是怎么来发帖的?写了个脚本自动更换 hosts?

#2 楼 @peter #1 楼 @jcd 快周末了,开开玩笑而已。

我是来破坏队形的

http://weibo.com./

You need to Sign in before reply, if you don't have an account, please Sign up first.