javascript – script or command to close the program that runs the web page in js, php, or any other way?

I'm creating a new program that runs in PHP and opens every HTML, PHP and js file as a browser. The problem is that I want to know if there is any way to close the program with js, php or any other way I want the program to be fun in fullscreen mode and the users click it with a click of a button close the HTML file.

bash – All-core upgrade script for the MediaWiki website

I've written the following bash script to update all-core MediaWiki sites (no added extensions / skins or images – except the logo image).

I have already tested the essence of this script and it worked for me. MediaWiki has been updated by 1.32.0. to 1.33.0; Nevertheless, I would be pleased about a rating:

#!/bin/sh

date="$(date +%F-%T)"
db_user_name_and_db_name="SOME_IDENTICAL_NAMES" # DB user name and DB name must be the same;
war="SOME_DOCUMENT_ROOT"
domain="SOME_DOMAIN" # As site's directory;
target_url="LINK_TO_LATEST_MEDIA_WIKI_ARCHIVE_DOWNLOAD"

mkdir -p "${war}/mediawiki_general_backups"
mkdir -p "${war}/mediawiki_specific_backups"

zip -r "${war}/mediawiki_general_backups/${domain}-directory-backup-${date}.zip" "${war}/${domain}"
mysqldump -u "${db_user_name_and_db_name}" -p "${db_user_name_and_db_name}" > "${war}/mediawiki_general_backups/${domain}-database-backup-${date}.sql"

files=(
    LocalSettings.php
    robots.txt
    .htaccess*
    ${domain}.png
    googlec69e044fede13fdc.html
)

cd "${war}/${domain}"
cp "${files(@)}" "${war}/mediawiki_specific_backups"

rm -rf "${war}/${domain}"
mkdir "${war}/${domain}"
wget ${target_url} -O - | tar -xzv --strip-components 1 -C ${war}/${domain}

cp -a "${war}/mediawiki_specific_backups"/* "${war}/${domain}"
cd "${war}/${domain}"/maintenance
php update.php

You are welcome to edit the question if you believe it is right.

Windows 10 – switching between starts with batch file / bash script

I'm new to coding scripts (both bash and batch) and trying to figure out if what I'm trying is possible at all. I want to create an application that simplifies the dual booting of Windows and Ubuntu. Basically, the app will have two parts (Windows 10 part and Ubuntu 18.04 part), on the Windows side I want to run a batch file that restarts and boots in Ubuntu while the Ubuntu page restarts and with bash in Windows boots.

Basically, I want to know which operating system boots after the reboot. I suspect the script must change the boot order in the UEFI settings and then restart the computer. Can you do that with Bash and Batch?

Biggest complaints with script auto-installers like Softaculous, Installatron & Fantastico?

We use Softaculous … mainly because Fantastico became Abayware (assuming it started again, maybe?). At that time it was just a choice between Softaculous and Installatron … I just wanted to choose one.

Apart from that, my opinion on script auto-installers or libraries has changed lately. In most cases, users only need to install one or two of the available scripts (usually WordPress, less Joomla or Drupal). Offering more than 500 scripts, of which 490 were last updated 5 years ago, is becoming a security risk.

If I had my Druthers … I would limit Softaculous's base library to WordPress, Joomla !, Drupal, maybe a few other scripts. Then enable certain scripts for specific users who need them. It makes no sense to turn on Bob's Cat Gallery script so anyone can install it – if it has not been updated for years.

End users are notorious for installing scripts and forgetting them. They either rightly forget about it or they believe that no one can find it and exploit it because they do not use it. The more scripts you provide for easy installation, the easier it is to install. Then these scripts are exploited, the account is used to send spam, our server is blacklisted and we have to somehow tactfully explain to other clients why this happened.

Command line – Using "" in shell script

I need to use an ffmpeg command in a shell script

The command is the next

(ffmpeg -hide_banner -hwaccel cuvid -c: v h264_cuvid -f hls -i $ (youtube-dl -f 95 -g $ ylink) -c: v h264_nvenc -r 50 -c: a pcm_s16le -ac 2 -ar 48000 – f hls -hls_list_size 0 /home/build/MSS-ONE/temp/cache/project-$intnumber/$project.m3u8 2> /home/build/MSS- ONE / temp / logs / $ project- $ intnumber / $ project – $ intnumber-cache.log) &

I need to get the result of the embedded command $ (youtube-dl -f 95 -g $ ylink) in quotation marks, so the result in Shellscript should look something like this

ffmpeg -hide_banner -hwaccel cuvid -c: v h264_cuvid -f hls -i "https: // manifest. googlevideo.com/api/manifest/hls_playlist/expire/1566607293/ei/XTNgXdq4B8O-gwP_7 Kn4CA / ip / 158.50.77.241 / id / -1xif50QMr4.365 / itag / 95 / source / yt_live_broadcast / request / yes / live_broadcast / live / 1 / goi / 160 / sgoap / gir% 3Dyes% 3Bitag% 3D140 / sgovp / gir% 3 Dyes% 3Bitag% 3D136 / hls_chunk_host / r2 — sn-p5qs7nek.googlevideo.com/playlist_type/ DVR / initcwndbps / 6590 / mm / 44 / mn / sn-p5qs7nek / ms / lva / mv / mvi / 1 / pl / 20 / dover / 11 / keepa live / yes / BEIDS / 9466588 / mt / 1566585624 / disable_polymer / true / sparams / expire, egg, ip, id, itag, source requiressl, rate bypass, live, goi, sgoap, sgovp, playlist_type / sig / ALgxI 2wwRQIhANz10pUs-d4j0UXRSjzBYPXfyX4ud8mJMMbr9atpDZK_AiBzHkWNXpg2ALK0mnAZPiF_c_U6w Q6Kl5sIUwPlFoNm1A% 3D% 3D / lsparams / hls_chunk_host, initcwndbps, mm, mn, ms, mv, mvi c5pVB6EbAOq8 -PqmMES4dpWG / playlist / index.m3u8 ** "** -c: v h264_nvenc -r 50 -c: a pcm_s16l e -ac 2 -ar 48000 -f hls -hls_list_size 0 / home / build / MSS-ONE / temp / cache / TN-4474 fe64 / TN.m3u8

I do not know how it works.

Can someone help me?

Thank you in advance.

Sell ​​- GogoAnime Clone Script | WJunktion

(IMG)

Screenplay Award: $ 69

This script is shipped FREE with a gogoanime clone layout.

Demo Online
A GogoAnime clone script that uses gogoanime.io as the source for the content.

This package includes:

  • Gogoanime layout
  • TotoCMS Core package
  • 12 months free updates and professional support
  • fully automatic
  • easy installation

Purcashe page: https://anicms.com/

If you need help or have questions, feel free to contact me via the Skype username. "MozTycoon"

Command Line – How to Write a Shell Script for a USB Drive?

I am currently writing the shell script for the USB drive on Linux. I plan to do the following tasks.

1) Automatically detect the newly connected USB drive and perform the next operation.

2) When the multiple USB drive is connected to the system (x, y, z). Locate the appropriate USB drive by name. (I wrote the code for it and it works)

3) Copy the path of the respective USB drive and use it to mount the USB stick under Linux.

4) After mounting the USB drive, compare the similar folder between the USB drive and the desktop. If the folders are different, copy the data from the USB drive to the Desktop folder and reboot the system.

It will be great if you suggest the way to me. Sorry if I miss something.

Kind regards

Send multiple emails using Google Script while using different attachments

I have a Google spreadsheet with a list of emails. I want to create a routine that automatically sends emails to these email addresses. I also want to attach other PDF / xlsx files that match the filename specified in the Google Sheet to this email. The PDF / xlsx file is located in my Google Drive.

When running the following script, the following error message appears:

Cannot retrieve the next object: iterator has reached the end. (line 31, file "Code")

I'm new to Google Spreadsheets. Could you please help me?

This is the code:

function launch_mail() {
  var sheet = SpreadsheetApp.getActive().getSheetByName('Mail 2')
  var startRow = 3  // First row of data to process
  var EMAIL_SENT = "EMAIL_SENT";
  var numRows = sheet.getLastRow();   // Number of rows to process
  var dataRange = sheet.getRange(startRow, 1, (numRows), 10)

  // Fetch values for each row in the Range.
  var data = dataRange.getValues();
  for (var i = 0; i < data.length; ++i) {
    var row = data(i);
    var emailAddress = row(0);
    if (emailAddress != "") {
    var message = row(4);
      var file = DriveApp.getFilesByName(row(6));
    var emailSent = row(5);
    var options = {
       cc: row(1),bcc: row(2),attachments: (file.next().getAs(MimeType.pdf))
        };
      if (emailSent != "EMAIL_SENT" && emailSent != "N/A"&& emailSent != "n/a") {  // Prevents sending duplicates
      var subject = row(3);
      MailApp.sendEmail(emailAddress, subject, message,options 
     );
      sheet.getRange(startRow + i, 6).setValue(EMAIL_SENT);
      // Make sure the cell is updated right away in case the script is interrupted
      SpreadsheetApp.flush();
      }
    }
  }
}