Skip to content

Instantly share code, notes, and snippets.

View samuelaguilera's full-sized avatar

samuelaguilera

View GitHub Profile
<?php
/**
* move the main settings page for Yoast Google Analytics
* from it's own parent menu into a submenu page in either
* the Yoast SEO menu or in the general settings
*
* @return null
*/
function rkv_yoast_ga_menu() {
@samuelaguilera
samuelaguilera / ocp.php
Last active August 29, 2015 14:06 — forked from kabel/ocp.php
<?php
/*
OCP - Opcache Control Panel (aka Zend Optimizer+ Control Panel for PHP)
Author: _ck_ (with contributions by GK, stasilok, n1xim, pennedav, kabel)
Version: 0.2.0
Free for any kind of use or modification, I am not responsible for anything, please share your improvements
* revision history
0.2.0 0000-00-00 Updated page layout/styles and restructure code to be more MVC-like (kabel)
implemented HTTP Basic authentication (pennedav)
upstream phpfpm {
server unix:/var/run/php5-fpm.sock;
}
upstream hhvm {
server unix:/var/run/hhvm/hhvm.sock;
}
# SSL
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Money Morning Ticket Export</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<script type="text/javascript">
jQuery(document).ready(function($) {
$('.ticket-util').click( function(e) {
e.preventDefault();
@samuelaguilera
samuelaguilera / git-tag-delete-local-and-remote.sh
Created September 22, 2017 15:05 — forked from mobilemind/git-tag-delete-local-and-remote.sh
how to delete a git tag locally and remote
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName
@samuelaguilera
samuelaguilera / texto-con-desplazamiento.html
Last active May 14, 2018 16:37
HTML para añadir un texto con barra de desplazamiento en un campo HTML de Gravity Forms
<div style="height:300px; line-height: 1.4; font-weight: 400; font-size: 80%; overflow: auto; border: 1px solid #ccc; padding: 16px; margin: 24px 0;">
<!-- Añade el contenido debajo de esta línea -->
<h2>Política de privacidad</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer elementum, tortor ac malesuada tempor, diam erat malesuada magna, a viverra sapien eros eget massa. Vivamus a semper nunc, in gravida urna. Mauris mollis vehicula neque vitae ornare. Nunc interdum ipsum accumsan tortor hendrerit condimentum. Quisque volutpat lacinia erat id bibendum. Sed auctor iaculis metus vitae finibus. Aliquam nec est leo. Proin ac rutrum ex. Ut ullamcorper eros metus. Vivamus venenatis tellus a diam vestibulum posuere. Curabitur laoreet hendrerit neque, non ullamcorper leo maximus vitae. Donec molestie, tellus vel faucibus maximus, ante urna posuere odio, blandit tempus metus nulla convallis est. Maecenas non maximus magna. Sed et iaculis nunc. Quisque aliquet pretium commodo.</p>
<p>Lorem
@samuelaguilera
samuelaguilera / etiqueta-html-casilla.html
Created April 24, 2018 17:12
Etiqueta casilla con HTML para enlace
He leído y acepto la <a href="http://ejemplo.com/privacidad" target="_blank">política de privacidad</a>.