Skip to content

Instantly share code, notes, and snippets.

View frankdors's full-sized avatar

Franciel Dors frankdors

  • iCert soluções inteligentes
  • Lajeado - RS - Brasil
View GitHub Profile
@frankdors
frankdors / readme.md
Created January 3, 2022 17:27
Certificado HTTPS Self-signed (para localhost ou rede local)

Criar Certificado (Linux)

Em subjectAltName coloque seus Host e IPs desejados

openssl req -x509 -days 18250 -out server.crt -keyout server.key \
-newkey rsa:2048 -nodes -sha256 -extensions EXT -subj '/CN=server' \
-config <(printf "[dn]\nCN=server\n[req]\ndistinguished_name = dn\n[EXT]\nsubjectAltName=DNS:localhost,DNS:franciel-pc,IP:10.1.1.5,IP:10.1.1.118\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth\nbasicConstraints=CA:TRUE")

Reference: https://letsencrypt.org/pt-br/docs/certificates-for-localhost/

@frankdors
frankdors / QInputNumber.vue
Created April 10, 2019 15:28
My Custom Quasar Input Number
<script>
import { QInput } from 'quasar'
import { Money } from 'v-money'
import Util from '@services/util'
export default {
// Component <money> and Directive v-money https://github.com/vuejs-tips/v-money
// https://github.com/quasarframework/quasar/blob/v0.17/src/components/input/QInput.js
// https://github.com/quasarframework/quasar/blob/v0.17/src/mixins/input.js
extends: QInput,
@frankdors
frankdors / masked-input-android.js
Last active August 29, 2015 14:06
Ajusta masked-input-plugin pra funcionar no Android
if( /android/i.test( navigator.userAgent ) )
{
// Extende função p/ Funcionar com Android
$.fn.mask = (function( mask ){ return function(){
// Guarda Originais
var input = this, args = arguments, myMask = args[0].replace('?','');
// Coloca toda mascara como Condicional
if( myMask.substring(0,1) !== '?' ){
args[0] = '?'+ myMask;