1 Posts Tagged 'Productivity'
Productivity Booster
I came up with a great way to increase my productivity recently. You need a locally-running Apache server for this to work most effectively.
First you need to set up a redirect for 404 requests to localhost. On my system I determined that DocumentRoot is /srv/http, so I set this up in /etc/httpd/conf/httpd.conf:
<Directory "/srv/http">
AllowOverride All
</Directory>
Next I edited /srv/http/.htaccess to redirect 404's to a main index page:
ErrorDocument 404 /index.html
Then I created /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>
Almost done; the final step is to edit /etc/hosts:
127.0.0.1 reddit.com www.reddit.com slashdot.org news.ycombinator.com
Now I see this. Image hidden behind a link to spare the eyes of my readers.
If this doesn't work, you could try making the background color flash quickly between red and green, or add a background MIDI and some animated GIFs.
1
