Google Lighthouse gives a warning that the Module.css files in my DotNetNuke (DNN) modules are render blocking resources

How can I fix my DotNetNuke modules from causing render blocking?

enter image description here

Is it possible to get malware from .txt files?

Depends on the text editor you use, some of them may have known vulnerabilities that may allow it, but just from opening an txt file with notepad wont do any harm.
For example word allows macros to be used, so you can create an malicious macro and download malware or do something else, pdf can also contain an malicious codes.

Link Extractor saved files are blank

This is really weird because I just scraped like 1800 URLs that found 20X that number of internal links. All of the links are in the TXT file

Then I try to scrape ONE URL, https://www.zipcodestogo.com/ZIP-Codes-by-State.htm, and it finds 70 internal links but when I open the TXT file, there’s nothing there.

I also disabled my proxies (they were getting a “socket error # 10054”) and then I tried to scrape the homepage of The Onion as a test.

Same problem, it says that 33 internal links were found but nothing saved to the file.

And I tried using my three ProxyMesh proxies, my StormProxies that I just bought today, and no proxies. Every time it says it’s saved but the file is empty.

Any ideas?

Also, is there a way to save scraped data with a more descriptive name? It’s really difficult to find files when the file name is just a long string of numbers.

Thanks!

What are the files in the phoneypot directory?

I am running LineageOS 17.1 Lavender. Can anyone tell me the purpose of the files located in the /phoneypot directory in my Android device?

Many thanks

recovery – Restore PFILE files copied directly off of a Bitlocker encrypted directory

I have PFILE files copied directly off of a Bitlocker encrypted directory along with a backup of the pfx recovery key. The original computer died. I understand this is not the way to make copies of Bitlocker encrypted files. Is there any way to recover these files?

I imagined one might create a new directory, copy the PFILES files into it, and use Bitlocker somehow with the pfx file.

Possible? Thanks in advance.

magento2 – Why do I see the wrong static files path in my JS?

It’s happening because you’re using NGINX, so the root folder is the pub folder.

Probably the issue is not the file that doesn’t exist there, but the generation of static files hasn’t being performed. Try these commands below to set the store in the developer mode and to generate all the static files.

alias mage="php -d bin/magento" && 
mage deploy:mode:set developer && 
mage setup:upgrade && 
mage cache:flush && 
mage indexer:reindex && 
mage setup:static-content:deploy -f && 
mage setup:di:compile

admin – Magento2 wrong static files path

Stack Exchange Network


Stack Exchange network consists of 176 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

security – What could be a list of important configuration files and logs file on a Linux system that deserve to be monitored by a SIEM?

I am not a system engineer and not a security expert (I am more a software developer) but I am working on a project related to a SIEM installation (Wazuh). At the moment this installation have only a demo pourpose for a customer, in a second time a real scenario project will be implemented. This SIEM will monitor some CentOS 7 machines

I have the following doubt: we want to put under monitoring when some important files content changes.

I was thinking that for a first demo we can monitor events related these two use cases:

  • When the content of some configurations files changes.
  • When logs file size decreases (this could indicate tampering with the log files in order to eliminate information of an attack).

What do you think about? If it make sense can you suggest me a list of important configuration files and a list of important logs files that deserve to be monitored on a Linux system (in particular related to CentOS 7 system).

Moreover can you suggest me also some directory that have to be monitored in order to avoid for example that an attacker upload malicious files?

wget -m delete local files that are not existing anymore on the server

I use wget -m to mirror my webspace to my nas.
So far it’s working great, but I noticed that when a file on the server got deleted, it will be still there locally.

Is there any way to delete the local files that aren’t existing anymore on the server?

In case of the backup, that won’t be a problem, because after wget I zip the files with a timestamp.

I found some old forum posts online talking about this missing feature, but those are 15 years old.
Is there any possible way to do it now?

8 – Add vocabulary with by /update.php with yaml files

I’ve created all necessary yaml files to create new vocabulary, i am putting them to /config/install folder and new vocab is created after I reinstall module. How can I create vocabulary by updating modules?

I managed to create vocabulary by adding, code below, but it has no fields I put in yaml files

function module_update_8805() {
    $config_path = 'modules/feature/module/config/new_vocab/';
    $source = new FileStorage($config_path);

    Drupal::entityManager()->getStorage('taxonomy_vocabulary')
        ->create($source->read('taxonomy.vocabulary.new_vocab'))
        ->save();
}