Getting started:
Related tutorials:
root# apt-get update | |
root# apt-get upgrade | |
// dependencies for Ruby | |
root# apt-get install -y git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev \ | |
libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev \ | |
libpcre3-dev unzip | |
// Node.js v7 | |
root# curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash - |
Getting started:
Related tutorials:
Banco de imagem grátis: | |
- https://br.freepik.com (vetor) | |
- https://unsplash.com/ | |
- http://realisticshots.com | |
- http://realisticshots.com/ | |
- https://pixabay.com/ | |
- https://www.lifeofpix.com/ | |
- https://gratisography.com/ | |
- http://freenaturestock.com/ | |
- https://magdeleine.co/license/cc0/ |
.git | |
.gitignore | |
/doc | |
.yardoc | |
coverage | |
jsdoc | |
/tmp | |
/log | |
Dockerfile | |
Dockerfile.prod |
{"lastUpload":"2020-04-29T11:08:00.615Z","extensionVersion":"v3.4.3"} |
class CnpjValidator < ActiveModel::EachValidator | |
class InvalidCNPJ < StandardError; end | |
EXPECTED_FORMAT = /^\d{2}\.\d{3}\.\d{3}\/\d{4}\-\d{2}$/ | |
FIRST_CHECKER_DIGITS_MULTIPLIERS = [5, 4, 3, 2, 9, 8, 7, 6, 5, 4, 3, 2] | |
SECOND_CHECKER_DIGITS_MULTIPLIERS = [6, 5, 4, 3, 2, 9, 8, 7, 6, 5, 4, 3, 2] | |
def validate_each(record, attribute, value) | |
return unless value.present? |
# Criar uma aplicação no Dokku | |
dokku apps:create appname | |
# Criar e "linkar" um banco de dados PostgreSQL | |
dokku plugin:install https://github.com/dokku/dokku-postgres.git postgres | |
dokku postgres:create appname_production | |
dokku postgres:link appname_production appname | |
dokku postgres:list | |
# Criar e "linkar" uma instância do Redis (Não rodei esses comandos no vídeo) |
#!/bin/bash | |
# | |
# This script configures WordPress file permissions based on recommendations | |
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions | |
# | |
# Author: Michael Conigliaro | |
# | |
WP_OWNER=changeme # <-- wordpress owner | |
WP_GROUP=changeme # <-- wordpress group | |
WP_ROOT=/home/changeme # <-- wordpress root directory |
Station Pro Privacy Policy | |
This Privacy Policy describes how your personal information is collected, used, and shared when you visit or make a purchase from stationpro.co (the “Site”). | |
PERSONAL INFORMATION WE COLLECT | |
When you visit the Site, we automatically collect certain information about your device, including information about your web browser, IP address, time zone, and some of the cookies that are installed on your device. Additionally, as you browse the Site, we collect information about the individual web pages or products that you view, what websites or search terms referred you to the Site, and information about how you interact with the Site. We refer to this automatically-collected information as “Device Information.” | |
We collect Device Information using the following technologies: |