Skip to content

Instantly share code, notes, and snippets.

View estebanbacl's full-sized avatar

Javier Esteban Bautista Clavijo estebanbacl

View GitHub Profile
@estebanbacl
estebanbacl / main_trustcertificate.go
Last active September 1, 2021 19:22
Validate and test bind trust certificate
package main
import (
"bytes"
"crypto/tls"
"crypto/x509"
"encoding/base64"
"encoding/json"
"encoding/pem"
"fmt"
@estebanbacl
estebanbacl / nginx
Created August 1, 2019 03:21
Route angular nginx
location / {
try_files $uri $uri/ /index.html?$query_string;
}
@estebanbacl
estebanbacl / postgres docker
Created August 1, 2019 01:13
Create postgres docker
docker run --name posttest -d -p 5432:5432 -e POSTGRES_PASSWORD=fred postgres:alpine
import { Component } from '@angular/core';
import { NavController } from 'ionic-angular';
import { UsuariosProvider } from '../../providers/usuarios/usuarios';
@Component({
selector: 'page-contact',
templateUrl: 'contact.html'
})
export class ContactPage {
import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
@Injectable()
export class UsuariosProvider {
constructor(public http: HttpClient) {
console.log('Hello UsuariosProvider Provider');
}
ionic g provider usuarios
set nocompatible
filetype off
filetype plugin indent on
syntax enable
call plug#begin('~/.local/share/nvim/plugged')
Plug 'SirVer/ultisnips'
Plug 'honza/vim-snippets'
Plug 'w0rp/ale'