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 | |
Storage::disk('s3')->writeStream('new/file1.jpg', Storage::disk('local')->readStream('old/file1.jpg')); |
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
#!/bin/bash | |
# | |
# This script configures WordPress file permissions based on recommendations | |
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions | |
# | |
# Author: Michael Conigliaro | |
# | |
WP_OWNER=changeme # <-- wordpress owner | |
WP_GROUP=changeme # <-- wordpress group | |
WP_ROOT=/home/changeme # <-- wordpress root directory |
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
//First request: admin-ajax.php?action=pmdi_dashboard_callback | |
{"file_name":"CARNAVAL SANGRIENTO ","html":"<body style=\"\"> <p class=\"Heading1-P\" style=\"direction:ltr;unicode-bidi:normal;\"><h1> Chinos en la rural\u00eda de Licey en el siglo XIX<\/h1><\/p> <p class=\"Heading2-P\" style=\"direction:ltr;unicode-bidi:normal;\"><h2>Nuestra historia<\/h2><\/p> <p class=\"Normal-P\" style=\"text-align:justify;text-justify:inter-ideograph;direction:ltr;unicode-bidi:normal;\"><span class=\"Normal-H\">Inmigrantes empresariales, comerciantes, Chinos en Santiago, Callej\u00f3n de los chinos, siglo XIX, historia santiago<\/span><\/p> <p class=\"Normal-P\" style=\"text-align:justify;text-justify:inter-ideograph;direction:ltr;unicode-bidi:normal;\"><span class=\"Normal-H\">\u00a0\u00a0\u00a0Harry Hoetink llama la atenci\u00f3n en el sentido de que <span style=\"font-style:italic;\">\u201clos escasos datos sobre el n\u00famero de habitantes en el curso del siglo XIX deben ser utilizados, por supuesto, con la mayor caut |
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
SELECT *, STUFF( (SELECT ',' + c.nombre FROM categorias c join productos_categorias pc on c.id = pc.categoria_id WHERE pc.producto_codigo = p.id FOR XML PATH(''), TYPE ).value('.', 'NVARCHAR(MAX)'), 1, 1, '') categories_names FROM productos AS p WHERE actualizar = 1; |
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
/** | |
* Date.prototype.addDays | |
* | |
*/ | |
Date.prototype.addDays = function( days ) { | |
var element = new Date( this.valueOf() ); | |
element.setDate( element.getDate() + days ); | |
return element; | |
} | |
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 | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.com | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query | |
* Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php | |
*/ | |
$args = array( |
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
config.action_controller.session = { | |
:session_key => APP_CONFIG['settings']['session_key'], | |
:secret => APP_CONFIG['settings']['secret'] | |
} |
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
[2010-04-21 13:05:50] ./installer -a /Users/josespinal/.rvm/rubies/ree-1.8.7-2010.01 --dont-install-useful-gems | |
./configure: line 4633: : command not found | |
rm: conftest.dSYM: is a directory | |
rm: conftest.dSYM: is a directory | |
./src/base/basictypes.h: In constructor ‘AssignAttributeStartEnd::AssignAttributeStartEnd(const char*, char**, char**)’: | |
./src/base/basictypes.h:251: warning: ‘_dyld_present’ is deprecated (declared at /usr/include/mach-o/dyld.h:237) | |
./src/base/basictypes.h:251: warning: ‘_dyld_present’ is deprecated (declared at /usr/include/mach-o/dyld.h:237) | |
./src/base/basictypes.h: In constructor ‘AssignAttributeStartEnd::AssignAttributeStartEnd(const char*, char**, char**)’: | |
./src/base/basictypes.h:251: warning: ‘_dyld_present’ is deprecated (declared at /usr/include/mach-o/dyld.h:237) | |
./src/base/basictypes.h:251: warning: ‘_dyld_present’ is deprecated (declared at /usr/include/mach-o/dyld.h:237) |
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
Esta guia es para agregar una nueva secuencia a los tickets. Agregaremos una secuencia usada en República Dominicana llamada NCF (Número de Consumidor Final). Antes que nada voy a explicar un poco la estructura del NCF. | |
Todos los NCF cuentan con un prefijo de 11 primero digitos del NCF asigndado por la Direccion General de Impuesto Internos (DGII) (ej: A0100100102 Facturas a consumidores finales), que serán siempre los mismos digitos (A0100100102), seguidos por 8 digitos asignados que serán la secuencia. Cosa que al final quedaremos con algo así: A01001001020000001 | |
Antes de comenzar a editar el código, debemos agregar las columnas y tablas a la base de datos (en este caso uso MySQL): http://gist.github.com/325244 | |
[LAS LINEAS SON APROXIMADAS, BUSCA EL CODIGO CERCA DE LA REFERENTE] | |
Paso 1: Hacer cambios en el archivo DataLogicSales.java (com/openbravo/pos/forms/DataLogicSales.java) |
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
<line> | |
<text align="center" length="42">RNC: 0-00-00000-0</text> | |
</line> | |
<line> | |
<text align="center" length="42">VALIDA PARA CONSUMIDOR FINAL:</text> | |
</line> | |
<line> | |
#set( $tmp = "${ticket.printNCF()}" ) | |
#set( $str = $tmp ) | |
#set( $tmp = $tmp.length() + 1 ) |
NewerOlder