Changes with .dev domains in
mind.
Create /etc/pf.anchors/dev, containing:
rdr pass inet proto tcp from any to any port 80 -> 127.0.0.1 port 8080
rdr pass inet proto tcp from any to any port 443 -> 127.0.0.1 port 8443
Changes with .dev domains in
mind.
Create /etc/pf.anchors/dev, containing:
rdr pass inet proto tcp from any to any port 80 -> 127.0.0.1 port 8080
rdr pass inet proto tcp from any to any port 443 -> 127.0.0.1 port 8443
| # Properties are sorted alphabetically | |
| # Notice the `-` sign which is used as NOT or Exclude filter | |
| domain: | |
| -domain: | |
| # Use a * character to include multiple domains. | |
| # ie.: *.com, domain:google.com, -domain:twitter.com | |
| has-response-header: | |
| -has-response-header: |
| function memorySizeOf(obj) { | |
| var bytes = 0; | |
| function sizeOf(obj) { | |
| if(obj !== null && obj !== undefined) { | |
| switch(typeof obj) { | |
| case 'number': | |
| bytes += 8; | |
| break; | |
| case 'string': |
| <?php | |
| private static function wp_filesystem_init($form_url, $context, $fields) { | |
| if (!function_exists('request_filesystem_credentials')) { | |
| load_template(ABSPATH.'wp-admin/includes/file.php'); | |
| } | |
| if ((!is_admin() && 'direct' !== get_filesystem_method(null, $context)) || | |
| false === ($creds = request_filesystem_credentials($form_url, null, false, false, $fields))) { | |
| return false; |