Skip to content

Instantly share code, notes, and snippets.

View netinhoteixeira's full-sized avatar

Francisco Ernesto Teixeira netinhoteixeira

View GitHub Profile
@netinhoteixeira
netinhoteixeira / GmailHugeAttachments.js
Created April 9, 2018 17:02
Gmail Huge Attachments
/*************************************************************
* Gmail Huge Attachments 0.1 - Francisco Ernesto Teixeira
* forked from Gmail Size 2.1 - Digital Inspiration
* -----------------------------------------------------------
*
* Tutorial : https://francisco.pro
* Contact : [email protected]
*
* Original
* Tutorial : http://labnol.org/?p=21191
* https://www.javadoc.io/doc/org.python/jython/2.7-b3/org/python/core/PyByteArray.html
* https://www.programiz.com/python-programming/methods/built-in/bytearray
* https://stackoverflow.com/questions/11727031/create-byte-in-jython
* https://flylib.com/books/en/1.212.1.101/1/
function get_bits_system_architecture() {
var _to_check = [];
if (window.navigator.cpuClass) {
_to_check.push((window.navigator.cpuClass + '').toLowerCase());
}
if (window.navigator.platform) {
_to_check.push((window.navigator.platform + '').toLowerCase());
}
@netinhoteixeira
netinhoteixeira / BouncyCastleCertificateGenerator.java
Created May 29, 2022 15:18 — forked from vivekkr12/BouncyCastleCertificateGenerator.java
Generate root X509Certificate, Sign a Certificate from the root certificate by generating a CSR (Certificate Signing Request) and save the certificates to a keystore using BouncyCastle 1.5x
import org.bouncycastle.asn1.ASN1Encodable;
import org.bouncycastle.asn1.DERSequence;
import org.bouncycastle.asn1.x500.X500Name;
import org.bouncycastle.asn1.x509.BasicConstraints;
import org.bouncycastle.asn1.x509.Extension;
import org.bouncycastle.asn1.x509.GeneralName;
import org.bouncycastle.asn1.x509.KeyUsage;
import org.bouncycastle.cert.X509CertificateHolder;
import org.bouncycastle.cert.X509v3CertificateBuilder;
import org.bouncycastle.cert.jcajce.JcaX509CertificateConverter;