This file contains hidden or 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
| pt-BR: | |
| devise: | |
| confirmations: | |
| confirmed: "Sua conta foi confirmada com sucesso. Você está logado." | |
| send_instructions: "Dentro de minutos, você receberá um e-mail com instruções para a confirmação da sua conta." | |
| send_paranoid_instructions: "Se o seu endereço de e-mail estiver cadastrado, você receberá uma mensagem com instruções para confirmação da sua conta." | |
| failure: | |
| already_authenticated: "Você já está logado." | |
| inactive: "Sua conta ainda não foi ativada." | |
| invalid: "%{authentication_keys} ou senha inválida." |
This file contains hidden or 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
| FROM ruby:latest | |
| RUN apt-get update | |
| RUN apt-get install -y libaio1 wget unzip curl sudo build-essential cron --no-install-recommends apt-utils | |
| RUN apt-get install -y locales locales-all --no-install-recommends apt-utils | |
| ENV LC_ALL pt_BR.UTF-8 | |
| ENV LANG pt_BR.UTF-8 |
This file contains hidden or 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
| env :GEM_PATH, ENV['GEM_PATH'] | |
| ENV.each { |k, v| env(k, v) } | |
| cd /app | |
| rm -fr /app/tmp/* | |
| gem install bundler | |
| bundle update | |
| bundle update --bundler | |
| RAILS_ENV=production | |
| bundle exec whenever --update-crontab --set environment=production |
This file contains hidden or 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
| # PNG Optimizer | |
| https://github.com/kornelski/pngquant | |
| pngquant --quality=65-70 --nofs original.png -o modified.png | |
This file contains hidden or 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
| # NCSA Combined Log Format with Virtual Host | |
| # nginx.conf | |
| # https://goaccess.io/man#interactive-keys | |
| log_format vcombined '$host:$server_port ' | |
| '$remote_addr $remote_user [$time_local] ' | |
| '"$request" $status $body_bytes_sent ' | |
| '"$http_referer" "$http_user_agent"'; | |
This file contains hidden or 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
| # https://pve.proxmox.com/wiki/Package_Repositories | |
| # /etc/apt/sources.list | |
| deb http://ftp.debian.org/debian buster main contrib | |
| deb http://ftp.debian.org/debian buster-updates main contrib | |
| # PVE pve-no-subscription repository provided by proxmox.com, | |
| # NOT recommended for production use |
This file contains hidden or 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
| class CertificadosServices | |
| def pegar_certificado (cer) | |
| cert = OpenSSL::X509::Certificate.new(cer) | |
| certificado = Certificado.new | |
| certificado.nome = cert.subject.to_s.split("CN=")[1].split(":")[0] | |
| certificado.cpf_cnpj = pegar_cpf_cnpj_certificado(cert) | |
| certificado.tipo_certificado = pegar_tipo_certificado(cert) | |
| certificado.serial = cert.serial | |
| certificado.validade = cert.not_after | |
| certificado.revogado = false |
This file contains hidden or 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
| ---------------------------------- Classe Java ------------------------------------------------------- | |
| /* | |
| Classe de uso para o Recaptcha | |
| Autor: Alex Ishida | |
| Data: 08/08/2019 | |
| */ | |
| package com.alexishida.recaptcha; |
This file contains hidden or 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
| JAVA_OPTS="$JAVA_OPTS -Dfile.encoding=windows-1252" | |
| JAVA_OPTS="$JAVA_OPTS -Duser.timezone=America/Porto_Velho" | |
| JAVA_OPTS="$JAVA_OPTS -Duser.language=pt -Duser.region=BR" |
This file contains hidden or 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
| In your Apache HTTPD config, where you're configuring proxying the request, make sure you add: ProxyVia On This will make HTTPD set the "x-forwarded-for" HTTP request header's value to the IP address of the client. This value is passed to Tomcat when HTTPD proxies the request. | |
| Then, where you're configuring the AccessLogValve (usually in your conf/server.xml file), change the default logging pattern to log the "x-forwarded-for" header value, like this: | |
| <Host ...> | |
| <Valve className="org.apache.catalina.valves.AccessLogValve" | |
| directory="logs" | |
| prefix="localhost_access_log." | |
| suffix=".txt" | |
| pattern="%{x-forwarded-for}i %l %u %t %r %s %b" |