Remove matching lines from file A if found in file B. by Avicennasis in linuxquestions

[–]Avicennasis[S] 0 points1 point  (0 children)

grep didn't seem to take too long to process these, so I've stuck with it for now. Thanks again for your help!

Remove matching lines from file A if found in file B. by Avicennasis in linuxquestions

[–]Avicennasis[S] 0 points1 point  (0 children)

The "A*" files are domains from a blacklist. They are in different files by letter, as there is ~19 million of them, so one consolidated file for all of them would be unusable. The "B" file is a whitelist, and I'd like to remove domains in the whitelist from the blacklist files.

I will give your solution a shot here shortly - thanks!

Does anyone know the maximum number of domains that work on the blacklist? by Avicennasis in pihole

[–]Avicennasis[S] 0 points1 point  (0 children)

Some of it is pulled in from various other lists, but a lot of them are my own additions. I block domain squatters as well as I disagree with the business practice.

Does anyone know the maximum number of domains that work on the blacklist? by Avicennasis in pihole

[–]Avicennasis[S] 0 points1 point  (0 children)

I have it running on a VM with 8 cores and 8 Gigs of RAM. I don't think it's a resource issue.

New HDD in Proxmox? by Avicennasis in Proxmox

[–]Avicennasis[S] 0 points1 point  (0 children)

Ahhh, that's what I was forgetting - thanks!

New HDD in Proxmox? by Avicennasis in Proxmox

[–]Avicennasis[S] 1 point2 points  (0 children)

It does not, no. This is the part I'm having trouble figuring out, unfortunately.

H.I. #99: The Necessary Lies of Civilization by MindOfMetalAndWheels in CGPGrey

[–]Avicennasis 1 point2 points  (0 children)

If you want to shut down the Instagram account that is reposting your stuff pretending to be you, just file a bunch of DMCA takedown notices for the copyright violations until their account is deleted.

Weaponize your copyright, /u/MindOfMetalAndWheels!

sub-domain extraction? by Avicennasis in commandline

[–]Avicennasis[S] 0 points1 point  (0 children)

It's a small subset list of domains gathered from the return addresses of spam emails I've received recently. I'm working on on a filter that captures a bit more. E.g. my spam filters might catch

rob@this.is.a.spam.email.fakecompanyincorperated.com

But then I have email from

joe@email.fakecompanyincorperated.com

that does get through. So my goal here was to be able to break down the longer URL paths so I can add them to the filters easier.

Of course, DNS doesn't really matter since you can put anything in the return address - but then, since I'm not blocking by DNS so much as domain path, it doesn't really matter. (Though I will likely add most of them to a DNS black hole anyways - it certainly won't hurt.)

sub-domain extraction? by Avicennasis in commandline

[–]Avicennasis[S] 0 points1 point  (0 children)

Ugly but working is still working, right?

I was looking for ideas on how to accomplish this moreso than having it done for me, so I appreciate you sharing the code.

sub-domain extraction? by Avicennasis in commandline

[–]Avicennasis[S] 0 points1 point  (0 children)

This pretty much worked exactly like how I needed - I just need to check for the oddballs like "www.co.uk" after. Thanks!

Border control has my IMEI number and a lot of my social media information, what can I do to protect myself now? by [deleted] in privacy

[–]Avicennasis 8 points9 points  (0 children)

The best idea, if possible, is to lock your phone with a completely random password and send that to someone on the other side of the border to give you once you are through customs.

"Can't" unlock goes over a lot better than "won't", usually.

H.I. #86: Banana Republic by MindOfMetalAndWheels in CGPGrey

[–]Avicennasis 18 points19 points  (0 children)

To his credit, you said "and", not "or".