Skip to content

Instantly share code, notes, and snippets.

samuelaguilera

Block or report user

Report or block samuelaguilera

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@samuelaguilera
samuelaguilera / texto-con-desplazamiento.html
Last active May 14, 2018
HTML para añadir un texto con barra de desplazamiento en un campo HTML de Gravity Forms
View texto-con-desplazamiento.html
<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 Apr 24, 2018
Etiqueta casilla con HTML para enlace
View etiqueta-html-casilla.html
He leído y acepto la <a href="http://ejemplo.com/privacidad" target="_blank">política de privacidad</a>.
View git-tag-delete-local-and-remote.sh
# 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
View zendesk-ticket-export.php
<!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();
View nginx.conf
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;
View 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)
View yoast-ga-menu-move.php
<?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() {
You can’t perform that action at this time.