This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# MUST INCLUDE colors.sh | |
# Script to cycle through the current directory to each direct child directory and generate a report of the WordPress file integrity using wp-cli (/usr/local/bin/wp) with the `wp core verify-checksums` and `wp plugin verify-checksums --all` commands. Reports will be saved in the current directory as a .txt file with the name of the directory the report was generated from and a unix timestamp appended. | |
# Exit immediately if a command returns a non-zero status | |
set -e | |
# Get the current directory | |
parent_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | |
scanreport_dir="scan_reports" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$interceptUris = [ | |
'rtm/status', | |
'rtm/Loggedin', | |
'AppAuthorization/GetAuthorization', | |
'AppAuthorization/GetLicenseData', | |
'AppAuthorization/MultitoolData' | |
]; | |
foreach ($interceptUris as $uri) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Reset all formatting | |
RESET="\e[0m" | |
#Text Decorations | |
BOLD="\e[1m" | |
NOBOLD="\e[21m" | |
UNDERLINE="\e[4m" | |
NOUNDERLINE="\e[24m" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ps ax | grep crond | |
$ kill -9 {process_id} | |
$ (Kill all processes apart from the grep search) | |
$ service crond restart | |
$ (Log in to magento and kill the running process from scheduler) | |
# Should take a few minutes to be picked back up with magento |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell] | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\cmd] | |
@="@shell32.dll,-8506" | |
"NoWorkingDirectory"="" | |
"Extended"="" | |
"Icon"="cmd.exe" |