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
FROM node:4.3.2 | |
RUN useradd --user-group --create-home --shell /bin/false app &&\ | |
npm install --global [email protected] | |
ENV HOME=/home/app | |
COPY package.json npm-shrinkwrap.json $HOME/library/ | |
RUN chown -R app:app $HOME/* |
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
# Due to layout of this project, the dockerfile will be moved up two directories and run during | |
# the build. Thus when performing any ADD commands, remember that this is "where you are" | |
FROM ubuntu:14.04 | |
RUN apt-get update && \ | |
apt-get dist-upgrade -y && \ | |
apt-get install vim apache2 libapache2-mod-php5 php5-cli php5-mysqlnd curl php5-curl zip -y | |
# Enable the php mod we just installed |
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
*.log | |
wp-config.php | |
wp-content/advanced-cache.php | |
wp-content/backup-db/ | |
wp-content/backups/ | |
wp-content/blogs.dir/ | |
wp-content/cache/ | |
wp-content/upgrade/ | |
wp-content/uploads/ | |
wp-content/wp-cache-config.php |
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
/** | |
* | |
* Web Starter Kit | |
* Copyright 2015 Google Inc. All rights reserved. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* https://www.apache.org/licenses/LICENSE-2.0 |
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
{ | |
"name": "Baixe Shows 2015", | |
"description": "Baixe Shows 2015, Download de Músicas Grátis", | |
"version": "1.0", | |
"authors":[ | |
{ | |
"name": "Rai Siqueira", | |
"email": "[email protected]" | |
} |
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 | |
/** | |
* @author: Rai Siqueira | |
* @copyright: baixeshows.com.br | |
* @package: Baixe Shows 2015 | |
* @subpackage: Rota para página do Artista | |
* @version : 1.0 | |
*/ | |
use JasonGrimes\Paginator; |
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
/* | |
* Função Modulo 11 para gerar Digito Verificador do Bradesco | |
* 2016 | IMEC | |
* Autor Rai Siqueira, Raphael Mendes | |
*/ | |
Static Function Modulo11(cData,nPeso,cOrig) | |
Local L, D, P := 0 |
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 | |
function digitoVerificador_nossonumero($numero) { | |
$resto2 = modulo_11($numero, 7, 1); | |
$digito = 11 - $resto2; | |
if ($digito == 10) { | |
$dv = "P"; //digito bradesco caso retorne 1 como resto da divisao | |
} elseif($digito == 11) { | |
$dv = 0; | |
} else { | |
$dv = $digito; |
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 | |
/* | |
* https://gist.github.com/kloon/ | |
* Change Woocommerce grouped products. | |
* Muda de R$300-R$500 para | |
* de R$300 até R$500 | |
*/ | |
add_filter( 'woocommerce_grouped_price_html', 'wc_wc20_grouped_price_format', 10, 2 ); | |
function wc_wc20_grouped_price_format( $price, $product ) { | |
$tax_display_mode = get_option( 'woocommerce_tax_display_shop' ); |
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 | |
//Muda a prioridade da metabox do YOAST SEO | |
function yoast_to_bottom() { | |
return 'low'; | |
} | |
add_filter( 'wpseo_metabox_prio', 'yoast_to_bottom'); |