Skip to content

Instantly share code, notes, and snippets.

View xyulex's full-sized avatar

Raúl Martínez xyulex

View GitHub Profile
@xyulex
xyulex / IPAD: Safari font blurry
Created November 27, 2015 11:58
IPAD: Safari font blurry
-webkit-font-smoothing: subpixel-antialiased !important;
-webkit-perspective: 0px !important;
-webkit-backface-visibility: visible !important;
font-weight:normal !important;
@xyulex
xyulex / Moodle: update git with last version from Moodle repository
Created December 16, 2015 12:43
Moodle: update git with last version from Moodle repository
$ cd /ruta/hacia/su/webroot
$ git clone git://git.moodle.org/moodle.git (1)
$ cd moodle
$ git branch -a (2)
$ git branch --track MOODLE_27_STABLE origin/MOODLE_27_STABLE (3)
$ git checkout MOODLE_27_STABLE (4)
@xyulex
xyulex / JQUERY: $.ajax
Created December 2, 2015 07:59
JQUERY: $.ajax
$.ajax({
url: "languageDropdown.php",
data: "contentId=" + contentId,
type: "POST"
success: function (data) {
// What to do when is OK.
},
}).done(function() {
// What to do when is over.
});
@xyulex
xyulex / AMAZON EC2: @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
Last active January 19, 2016 14:11
AMAZON EC2: @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
ssh-keygen -R {domain}
@xyulex
xyulex / CSS: Pijama
Created January 27, 2016 11:12
CSS: Pijama
tr:nth-child(even) {background: #CCC}
tr:nth-child(odd) {background: #FFF}
@xyulex
xyulex / GIT: Clonar una branch del repo
Created February 1, 2016 11:21
GIT: Clonar una branch del repo
git clone -b <NOMBRE_BRANCH> --single-branch <URL_REPO>
@xyulex
xyulex / H5P: WordPress dev mode
Created February 17, 2016 08:32
H5P: WordPress dev mode
public function isInDevMode() {
return false; // Change it to return true.
}
@xyulex
xyulex / WordPress: Update ftp problem credentials
Last active February 17, 2016 08:53
WordPress: Update ftp problem credentials
sudo chown -R apache:apache /var/www/html
o
wp-config.php-> define('FS_METHOD', 'direct');
@xyulex
xyulex / jQuery: 2 clicks on confirm
Created March 15, 2016 11:54
jQuery: 2 clicks on confirm
jQuery('.expire-btn').on('click', function(e) {
e.stopImmediatePropagation();
tagID = jQuery(this).attr("data-id");
tagName = jQuery(this).attr("data-name");
if (confirm(ET.delete_confirm)) {
jQuery("#" + tagID ).val('1970-01-01');
jQuery("#submit").click();
} else {
return false;
@xyulex
xyulex / WordPress: Custom Post Type Generator
Created March 30, 2016 11:19
WordPress: Custom Post Type Generator
http://www.weareo3.com/wordpress-custom-post-type-generator/