The scenario:
- DNS zone
myzone.comdefined in BIND. - Authoritative name server at
123.16.123.1. - Subzone
sub.myzone.comwith an authoritative name server at123.16.123.10. - Wishing to forward sub-zone to authoritative name server.
| # add this before all other rewrite rules in your .htaccess | |
| # backup your Apache file(s) first to avoid breaking things | |
| # BE SURE TO TEST AND RELOAD APACHE AFTER MAKING THIS EDIT | |
| # allow Let's Encrypt to access it's challenge file without the rewrite rules screwing them up | |
| RewriteEngine On | |
| RewriteRule "^.well-known/acme-challenge" - [L] | |
| # Now, run an error check and reload Apache | |
| /usr/sbin/apachectl configtest && /etc/init.d/httpd reload |
| <?php | |
| /* | |
| * Set the following constants in wp-config.php. | |
| * These should be added somewhere BEFORE the constant ABSPATH is defined. | |
| * | |
| * Author: Chad Butler | |
| * Author URI: https://butlerblog.com | |
| * | |
| * For more information and instructions, see: https://b.utler.co/Y3 |
| # The command below creates a tgz file with all emails for user@domain.com in .eml format: | |
| # execute as root | |
| /opt/zimbra/bin/zmmailbox -z -m user@domain.com getRestURL "//?fmt=tgz" > /tmp/account.tgz | |
| # You can do the same via a REST URL: | |
| wget http://ZIMBRA.SERVER/home/user@domain.com/?fmt=tgz | |
| # to restore email: | |
| /opt/zimbra/bin/zmmailbox -z -m user@domain.com postRestURL "//?fmt=tgz&resolve=reset" /tmp/account.tgz |
| <?php | |
| /* separar el nombre completo en espacios */ | |
| $tokens = explode(' ', trim($full_name)); | |
| /* arreglo donde se guardan las "palabras" del nombre */ | |
| $names = array(); | |
| /* palabras de apellidos (y nombres) compuetos */ | |
| $special_tokens = array('da', 'de', 'del', 'la', 'las', 'los', 'mac', 'mc', 'van', 'von', 'y', 'i', 'san', 'santa'); | |
| $prev = ""; |
| # Configure the reverse-proxy on port 443 | |
| server { | |
| # general configs | |
| keepalive_timeout 30; | |
| listen 127.0.0.1:443 ssl; | |
| server_name api.example.com; | |
| # ssl configs | |
| ssl_certificate /path/to/api.crt; | |
| ssl_certificate_key /path/to/api.key; |
| @media only screen and (min-width: 320px) { | |
| /* Small screen, non-retina */ | |
| } | |
| @media | |
| only screen and (-webkit-min-device-pixel-ratio: 2) and (min-width: 320px), | |
| only screen and ( min--moz-device-pixel-ratio: 2) and (min-width: 320px), | |
| only screen and ( -o-min-device-pixel-ratio: 2/1) and (min-width: 320px), |
| This playbook has been removed as it is now very outdated. |
| <?php | |
| ob_start(); | |
| var_dump($this); | |
| error_log(ob_get_clean()); | |
| ?> |