{"id":361,"date":"2012-09-02T16:57:25","date_gmt":"2012-09-02T16:57:25","guid":{"rendered":"http:\/\/cesariohomens.wordpress.com\/?p=361"},"modified":"2012-09-02T16:57:25","modified_gmt":"2012-09-02T16:57:25","slug":"peerblock-for-linux-and-transmission","status":"publish","type":"post","link":"https:\/\/www.cesariogarcia.com\/?p=361","title":{"rendered":"PBLS4Lin v1.0 &#8211; Peerblock for Linux and Transmission"},"content":{"rendered":"<p style=\"text-align:justify;\">Um script para linux que permite utilizar as listas do Peerblock.<br \/>\nEstas listas podem ser utilizadas no Transmission.<\/p>\n<p style=\"text-align:justify;\">\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n#!\/bin\/bash\n\n#This script creates the same lists as peerblock http:\/\/www.peerblock.com\/, it outputs a file that you\n#can use on Transmission under Edit -&amp;gt; Preferences -&amp;gt; Privacy -&amp;gt; Blocklist. In the first time copy the\n#http link and use it. All lists are from http:\/\/www.iblocklist.com\n#This script was created by Ces\u00e1rio Garcia Mil-Homens - http:\/\/www.cesariogarcia.com just for the fun.\n#PBLS4Lin - v1.0\n\n#CONFIGURATION - WARNING THE DIRECTORIES SHOULD ALREADY EXIST.\n\n#Insert here the dir where is your Dropbox\/Google Drive\/etc public folders or you local server with apache\n#Using Dropbox\n#destination_folder=&amp;quot;$HOME\/Dropbox\/Public&amp;quot;\n#Using localhost\ndestination_folder=&amp;quot;\/var\/www\/peerblock&amp;quot;\n\n#Insert here your own temporary download folder, do not use \/tmp\ntemp=&amp;quot;$HOME\/tmp&amp;quot;\n\n#DO NOT EDIT BELOW THIS LINE\n\nclear\necho &amp;quot;Peerblock Lists - Automatic Uptades for Transmission&amp;quot;\necho &amp;quot;My destination folder is $destination_folder and my temporary download folder is $temp is this correct? (y\/n)&amp;quot;\n\nfunction download() {\n\tsudo cd $temp\n\tsudo wget -O - &amp;quot;http:\/\/list.iblocklist.com\/?list=bt_ads&amp;amp;fileformat=p2p&amp;amp;archiveformat=gz&amp;quot; &amp;gt; bt_ads.txt.gz\n\tsudo wget -O - &amp;quot;http:\/\/list.iblocklist.com\/?list=bt_level1&amp;amp;fileformat=p2p&amp;amp;archiveformat=gz&amp;quot; &amp;gt; bt_level1.txt.gz\n\tsudo wget -O - &amp;quot;http:\/\/list.iblocklist.com\/?list=bt_spyware&amp;amp;fileformat=p2p&amp;amp;archiveformat=gz&amp;quot; &amp;gt; bt_spyware.txt.gz\n\tsudo gunzip *.gz\n\t}\n\nfunction combine() {\n\tsudo cat bt_ads.txt bt_level1.txt bt_spyware.txt &amp;gt; peerblock.txt\n\tsudo rm bt_ads.txt\n\tsudo rm bt_level1.txt\n\tsudo rm bt_spyware.txt\n\t }\n\nfunction upload() {\n\tsudo mv -f peerblock.txt $destination_folder\n\t}\n\nread op\n\ncase $op in\n\ty) download; combine; upload;;\n\t*) exit;;\nesac\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Um script para linux que permite utilizar as listas do Peerblock. Estas listas podem ser utilizadas no Transmission. #!\/bin\/bash #This script creates the same lists as peerblock http:\/\/www.peerblock.com\/, it outputs a file that you #can use on Transmission under Edit -&amp;gt; Preferences -&amp;gt; Privacy -&amp;gt; Blocklist. In the first time copy the #http link and &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.cesariogarcia.com\/?p=361\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;PBLS4Lin v1.0 &#8211; Peerblock for Linux and Transmission&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,14,19,21],"tags":[139,184,226,230],"class_list":["post-361","post","type-post","status-publish","format-standard","hentry","category-informatica","category-linux","category-programacao","category-ubuntu","tag-linux-2","tag-peerblock","tag-transmission","tag-ubuntu-2"],"_links":{"self":[{"href":"https:\/\/www.cesariogarcia.com\/index.php?rest_route=\/wp\/v2\/posts\/361","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cesariogarcia.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cesariogarcia.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cesariogarcia.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cesariogarcia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=361"}],"version-history":[{"count":0,"href":"https:\/\/www.cesariogarcia.com\/index.php?rest_route=\/wp\/v2\/posts\/361\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.cesariogarcia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=361"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cesariogarcia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=361"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cesariogarcia.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=361"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}