Skip to content

Instantly share code, notes, and snippets.

👾
Working somewhere

Vitor Britto vitorbritto

👾
Working somewhere
Block or report user

Report or block vitorbritto

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View docker-volume-create.md

Criando um volume avulso no Docker

  1. Executar: docker run -d -v /caminho/do/projeto/arquivo:/caminho/do/projeto/arquivo NOME_IMAGEM
  2. Reiniciar container atacado.

Exemplo:

  • docker run -d -v /allsaintsbay/website/nginx/nginx.conf:/etc/nginx/conf.d/nginx.conf NOME_IMAGEM
  • docker exec -ti NOME_CONTAINER /bin/sh -c "nginx -t && nginx -s reload"
@vitorbritto
vitorbritto / .travis.yml
Created Jul 25, 2016 — forked from iamEAP/.travis.yml
Template for integrating Travis-CI and Pantheon Multidev
View .travis.yml
language: php
#
# Important to note, this is the version of PHP used to run this build, not the
# one used to run your Drupal installation. Ensure compatibility with the Drush
# and Terminus versions you're using for this build.
#
php:
- 5.3
@vitorbritto
vitorbritto / atom.md
Last active Jul 21, 2016
Editor extensions
View atom.md
├── 101
├── CSSselect
├── CSSwhat
├── JSV
├── Remote-FTP
├── _git-remotes
├── _locks
├── abbrev
├── acorn
@vitorbritto
vitorbritto / node-modules.md
Last active Jul 29, 2016
Install all node modules on my workflow
View node-modules.md

Workflow - Install Node modules

$ npm i -g
grunt-cli gulp-cli
jshint jscs clean-css eslint babel-eslint uncss
babel
nodemon pm2 browser-sync
@vitorbritto
vitorbritto / makefile
Created Jul 6, 2016
Using makefile to run automated tasks
View makefile
# MAKEFILE
#
# Autor: Vitor Britto
# Versão: 0.1.0
#
#
# Descrição:
# Arquivo para gerar um estrutura inicial para
# novos projetos e realizar tarefas de automação
#
@vitorbritto
vitorbritto / build.sh
Created Jul 6, 2016
Prepare and compile files using Shell Script
View build.sh
#!/bin/bash
#
 # Programa: build.sh
 # Autor: Vitor Britto
 #
 # Descrição:
 # Este script será responsável pelo build do projeto, o qual
 # fará o processo de minificação e concatenação dos arquivos
 # e preparação dos arquivos a serem colocados em produção.
@vitorbritto
vitorbritto / scaffolding.sh
Created Jul 6, 2016
Scaffolding for a new project using Shell Script
View scaffolding.sh
#!/bin/bash
#
 # Programa: scaffolding.sh
 # Autor: Vitor Britto
 #
 # Descrição:
 # Este script será responsável pela criação
 # de uma estrutura para novos projetos.
 #
View rake_cli.md

Rake CLI

  • db:create creates the database for the current env
  • db:create:all creates the databases for all envs
  • db:drop drops the database for the current env
  • db:drop:all drops the databases for all envs
  • db:migrate runs migrations for the current env that have not run yet
  • db:migrate:up runs one specific migration
  • db:migrate:down rolls back one specific migration
  • db:migrate:status shows current migration status
@vitorbritto
vitorbritto / add_wp_cli.md
Created Jan 24, 2015
Install WordPress CLI
View add_wp_cli.md

Install WordPress CLI

# Installing WordPress CLI

curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
php wp-cli.phar --info
chmod +x wp-cli.phar
mv wp-cli.phar /usr/local/bin/wp

# Installing WordPress Bash Completions
You can’t perform that action at this time.