Devolverá la IPv4 o IPv6 usada para hacer la query de DNS.
nslookup -type=TXT o-o.myaddr.l.google.com ns1.google.com
<?php | |
// Más información: https://help.wnpower.com/hc/es/articles/19296028017677 | |
// Forzar mostrar errores en pantalla | |
ini_set('display_errors', 1); | |
ini_set('display_startup_errors', 1); | |
error_reporting(E_ALL); | |
session_start(); |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.html$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /index.html [L] | |
</IfModule> |
I am running a WordPress multisite network with sub-directory setup. When I check my error.log file, it is full of entries like this one:
Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'Limit InternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
The problem was, in my case, one specific rewrite rule in the .htaccess file.
#!/usr/bin/python | |
import re | |
import argparse | |
def main(): | |
parser = argparse.ArgumentParser(description='Compare two php.ini files') | |
parser.add_argument('file1', metavar='first_php_ini', type=str, help='First file to compare') | |
parser.add_argument('file2', metavar='second_php_ini', type=str, help='Second file to compare') |
When VPNs Just Work™, they're a fantastic way of allowing access to a private network from remote locations. When they don't work it can be an experience in frustration. I've had situations where I can connect to a VPN from my Mac, but various networking situations cause routing conflicts. Here are a couple of cases and how I've been able to get around them.
In this example the VPN we are connecting to has a subnet that does not conflict with our local IP, but has additional routes that conflict in some way with our local network's routing. In my example the remote subnet is 10.0.x.0/24, my local subnet is 10.0.y.0/24, and the conflicting route is 10.0.0.0/8. Without the later route, I can't access all hosts on the VPN without manually adding the route after connecting to the VPN:
El archivo .DS_Store
lo usa MacOS para guardar la configuración de Finder (posición de iconos, vistas, etc.)
Dicho archivo oculto se cola en los repos de Git y no aporta nada.
Hay un comando para desactivar .DS_Store en MacOS, pero sólo aplica a unidades externas (ej. unidades de red y pendrives):
defaults write com.apple.desktopservices DSDontWriteNetworkStores true
Puede redireccionar a un repo, un archivo
# BEGIN WordPress | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.php$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /index.php [L] | |
# END WordPress |
//Show and hide | |
zE('webWidget', 'hide'); | |
zE('webWidget', 'show'); | |
zE('webWidget', 'clear'); | |
zE('webWidget', 'toggle'); | |
zE('webWidget', 'reset'); | |
zE('webWidget', 'open'); | |
//Click to show | |
// <a href="javascript:void(0);" id="showWidget" onclick="zE(function() {zE.show();});">Open widget on click</a> |