This file contains 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> | |
# The ServerName directive sets the request scheme, hostname and port that | |
# the server uses to identify itself. This is used when creating | |
# redirection URLs. In the context of virtual hosts, the ServerName | |
# specifies what hostname must appear in the request's Host: header to | |
# match this virtual host. For the default virtual host (this file) this | |
# value is not decisive as it is used as a last resort host regardless. | |
# However, you must set it for any further virtual host explicitly. | |
#ServerName www.example.com | |
This file contains 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
A história do Cotoco | |
Parte I | |
Cotoco era um menino muito, muito, mas muito triste, pois não tinha os dois braços e as duas pernas . . . . | |
Os amigos sempre tentavam levá-lo pra passear e se divertir. | |
Um dia o pessoal resolveu ir à praia. | |
- Já sei! Vamos levar o Cotoco - disse alguém. . . . | |
- É isso! Vamos, Cotoco, a gente vai pra praia e vamos te levar com a gente. | |
- Não, de jeito nenhum! Vocês não vão se divertir se me levarem. . . |
This file contains 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 | |
return [ | |
// http://www.cidades.ibge.gov.br/download/mapa_e_municipios.php?uf=ac (Thu May 14 16:30:15 BRT 2015) | |
'AC' => [ | |
1200013 => 'Acrelândia', | |
1200054 => 'Assis Brasil', | |
1200104 => 'Brasiléia', | |
1200138 => 'Bujari', | |
1200179 => 'Capixaba', |
This file contains 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
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; | |
SET time_zone = "+00:00"; | |
CREATE TABLE IF NOT EXISTS `legislacao` ( | |
`id` int(11) NOT NULL, | |
`name` varchar(255) NOT NULL | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2694 ; | |
INSERT INTO `legislacao` (`id`, `name`) VALUES | |
(1, 'CONSTITUIÇÃO da REPÚBLICA FEDERATIVA do BRASIL'), |
This file contains 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
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=novo_nome_arquivo.pdf nome_arquivo.pdf | |
Uma ajuda também em https://www.vivaolinux.com.br/dica/GhostScript-Reduzindo-o-tamanho-de-arquivos-PDF-pelo-terminal |
This file contains 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/sh | |
echo $DEPLOYING | |
if [ -z "$DEPLOYING" ]; then | |
echo 'Deploying site...' | |
export DEPLOYING='yes' | |
git checkout gh-pages | |
git merge master | |
git push origin gh-pages | |
git checkout master |
This file contains 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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import requests,json,sys | |
# Script simples para consulta de dados na base dados nacional do SUS utilizando o CPF. | |
# Jhonathan Davi A.K.A jh00nbr / Insightl4b lab.insightsecurity.com.br | |
# Blog: lab.insightsecurity.com.br | |
# Github: github.com/jh00nbr | |
# Twitter @jh00nbr |
This file contains 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 | |
/** | |
* @param string $string | |
* @param array $avoid (['de', 'da', 'a', 'e', 'o']) | |
* @return string | |
*/ | |
function initials(string $string, array $avoid = null): string | |
{ | |
$words = preg_split("/\s+/", $string); |
This file contains 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 | |
/** | |
* @param string $string | |
* @param array $avoid (['de', 'da', 'a', 'e', 'o']) | |
* @return string | |
*/ | |
function initials(string $string, array $avoid = null): string | |
{ | |
$words = preg_split("/\s+/", $string); |
This file contains 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
var googleChartColors = [ | |
'#3366CC', '#DC3912', '#FF9900', '#109618', | |
'#990099', '#3B3EAC', '#0099C6', '#DD4477', | |
'#66AA00', '#B82E2E', '#316395', '#994499', | |
'#22AA99', '#AAAA11', '#6633CC', '#E67300', | |
'#8B0707', '#329262', '#5574A6', '#3B3EAC' | |
]; |
OlderNewer