Authentication – Upload the file to Sharepoint without saving your username / password

We want to upload files as part of CI / CD in Github (Actions) to SharePoint.
I figured out how to do this with REST API, but that requires username / password. Owner tokens also work, but we need a separate call to get them, which in turn requires username / password

Is it possible to get a kind of permanent token (I have already created an access token for apps only) and to use it directly in the REST call?

Basically, the question arises: How can I upload a file to Sharepoint using HTTP calls and without a username / password?

python – How to parse this strange INI-like file with a .dat extension

I stumbled across this data source to include it in my current NodeJS project and was completely depressed that it doesn't seem to parse it for every script I try to create.

Apparently this file is not a regular INI file: it has regular sections and the lines in the sections do not have a key, but these lines have fields marked with a & # 39; | & # 39; are separated. Characters, some of which explain the meaning of the fields and are correctly commented out. I want to turn this file into a much more usable JSON file, but I can't find a way to handle it for my life (mainly because of double lines).

How would you do it (possibly with Python or Node)?

example

(FIRs)
;ICAO|NAME|PREFIX POSITION|
;dummy codes for Adria CTR
ADR|Adria Radar||ADR
ADR-W|Adria Radar (West)|ADR_W|ADR-W
ADR-E|Adria Radar (East)|ADR_E|ADR-E
AGGG|Honiara||AGGG
ANAU|Nauru||ANAU
AYPM|Port Moresby||AYPM
BGGL|Sondrestrom|SFJ|BGGL
BGGL|Sondrestrom|GREN|BGGL
BIRD|Reykjavik||BIRD
BIRD-E|Reykjavik ACC (East) - Reykjavik|BIRD_E|BIRD-E
BIRD-N|Reykjavik ACC (North) - Reykjavik|BIRD_N|BIRD-N
BIRD-S|Reykjavik ACC (South) - Reykjavik|BIRD_S|BIRD-S

If you would like to see the file yourself, you can find it here (github.com).

Windows – Transfer of the exe file to users without administrator rights outside the network to install the software

I am now at a dead end and need your help. I tried everything I could find on the web, but I couldn't.

I have hundreds of Non-Administrator Domain users working on their Windows 10 laptops outside Our network with No VPN connection to the domain.

I need to give them a file so they can install a small piece of software.

We used to create the function as a script Race like in the AutoIt, compiled it (with the hard-coded credentials inside) and shared the file with external users. You just had to do it.
Neither a perfect nor the safest solution, but it worked for emergencies.

But now those days are over, with user account control and the need for increases, even with registered administrators.

Is there any way to install the software from a non-administrator user who is not in contact with the domain controllers by just running a local script or exe or even msi?

For example, sharing administrative credentials that have been encrypted or compiled in a script, or even character the exe or msi file in the domain so that the Windows operating system can trust it and accept the installation even if it is not in contact with it?

I tried all The AutoIt forums' suggestions tried that not that old schtasks Workaround, RunAs alternatives, etc., but everything needs to be expanded even if it is run with administrator credentials.

There must be a safe way to do this.

python – How to analyze this strange INI-like file with a .dat extension

I stumbled across this data source to include it in my current NodeJS project and was completely depressed that it doesn't seem to parse it for every script I try to create.

Apparently this file is not a regular INI file: it has regular sections and the lines in the sections do not have a key, but these lines have fields marked with a & # 39; | & # 39; are separated. Characters, some of which explain the meaning of the fields and are correctly commented out. I want to turn this file into a much more usable JSON file, but I can't find a way to handle it for my life (mainly because of double lines).

How would you do it (possibly with Python or Node)?

example

(FIRs)
;ICAO|NAME|PREFIX POSITION|
;dummy codes for Adria CTR
ADR|Adria Radar||ADR
ADR-W|Adria Radar (West)|ADR_W|ADR-W
ADR-E|Adria Radar (East)|ADR_E|ADR-E
AGGG|Honiara||AGGG
ANAU|Nauru||ANAU
AYPM|Port Moresby||AYPM
BGGL|Sondrestrom|SFJ|BGGL
BGGL|Sondrestrom|GREN|BGGL
BIRD|Reykjavik||BIRD
BIRD-E|Reykjavik ACC (East) - Reykjavik|BIRD_E|BIRD-E
BIRD-N|Reykjavik ACC (North) - Reykjavik|BIRD_N|BIRD-N
BIRD-S|Reykjavik ACC (South) - Reykjavik|BIRD_S|BIRD-S

If you would like to see the file yourself, you can find it here (github.com).

magento2 – Magneto 2 Custom Module – Load the subscriber's email in PHTML file after subscribing to the newsletter

I'm working on a custom module in which we need to load a newsletter subscriber's email address into an HTML file after subscribing.

Our observer file is triggered on a subscription event and collects the following data:

public function execute ( Magento Framework Event Observer $ observer) {
$ event = $ observer-> getEvent ();
$ subscriber = $ event-> getSubscriber ();
$ email = $ subscriber-> getEmail ();
$ promoCode = $ subscriber-> getNpDiscountCode ();
$ data = ();
$ inputEmail = $ email;
}

Now we have to load $ inputEmail into an HTML file and have to submit a solution.

Any help would be appreciated!

python – The txt file "readlines ()" cannot be opened

When i use

with open('books_txt/Horror/7894.txt', "r") as fout:
    text = fout.readlines()

Error occurs:

---------------------------------------------------------------------------
UnicodeDecodeError                        Traceback (most recent call last)
 in 
      1 with open('books_txt/Horror/7894.txt', "r") as fout:
----> 2     text = fout.readlines()

~/anaconda3/lib/python3.7/codecs.py in decode(self, input, final)
    320         # decode input (taking the buffer into account)
    321         data = self.buffer + input
--> 322         (result, consumed) = self._buffer_decode(data, self.errors, final)
    323         # keep undecoded input until the next call
    324         self.buffer = data(consumed:)

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa9 in position 74: invalid start byte

But I could open the txt file in the vim terminal. How do you open it in a Python file?

To update:
I find "rb" instead of "r" works. What is the mechanism behind it?

Linux – How do I get the Overall.RMS_level in real time from a UDP stream as an integer attached to the log file?

My goal is to monitor the audio of a UDP stream in real time to see if the audio is missing or too quiet. At the end, attach to a log file that contains the integer values ​​in decibels.

I've tried ffprobe and ffmpeg and the only valid output I could get is using ffmpeg.

ffmpeg gives the correct results, however the output file specified as "log.txt" is open for the output lock of ffmpeg and no data is written to it until you press Ctrl-C to end the process at the time when the output file is closed. I'm going to write a script to query the output file in real time as the file is being written, but only if I can figure out how to instruct ffmpeg to append "log.txt" for each sample taken.

Please provide an alternative method or a solution for this method.

Attempt 1 using ffmpeg

ffmpeg -i 'udp://@232.1.1.5:30120' -af astats=metadata=1:reset=1,ametadata=print:key=lavfi.astats.Overall.RMS_level:file=log.txt -f null -

Example of the contents of the "log.txt" file according to Ctrl-C

frame:0    pts:0       pts_time:0
lavfi.astats.Overall.RMS_level=-34.210103
frame:1    pts:1536    pts_time:0.032
lavfi.astats.Overall.RMS_level=-31.515254
frame:2    pts:3072    pts_time:0.064
lavfi.astats.Overall.RMS_level=-32.894668
frame:3    pts:4609    pts_time:0.0960208
lavfi.astats.Overall.RMS_level=-33.187652

Experiment 2 Using ffprobe

ffprobe -i 'udp://@232.1.1.5:30120',astats=metadata=1:reset=1 -show_entries frame=pkt_pts_time:frame_tags=lavfi.astats.Overall.RMS_level,lavfi.astats.1.RMS_level,lavfi.astats.2.RMS_level -of csv=p=0

This works and only shows the time code. Empty lines are shown in the console output for lavfi.astats.Overall.RMS. I think the problem has to do with lavfi?

Sample output to the console:

22508.110500
22507.361267


22508.143867
22507.393267


22508.177244
22507.425267

I tried to change the command line to specify -f-lavfi before typing -i, but it returned an error:

ffprobe -f lavfi  -i 'udp://@232.1.1.5:30120',astats=metadata=1:reset=1 -show_entries frame=pkt_pts_time:frame_tags=lavfi.astats.Overall.RMS_level,lavfi.astats.1.RMS_level,lavfi.astats.2.RMS_level -of csv=p=0

Returns:

[lavfi @ 0x55c69784f840] No such filter: 'udp://'
udp://@232.1.1.5:30120,astats=metadata=1:reset=1: Invalid argument

Protocol Analysis – Why does a host request a WPAD file from an external location?

I noticed inquiries in my client's NGFW logs (REDACTED)/wpad.dat Be made. The target domain is registered on an external non-customer IP, and the user agent suggests that Windows AutoProxy be used.
I was able to download the wpad file myself and check the content:

function FindProxyForURL(url, host) 

{ 

return "DIRECT"; 

} 

If I understand that correctly, traffic is not routed through the wrong proxy server to be a WPAD attack.

I am trying to find out why this traffic could have taken place originally. Changes to the "Internet settings" (e.g. due to malware) on the hosts? Is there any other risk associated with this traffic than the fact that the server owner can change the Wpad file?

Hard Drive – If you copy a gigabyte file via USB, a warning is displayed that files are duplicated

I'm trying to copy a 1.4 gigabyte photo library from an external, case-sensitive Journaled HFS + floppy disk to a reformatted APFS SSD, case insensitive. The external hard drive is located in an external drive bay that is connected via USB.

The process takes a few hours. From this point on, the error message is displayed

You cannot copy this file because the name is the same as the other items on the target disk and this disk does not distinguish between uppercase and lowercase letters in file names.

There is no duplicate file on the drive.

Is the file name cached due to the file size? Is there something in the package? The file integrity is fine – I can open it from the bay as a photo library. I thought I could open it as a referenced file and use the Photo & # 39; s Consolidate option to easily work around the problem, but "Show Referenced File" and "Consolidate" are both greyed out in the file menu.

Can I use rsync or any other method to copy the file, or do I have to be case sensitive? Since this is my wife's entire photo collection, I am extremely careful and would be happy to receive instructions.

How SQL Server decides in which file data should be saved

We have a database with multiple filesets. Of these, there is a filegroup in which there is a data file on one drive with auto growth disabled and another data file on another drive with auto growth enabled. The total internal free space of both files is shown below.

PhysicalName Total size in MB Available storage space in MB

E: DB_1.ndf 524206 143432
J: DB_2.ndf 433024 166861.94

How does SQL Server decide in which data file the new data will be saved?