Google App script for the website monitor and updates via slack or email
- Customizable as per needed
function init(){
const urls = [
"URL_1",
"URL_2",
];
function init(){
const urls = [
"URL_1",
"URL_2",
];
PHP setup useful commands
phpcs_ipath=$(phpcs --config-show installed_paths); oldpath=${phpcs_ipath##*:}; phpcs --config-set installed_paths ${oldpath},$(pwd)
[ | |
{ | |
"Country Code": "AF", | |
"Country Name": "Afghanistan", | |
"GMT Offset": "UTC+04:30" | |
}, | |
{ | |
"Country Code": "AL", | |
"Country Name": "Albania", | |
"GMT Offset": "UTC+01:00" |
Individual site If you have a site with slug blog on a WordPress multisite instance using subdomains, you can use the full URL to run a command against the site:
wp --url=blog.example.com
Think of the --url= parameter as any URL you can put in your browser.
Multiple sites Need to run a given WP-CLI command against multiple sites on a WordPress multisite install? You can do so using a combination of wp site list and xargs.
This isn't a direct answer to the question but this page comes back when searching for ways to revert a branch's code to a tag release.
Another way is to create a diff between the current state of the branch and the tag you want to revert to and then apply that to the branch. This keeps the version history correct and shows the changes going in then coming back out again.
Assuming your branch is called master and the tag you want to go back to is called 1.1.1
https://stackoverflow.com/questions/6872223/how-do-i-revert-master-branch-to-a-tag-in-git
git checkout 1.1.1
git diff master > ~/diff.patch
get slug from URL and change URL of article links
function GETCONTENTCREATORURL( articleUrl ) {
const contentSiteUrl = "REPLACE_CONTENTENT_SITE_URL";
const slug = articleUrl.split('/');
return contentSiteUrl+slug[ slug.length-2 ]+'/'+slug[ slug.length-1 ];
}
put in wp-config.php
file
if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false)
$_SERVER['HTTPS']='on';
Virtualhost Manage Script
Bash Script to allow create or delete apache/nginx virtual hosts on Ubuntu on a quick way.
Complete Installation and Configuration of Apache2, Multiple PHP, MariaDB, phpMyAdmin, LetsEncrypt, | |
HTTP/2, IonCube, Postfix, Dovecot, SPF, DKIM, Roundcube Webmail and | |
Files Permission Commands on Ubuntu 18.04 and 18.10 Web Server | |
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # | |
This is a complete Ubuntu Linux based web server for Website, PHP, SSL, TLS, Database and Email hosting purpose. | |
Built with the below components for good performance. Also, I tried to make it as secure as possible. |
Do this inside your wp-config.php
.
It must be the absolute path to the socket.
define('DB_HOST', 'localhost:' . __DIR__ . '/.mysql/mysql.sock');