Tuesday, July 16, 2013

Using AdBlock to hide Dennis Reno's smug face

I use Chrome (where possible), and I hate ads. So I use the AdBlock plugin. It does a fantastic job at blocking most ads, but it also does a great job at removing all those annoying web parts you can live without.

For example, I spend a lot of my professional life logging into the My Oracle Support (MOS) website. Anyone that uses MOS, or deals with Oracle support will understand when I say...I hate Oracle, I hate their support model, but mostly, I hate staring at Dennis Reno's smug face every time I login.

Adblock allows me to simply select the bits I class as "ads" and hide them. To do this you select "block an ad on this page". Next you select the web part you class as an ad (in this case, Reno's face) click "looks good" then "block it!" and....

Much better!

Tuesday, July 9, 2013

Using Powershell to find duplicate directory names

I keep all my transcoded DVD's, in their own properly named directories, but spread across various volumes on my HTPC. Over the years I've moved my library across many disks and I knew I had at least a few duplicates because of this. There are many ways to skin a cat, but here's my taxidermy efforts:

Friday, July 5, 2013

Raspberry Pi Proxy Project

I'm a proud father of twin 8 month old girls. With fatherhood comes many, many fears, one of which is online safety. I was recently contemplating how (when the time comes) will I keep my girls safe from the dark areas of the internet. It was grounds for a proof of concept proxy, to at least understand what is possible, how easy is it to manage, and could it ultimately achieve a level of transparency between what my girls are doing online and what their parents are aware of.

Don't get me wrong, no acl can be a substitute for good parenting and an open, loving relationship between parents and their kids. But, I'm a child of the internet...and I can appreciate the value a proxy can bring the parents of connected children these days.

I'll be setting this up from a windows machine. There are a couple of things you'll need to get started:

I wrote the raspbian image to my SD card, booted up my rpi and performed the following:

Update repository and install squid:
$ sudo apt-get update
$ sudo apt-get install squid3

Modify squid configuration:
$ sudo vi /etc/squid3/squid.conf
Uncomment the following lines:
http_access allow localnet
acl localnet src

Restart squid service:
$ sudo service squid3 restart

Now I point my browser to 192.l68.1.5 on port 3128 (default squid port) and I'm now running through my pi proxy. To confirm this is working you can tail the access log like so:

$ sudo tail -f /var/log/squid3/access.log

All in all very easy to setup to this basic level. Next I'd like to play around with turning this into a transparent proxy, and generating decent reporting.