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
module.exports = function(grunt) { | |
// Load all grunt tasks | |
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks); | |
// Project configuration. | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
less: { | |
options: { | |
banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n' |
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
@ECHO OFF | |
SET appath=D:\xampp\apache\conf\sites\ | |
SET /p dominio=Indique o dom¡nio ^*.dev a ser usado: | |
SET /p folder=Digite o caminho ROOT ou tecle ENTER para usar a pasta atual: | |
SET /p group=Digite o nome do grupo ao qual este dominio pertence: | |
IF "%folder%" == "" SET folder=%~dp0 | |
IF NOT "%group%" == "" SET group=%group%\ |
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
@ECHO OFF | |
SET [email protected] | |
SET USERPROFILE=%~dp0%USERNAME% | |
MD "%USERPROFILE%\AppData\Roaming">nul | |
MD "%USERPROFILE%\AppData\Local\Application Data">nul | |
MD "%USERPROFILE%\Application Data">nul | |
MD "%USERPROFILE%\Local Settings\Application Data">nul | |
MD "%USERPROFILE%\My Documents">nul | |
MD "%USERPROFILE%\Documents">nul | |
START googledrivesync |
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
############################################ | |
## Fonts Support - for Apache Server ## | |
############################################ | |
<FilesMatch "\.(ttf|otf|eot|woff|font.css)$"> | |
<IfModule mod_headers.c> | |
Header set Access-Control-Allow-Origin "*" | |
</IfModule> | |
</FilesMatch> | |
# webfont mime types |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration> | |
<system.webServer> | |
<rewrite> | |
<rules> | |
<rule name="Clean URL" stopProcessing="true"> | |
<match url="^(.*)$" /> | |
<conditions> | |
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> | |
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> |
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
{ | |
"folders": | |
[ | |
{ | |
"path": "www" | |
} | |
], | |
"build_systems": | |
[ |
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
<VirtualHost *:80> | |
ServerName site.dev | |
DocumentRoot "D:\pasta_root" | |
</VirtualHost> | |
<Directory "D:\pasta_root"> | |
Options Indexes FollowSymLinks Includes ExecCGI | |
AllowOverride All | |
Order allow,deny | |
Allow from all | |
Require all granted |
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
NameVirtualHost *:80 | |
Include "conf/sites/*.conf" |
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
# Gzip compression | |
<ifmodule mod_deflate.c> | |
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript text/javascript | |
</ifmodule> | |
# Turn on URL rewriting | |
RewriteEngine On | |
# Installation directory | |
RewriteBase / |
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
String.prototype.slugify = function(){ | |
return (this) | |
.replace(/[ÁÀÂÃÄ]/gi, 'a') | |
.replace(/[ÉÈÊË]/gi, 'e') | |
.replace(/[ÍÌÎÏ]/gi, 'i') | |
.replace(/[ÓÒÔÕÖ]/gi, 'o') | |
.replace(/[ÚÙÛÜ]/gi, 'u') | |
.replace(/[Ç]/gi, 'c') | |
.toLowerCase() // change everything to lowercase | |
.replace(/^\s+|\s+$/g, '') // trim leading and trailing spaces |