This file contains hidden or 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
| {% if messages %} | |
| {% for message in messages %} | |
| <div class="alert {% if message.tags %} alert-{{ message.tags }}{% endif %}">{{ message|safe }}</div> | |
| {% endfor %} | |
| {% endif %} | |
| {% if form.errors %} | |
| <div class="alert alert-error"> | |
| <h4>Please fix the following errors</h4> | |
| <ul> |
This file contains hidden or 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
| server { | |
| # Redirect yoursite.com to www.yoursite.com | |
| server_name yoursite.com; | |
| rewrite ^(.*) http://www.yoursite.com$1 permanent; | |
| } | |
| server { | |
| # Tell nginx to handle requests for the www.yoursite.com domain | |
| server_name www.yoursite.com; |
This file contains hidden or 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
| /* ----------------------- | |
| reauire | |
| ------------------------*/ | |
| var gulp = require('gulp'); | |
| var sass = require('gulp-sass'); | |
| var browserSync = require('browser-sync'); | |
| var reload = browserSync.reload; | |
| var plumber = require('gulp-plumber'); | |
| var jshint = require('gulp-jshint'); | |
| var imagemin = require('gulp-imagemin'); |
This file contains hidden or 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 | |
| //*/public class PhpJava { public static void main(String[] args) { System.out.printf("/*%s", | |
| //\u000A\u002F\u002A | |
| class PhpJava { | |
| static function main() { | |
| echo(//\u000A\u002A\u002F | |
| "Hello World!"); | |
| }} | |
| //\u000A\u002F\u002A | |
| PhpJava::main(); |
This file contains hidden or 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
| Instalacion Squid | |
| http://agratitudesign.blogspot.com/2015/05/building-squid-354-transparent-proxy-on.html | |
| //Generar el pem para el ssl del squid | |
| openssl genrsa -out squid.key 2048 | |
| openssl req -new -key squid.key -out squid.csr | |
| openssl x509 -req -days 3650 -in squid.csr -signkey squid.key -out squid.crt | |
| cat squid.key squid.crt > squid.pem |
This file contains hidden or 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
| @media screen and (min-width: 320px) {} | |
| @media screen and (min-device-width: 360px) {} | |
| @media only screen and (min-device-width: 375px) and (max-device-width: 667px) {} | |
| @media only screen and (min-device-width: 414px) and (max-device-width: 736px) {} | |
| @media screen and (min-width: 480px) {} | |
| @media screen and (min-width: 560px) {} | |
| @media screen and (min-width: 640px) {} | |
| @media screen and (min-width: 768px) {} | |
| @media screen and (min-width: 1024px) {} |
This file contains hidden or 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
| UPDATE wp_options SET option_value = REPLACE(option_value, 'olddomain', 'newdomain') WHERE option_name = 'home' OR option_name = 'siteurl'; | |
| UPDATE wp_posts SET guid = REPLACE(guid, 'olddomain', 'newdomain'); | |
| UPDATE wp_posts SET post_content = REPLACE(post_content, 'olddomain', 'newdomain'); | |
| UPDATE wp_postmeta SET meta_value = REPLACE(meta_value,'olddomain', 'newdomain'); |
This file contains hidden or 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
| http://stackoverflow.com/questions/2214433/mysql-delete-row-from-multiple-tables | |
| https://www.sitepoint.com/using-wp_list_table-to-create-wordpress-admin-tables/ | |
| http://docs.emmet.io/cheat-sheet/ | |
| https://codex.wordpress.org/Class_Reference/wpdb#UPDATE_rows | |
| https://codex.wordpress.org/Creating_Tables_with_Plugins | |
| https://guides.codepath.com/android/Creating-and-Using-Fragments | |
| https://www.google.com.pe/search?espv=2&biw=1680&bih=925&site=webhp&tbm=isch&sa=1&q=tab+layout+android+example&oq=tab+layout+android+example&gs_l=img.3...9393449.9393449.0.9393711.1.1.0.0.0.0.0.0..0.0....0...1c.1.64.img..1.0.0.LnP_gD9QJAo&dpr=1&cad=cbv&bvch=u&sei=TFM7V5aRPMPte8TzgdgE | |
| https://www.digitalocean.com/community/tutorials/how-to-configure-a-mail-server-using-postfix-dovecot-mysql-and-spamassassin | |
| http://mattpilz.com/fastest-way-to-delete-large-folders-windows/ | |
| https://www.pubnub.com/blog/2015-06-24-sending-receiving-android-push-notifications-with-gcm-google-cloud-messaging/ |
This file contains hidden or 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 | |
| /* | |
| Plugin Name: Nombre del plugin | |
| Plugin URI: http://www.anacondabox.com/ | |
| Description: Descripcion del plugin | |
| Author: Francisco Fernando Cordova Rios | |
| Author URI: http://www.anacondabox.com/ | |
| Version: 1.0 | |
| Text Domain: wordpress-plugin | |
| License: GPL version 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html |
This file contains hidden or 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
| // request permission on page load | |
| document.addEventListener('DOMContentLoaded', function () { | |
| if (!Notification) { | |
| alert('Desktop notifications not available in your browser. Try Chromium.'); | |
| return; | |
| } | |
| if (Notification.permission !== "granted") | |
| Notification.requestPermission(); | |
| }); |