Skip to content

Instantly share code, notes, and snippets.

View psxninja's full-sized avatar
🇧🇷
Available

Pablo Santos psxninja

🇧🇷
Available
View GitHub Profile
@psxninja
psxninja / 2019-https-localhost.md
Created July 9, 2022 05:16 — forked from cecilemuller/2019-https-localhost.md
How to create an HTTPS certificate for localhost domains

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).

@psxninja
psxninja / order-departament-menu-vtex.js
Created June 21, 2021 18:06
Order departament menu vtex js
/*!
Insert before any modify
*/
(function () {
try {
var D = document, Q = 'querySelector', QA = 'querySelectorAll',
CE = 'createElement', APC = 'appendChild',TC = 'textContent',
divm = D[Q]('.search-single-navigator').cloneNode(1),
ssn = D[Q]('.search-single-navigator'),
mH3 = [].slice.call(divm[QA]('h3')),
@psxninja
psxninja / lazy-load-banner-vtex.html
Last active August 12, 2021 21:05
lazy load banner vtex with slick
<!-- placeholder svg and converter to data:image -->
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 798" width="1920" height="798" xml:space="preserve"></svg>
<!-- transparent data:image -->
<!-- data:image/gif;base64,R0lGODlhAQABAIAAAAAAAAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw== -->
<style>
/*<![CDATA[*/
/*###lazyload banner###*/
.banner-principal {