Skip to content

Instantly share code, notes, and snippets.

View viniciusgati's full-sized avatar
🤕
alguém me salva

Vinicius Gati viniciusgati

🤕
alguém me salva
View GitHub Profile
@viniciusgati
viniciusgati / certificados_services.rb
Created January 28, 2021 13:44 — forked from alexishida/certificados_services.rb
Obter certificados ruby
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
@viniciusgati
viniciusgati / semantic-2.2.9.html
Created September 21, 2018 12:24 — forked from Miserlou/semantic-2.2.9.html
Semantic UI 2.2.9 CDN Starter
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8" />
<title>Semantic UI CDN</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.9/semantic.min.css"/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.9/semantic.min.js"></script>
</head>
<body>
@viniciusgati
viniciusgati / ssl_puma.sh
Created February 13, 2017 00:54 — forked from tadast/ssl_puma.sh
localhost SSL with puma
# 1) Create your private key (any password will do, we remove it below)
$ cd ~/.ssh
$ openssl genrsa -des3 -out server.orig.key 2048
# 2) Remove the password
$ openssl rsa -in server.orig.key -out server.key
@viniciusgati
viniciusgati / export-syntax.js
Created November 11, 2016 20:29 — forked from caridy/export-syntax.js
ES6 Module Syntax Table
// default exports
export default 42;
export default {};
export default [];
export default foo;
export default function () {}
export default class {}
export default function foo () {}
export default class foo {}