Skip to content

Instantly share code, notes, and snippets.

View paulomartinhago's full-sized avatar

Paulo Martinhago paulomartinhago

View GitHub Profile
rsync -Cravzphe "ssh -o StrictHostKeyChecking=no -p 22" user@host:/path/to/download .
@paulomartinhago
paulomartinhago / databases-size.sql
Last active October 27, 2018 21:09
Tamanho em MB
SELECT table_schema "Databases", sum( data_length + index_length ) / 1024 / 1024 "Tamanho do BD em MB" FROM information_schema.TABLES GROUP BY table_schema;
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html data-xlabs-extension="1" data-xlabs-extension-ready="1" data-xlabs-extensionversion="2.6.1">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Designer &amp; Turkey Saddles</title>
<meta name="description" content="Designer Saddles and Designer Turkey Saddles made to order, many sizes
and designs available or pick your own">
<meta name="keywords" content="chicken aprons, turkey aprons, chicken saddles, turkey saddles, bald
chickens, injured chickens">
sudo npm install npm@latest -g
sudo npm cache clean -f
sudo npm install -g n
sudo n stable # or latest
@paulomartinhago
paulomartinhago / php-kill.sh
Created October 2, 2017 10:52
Matar processo do php versão 7.0
killall -9 php70.cgi
@paulomartinhago
paulomartinhago / estados-cidades.json
Created August 30, 2017 13:59 — forked from letanure/estados-cidades.json
JSON estados cidades
{
"estados": [
{
"sigla": "AC",
"nome": "Acre",
"cidades": [
"Acrelândia",
"Assis Brasil",
"Brasiléia",
"Bujari",
@paulomartinhago
paulomartinhago / charlando-spanol.sh
Created March 27, 2017 11:49
Configurações para o Jenkins de alguns projetos.
# instalar as dependências do composer para o build
composer install
# rodar os testes com phpunit
./vendor/bin/phpunit
rsync -Cravzphe "ssh -o StrictHostKeyChecking=no -p 2222" \
--exclude vendor/ \
--exclude .env \
--exclude .git \
server {
listen 80;
server_name CHANGEME.app;
root /path/to/app/public;
index index.html index.htm index.php;
charset utf-8;
location / {
@paulomartinhago
paulomartinhago / js console
Last active March 17, 2016 23:13
Snippets Sublime Text
<snippet>
<content><![CDATA[
console.log(${1:this});
]]></content>
<tabTrigger>cc</tabTrigger>
</snippet>
@paulomartinhago
paulomartinhago / PACKAGES
Last active February 25, 2018 13:56
Configuração do Sublime Text 3
AdvancedNewFile
All Autocomplete
Clipboard Manager
CloseOtherWindows
Color Highlighter
GitGutter
jQuery
JSON Reindent
Sass
Seti_UI