Powered by https://4sysops.com/archives/deploying-an-azure-jumpbox-jump-server/
brew update && brew install azure-cli
then login
az login
https://app.cacher.io/ az account list-locations --output table
| <?php | |
| class wpMandrill{ | |
| static function load(){ | |
| function wp_mail(){ | |
| echo 'custom mail'; | |
| } | |
| } | |
| } |
| <?php | |
| /** | |
| * Function remove_action_by_class | |
| * Used to remove notices and nags or other class actions added with class instances (unable to remove with remove_action) | |
| * | |
| * @param $hook_name | |
| * @param $class_and_function_list | |
| * @param int $priority | |
| * | |
| * ex use case: |
| <?php | |
| //for use with SimpleXML objects | |
| //ie $setting->addChild( $name, xml_entities($v) ); | |
| if(!function_exists('xml_entities')) { | |
| function xml_entities( $string ) { | |
| return strtr( | |
| $string, | |
| array( | |
| "<" => "<", | |
| ">" => ">", |
| //todo: needs to somehow use the .on function to attach to elements created after pageload | |
| jQuery('[style*="z-index"]').each(function() { | |
| var zi = $(this).css("z-index"); | |
| if(zi > 999){ | |
| newstyle = jQuery('<style class="zindex2big" type="text/css"> #'+this.id+'{ z-index=99 !important;} </style>').insertAfter(this); | |
| } | |
| }); |
| <?php | |
| if ( !empty( $_SERVER['HTTP_HOST'] ) ) { | |
| $site = get_site_by_path( strtolower( $_SERVER['HTTP_HOST'] ), '/'); | |
| define( 'COOKIE_DOMAIN', '.' . $site->domain ); | |
| } |
| <?php | |
| /** | |
| * Plugin Name: an-injected-network-site-option | |
| * Description: Site option example of injecting new section and fields into existing sm_options_page or sm_options_container from the fansided-vip plugin | |
| * Plugin URI: https://github.com/fansided | |
| * Author: sethcarstens | |
| * Author URI: https://fansided.com | |
| * Version: 0.0.1 | |
| * Text Domain: fs | |
| * License: GPLv2 or later |
| <?php | |
| if (!empty($_SERVER['HTTP_HOST'])) | |
| { | |
| $site = get_site_by_path(strtolower($_SERVER['HTTP_HOST']), '/'); | |
| define('COOKIE_DOMAIN', '.'.$site->domain); | |
| } |
| #matches all .dev TLDs | |
| log_format main 'MAIN: $remote_addr - $remote_user [$time_local] ' | |
| '"$request" $status $body_bytes_sent ' | |
| '"$http_referer" "$http_user_agent" "$gzip_ratio"'; | |
| log_format wpc 'WPCONTENT: $remote_addr - $remote_user [$time_local] ' | |
| '"$request" $status $body_bytes_sent ' | |
| '"$http_referer" "$http_user_agent" "$gzip_ratio"'; | |
| log_format PROXY 'PROXY: $remote_addr - $remote_user [$time_local] ' |
| lando init --recipe=wordpress --webroot=. --option via=nginx --option php=7.2 --option database=mariadb --option xdebug=true --source=cwd --name=osp | |
| lando start | |
| lando wp core download | |
| lando wp config create --dbname=wordpress --dbuser=wordpress --dbpass=wordpress | |
| lando wp core install --quiet --admin_email="admin@lando.site" --title="LandoSite" --admin_user=admin --admin_password=password --url=https://osp.lndo.site | |
| lando wp theme delete twentythirteen ; lando wp theme delete twentyfourteen; lando wp theme delete twentyfifteen; lando wp theme delete twentysixteen; lando wp plugin delete hello; lando wp plugin delete akismet;; |
Powered by https://4sysops.com/archives/deploying-an-azure-jumpbox-jump-server/
brew update && brew install azure-cli
then login
az login
https://app.cacher.io/ az account list-locations --output table