Google Error
Here’s something you don’t see every day. Google was giving me intermittent page errors

Errors usually give a little bit of insight into how sites are being ran. It looks like google is using squid for caching.
Here’s something you don’t see every day. Google was giving me intermittent page errors

Errors usually give a little bit of insight into how sites are being ran. It looks like google is using squid for caching.
The best ideas come from finding something you do all the time, realize you do it, and then automate it.
With me, I discovered that I frequently go to the base domain of a website by going to the URL, highlighting and deleting the junk on the end of the domain name and then pressing enter. I HATE doing it. I also have to do it when websites don’t link to their home page.
So here’s an easy solution. A bookmarklet!
Drag the link below to your bookmarks bar (or in IE, right-click and add to favorites):
Here is the code:
var url = new String(location.href);var re = new RegExp(’https?://([A-Za-z0-9.-]+)’);var res = url.match(re);location.href=res[0];
Enjoy ![]()
I always go through the same three steps to download a file (in tar.gz format)
So I made a bash script that does those three steps in one. Use it the same way as wget (# simple.sh http://path/to/file.tar.gz)
#!/bin/bash
# change this to whatever extension you'd like to handle
ext=".tar.gz"
# flags to pass to tar
flg="-zxvf"
wget $1
file=`ls -t *$ext | grep -i -m 1 "^.*$ext$"`
if [[ -n $file ]]
then
tar $flg $file
unlink $file
else
echo "Could not find the downloaded file."
fi
You can download it via this link (Remember to make it executable and to change its extension)
Continue
I create things.