pastebin - collaborative debugging

pastebin is a collaborative debugging tool allowing you to share and modify code snippets while chatting on IRC, IM or a message board.

This site is developed to XHTML and CSS2 W3C standards. If you see this paragraph, your browser does not support those standards and you need to upgrade. Visit WaSP for a variety of options.

Bash pastebin - collaborative debugging tool View Help


Posted by pitombera on Tue 2 Sep 14:24 (modification of post by pitombera view diff)
report abuse | download | new post

  1. #!/bin/sh
  2. #### Calomel.org  ad_servers_newlist.sh
  3. #
  4. ## get new ad server list
  5. /usr/local/bin/wget -O /tmp/temp_ad_file \
  6.    'http://pgl.yoyo.org/adservers/serverlist.php?hostformat=squid-dstdom-regex;showintro=0'
  7.  
  8. ## clean html headers out of list
  9. cat /tmp/temp_ad_file | grep "(\^|" > /etc/squid/ad_block.txt
  10.  
  11. ## refresh squid
  12. /usr/local/sbin/squid -k reconfigure
  13.  
  14. ## rm temp file
  15. rm -rf /tmp/temp_ad_file

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with @@


Remember me so that I can delete my post