Peppermint OS Community Forum

Support => Advanced Topics => Topic started by: spence on September 02, 2018, 01:14:14 pm

Title: I found a new HOSTS file today...
Post by: spence on September 02, 2018, 01:14:14 pm
while answering some questions for a buddy on iOS who wanted Blokada... I discovered a new hosts file today...   8)

https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts (https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts)

Quote
Extending and consolidating hosts files from several well-curated sources like adaway.org, mvps.org, malwaredomainlist.com, someonewhocares.org, and potentially others. You can optionally invoke extensions to block additional sites by category.

For those of you who use HOSTS...   ;)
Title: Re: I found a new HOSTS file today...
Post by: spence on September 03, 2018, 03:45:20 pm
I was more selective in the types of google services I unblocked, so happily Ancestry.com is still functional for me... I was wondering how this list compared with the one you have in Peppermint 9's  Advert Block @PCNetSpec?
Title: Re: I found a new HOSTS file today...
Post by: PCNetSpec on September 03, 2018, 04:41:29 pm
Oh chr*st, I dunno spence, they're far too big to go through and compare ???

Wouldn't matter what **I** thought anyway .. use whichever work for YOU my friend.
Title: Re: I found a new HOSTS file today...
Post by: VinDSL on September 03, 2018, 05:08:50 pm
I was wondering how this list compared with the one you have in Peppermint 9's

May I suggest...?

9 Best File Comparison and Difference (Diff) Tools for Linux (https://www.tecmint.com/best-linux-file-diff-tools-comparison/)

My personal favorite is DiffMerge (https://sourcegear.com/diffmerge/).

I use it for checking for differences in contracts - and, changes I've made to program code.

Having a 29" (or larger) monitor helps  ;)
Title: Re: I found a new HOSTS file today...
Post by: PCNetSpec on September 03, 2018, 08:29:45 pm
Though I'm not sure a "diff" app would help here .. I'm not sure spence is actually being that specific.

But, here's a VERY useful Nemo plugin anyway...

In addition to your "9 diff tools" link, you could install
Code: [Select]
sudo apt-get install nemo-compare
then log off/on.

Now you can right-click any file or folder and select "Compare Later" .. then right-click any other file or folder and select "Compare to <name of previous file/folder>" to compare their contents.

I find this Nemo context menu plugin (for Meld) invaluable.

Comparing 2 text files
(https://i.imgur.com/NtcHWZX.png)

Comparing two folders
(https://i.imgur.com/wAKtIUr.png)

HINT - The first time you use it, and get the meld window pictured above, you might want to go to
Meld > Preferences
and change
Syntax highlighting color scheme: Peppermint
otherwise the differences highlighted differences in text files are hard to read.

HINT 2 - You might also want to check out Meld which will now also in the main menu when you installed nemo-compare. (Meld is mentioned in VinDSL's link, and is the actual app nemo-compare is using)

HINT 3 - It also has a "File > Format as Patch" option, that will allow you to save the differences as a diff patch (in either direction).
Title: Re: I found a new HOSTS file today...
Post by: spence on September 07, 2018, 03:20:19 pm

Code: [Select]
sudo apt-get install nemo-compare

Now you can right-click any file or folder and select "Compare Later" .. then right-click any other file or folder and select "Compare to <name of previous file/folder>" to compare their contents.

I find this Nemo context menu plugin (for Meld) invaluable.

Excellent, I compared the Dan Pollock host file with the newly discovered Steven Black one and found them to be exact copies, save the extra explanation Dan adds to his file to explain what each subset of 0.0.0 domains are blocking.
Title: Re: I found a new HOSTS file today...
Post by: VinDSL on September 07, 2018, 06:52:35 pm
Comparators FTW  ;D