This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine On | |
RewriteCond %{HTTP_HOST} ^old_domain.com$ [OR] | |
RewriteCond %{HTTP_HOST} ^www.old_domain.com$ | |
RewriteRule (.*)$ http://www.new_domain.com/$1 [R=301,L] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//CONVERSION TO ARGB | |
http://kilianvalkhof.com/2010/css-xhtml/how-to-use-rgba-in-ie/ | |
.ie_transparency{ | |
background:transparent; | |
-ms-filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#BF000000,endColorstr=#BF000000); | |
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#BF000000,endColorstr=#BF000000); | |
zoom: 1; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo ln -s /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl /bin/subl | |
subl . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Domain A with iframe: | |
----------------------- | |
<iframe></iframe> | |
<script> | |
window.addEventListener( "message", | |
function (e) { | |
if(e.origin !== 'http://www.domainB.com'){ return; } | |
alert(e.data); | |
}, | |
false); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$direccion = "put here the adress"; | |
$resultado = json_decode(file_get_contents("http://maps.googleapis.com/maps/api/geocode/json?address=".urlencode($direccion)."&sensor=false")); | |
echo $resultado->results["0"]->geometry->location->lat; | |
echo $resultado->results["0"]->geometry->location->lng; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php $types = Type::lists('name', 'id'); ?> | |
{{ Form::select('select', $types) }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Info xdebug martomo plugin | |
https://github.com/martomo/SublimeTextXdebug/issues/39 | |
php.ini.erb (vagrant) | |
<% if use_xdebug != "0" %> | |
[xdebug] | |
xdebug.remote_enable=1 | |
xdebug.remote_port=9001 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Create app on developers.facebook.com | |
https://www.facebook.com/dialog/pagetab?next=http://facebook.com&app_id=AppID | |
http://beto.valdeszorrilla.mx/como-crear-pestanas-facebook-apps-para-paginas-de-facebook-paso-a-paso/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# This hook does two things: | |
# | |
# 1. update the "info" files that allow the list of references to be | |
# queries over dumb transports such as http | |
# | |
# 2. if this repository looks like it is a non-bare repository, and | |
# the checked-out branch is pushed to, then update the working copy. | |
# This makes "push" function somewhat similarly to darcs and bzr. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dscacheutil -flushcache | |
sudo killall -HUP mDNSResponder |
OlderNewer