Posts Tagged ‘ Hack

Tutorial:Disable Ads with DD-WRT

If you are running DD-WRT on your router and you hate ads, here is the solution to disable them on every computer in your home.

  1. Navigate to the “Services | Services” tab on your DD-WRT router.
  2. Under “DNSMasq“, make sure “DNSMasq” and “Local DNS” are enabled. Then copy and paste the following code into the “Additional DNSMasq Options” text box.
    addn-hosts=/tmp/dlhosts

  3. Next, navigate to “Administration | Commands“.  Copy and paste the following code into the “Commands” form.  Then click the “Save Startup” button.
    _rogue=0.0.0.0
    echo -e "#!/bin/sh\nn=1\nwhile sleep 60\ndo\n\twget -q -O - http://www.mvps.org/winhelp2002/hosts.txt | grep \"^127.0.0.1\" | grep -v localhost | awk '{print \"$_rogue\\\t\"\$2}' | tr -d '\\\015' >/tmp/dlhosts\n" >/tmp/write_dlhosts
    echo -e "\t[ \`grep -il doubleclick /tmp/dlhosts\` ] && break\n\t[ \$n -gt 5 ] && break\n\tlet n+=1\ndone\nkillall -HUP dnsmasq" >>/tmp/write_dlhosts
    chmod +x /tmp/write_dlhosts
    /tmp/write_dlhosts &

  4. Reboot your router.

If you would like to confirm that your blocking is enabled, open a command prompt and type in “nslookup admarket.cz“. You should get an address of 0.0.0.0 back from your DNS server.

For further information and the source of this information, take a look over on the DD-WRT forums

Share

HTML Character Code Lookup

So picture this, you are focused working on <insert thing you are working on> that must get done within the hour.  The last part of your project requires that you have a “©” inserted in the document.  You hop on google and start searching for alt codes and html codes.  You find a ginormous table of html codes and start sifting through the table only to find that for some reason this huge table of characters is somehow missing the one character that you need!

Have no fear, I found this nifty little app that will save the day.

This app lets you search through characters.  If the character you are looking for contains or looks like a “c” just enter “c” in the search field and it will give you a list of all relevant entries.  Nifty Eh?

http://leftlogic.com/lounge/articles/entity-lookup/

LackRack Hack

If you are an IT nerd like me, you may have run into the issue of needing a rack mount for your miscellaneous peripherals. The guys over at Eth-0 have come up with a great way to use Ikea furniture, providing the perfect rack mount for Switches and servers.