...
...
#!/bin/bash | |
cd /www/ | |
# check for existing record | |
record_check=$( wp db query 'SELECT * FROM wp_sitemeta WHERE meta_key like "ms_files_rewriting";' ) | |
if [[ $record_check == "" ]]; then | |
echo "Inserting record to disable ms-files.php" | |
wp db query 'INSERT INTO wp_sitemeta (meta_id, site_id, meta_key, meta_value) VALUES (NULL, "1", "ms_files_rewriting", "0");' |
#!/bin/bash | |
# https://support.google.com/a/answer/10026322?hl=en | |
curl -s https://www.gstatic.com/ipranges/cloud.json | jq '.prefixes[] | [.ipv4Prefix, .ipv6Prefix][] | select(. != null)' -r | sort -n |
import os | |
import re | |
from pathlib import Path | |
from collections import defaultdict | |
def scan_env_usage(): | |
# Load current .env variables | |
env_vars = set() | |
if os.path.exists('.env'): | |
with open('.env', 'r') as f: |
<?php | |
defined('BASEPATH') or exit('No direct script access allowed'); | |
/*** | |
* File: (Codeigniterapp)/libraries/Controllerlist.php | |
* | |
* A simple library to list all your controllers with their methods. | |
* This library will return an array with controllers and methods | |
* | |
* The library will scan the "controller" directory and (in case of) one (1) subdirectory level deep |
{ | |
"scripts": [], | |
"styles": [] | |
} |
{ | |
"scripts": [], | |
"styles": [] | |
} |
{ | |
"scripts": [], | |
"styles": [] | |
} |
{ | |
"scripts": [], | |
"styles": [] | |
} |