Skip to content

Instantly share code, notes, and snippets.

View marviorocha's full-sized avatar
💻
Focusing

Marvio Rocha marviorocha

💻
Focusing
View GitHub Profile
@marviorocha
marviorocha / gist:92992ecb61cfb6c0fef0af35722661d9
Created February 19, 2024 22:58
Política de Privacidade do Aplicativo Serene
## Política de Privacidade do Aplicativo Serene
**1. Introdução**
O aplicativo Serene ("Aplicativo") é um aplicativo Android desenvolvido por [Nome do Desenvolvedor] ("Desenvolvedor"). Esta Política de Privacidade descreve como coletamos, usamos, armazenamos e compartilhamos suas informações pessoais quando você usa o Aplicativo.
**2. Quais informações coletamos?**
Coletamos as seguintes informações sobre você:
# update system
sudo dnf -y update
# dnf plugin core, docker etc...
sudo dnf -y install dnf-plugins-core
sudo dnf config-manager \
--add-repo \
require 'nokogiri'
require 'open-uri'
# Get a Nokogiri::HTML:Document for the page we're interested in...
doc = Nokogiri::HTML(open('http://www.google.com/search?q=tenderlove'))
# Do funky things with it using Nokogiri::XML::Node methods...
####
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:
@marviorocha
marviorocha / wp-permissions-script
Created May 19, 2021 23:33 — forked from macbleser/wp-permissions-script
WordPress Permissions Configuration Script
#!/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
@marviorocha
marviorocha / Deploy with Dokku
Last active October 26, 2020 12:23
Guia de comandos para deploy no Dokku
# 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)
@marviorocha
marviorocha / CNPJ Validator Rails
Last active October 26, 2020 12:15
Ruby On Rails Validator CNPJ
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?
{"lastUpload":"2020-04-29T11:08:00.615Z","extensionVersion":"v3.4.3"}
@marviorocha
marviorocha / .dockerignore
Created November 13, 2018 19:00 — forked from davidderus/.dockerignore
Docker + Rails + Puma + Postgres + Nginx
.git
.gitignore
/doc
.yardoc
coverage
jsdoc
/tmp
/log
Dockerfile
Dockerfile.prod
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/