Skip to content

Instantly share code, notes, and snippets.

View hawkapparel's full-sized avatar

Christian Tamayo hawkapparel

View GitHub Profile
@hawkapparel
hawkapparel / input.scss
Created August 10, 2021 16:18 — forked from kaelig/input.scss
Different Shades of transparent colors with Sass
// Transparent Background
// From: http://stackoverflow.com/questions/6902944/sass-mixin-for-background-transparency-back-to-ie8
// Extend this class to save bytes
.transparent-background {
background-color: transparent;
zoom: 1;
}
// The mixin
@hawkapparel
hawkapparel / ubigeos_peru.html
Created September 23, 2020 14:53
Selects de departamentos, provincias y distritos de Perú, ejemplo html y js
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>UBIGEO PERÚ</title>
<script src="ubigeo.js"></script>
</head>
<body>
@hawkapparel
hawkapparel / sql_departamentos_provincia_distrito_peru.sql
Last active May 14, 2024 17:57
Departamentos, distritos y provincias de peru en SQL
DROP TABLE IF EXISTS departamento;
CREATE TABLE departamento(
id_departamento varchar(2) NOT NULL,
descripcion varchar(30)
);
INSERT INTO departamento (id_departamento, descripcion) VALUES('01', 'Amazonas');
INSERT INTO departamento (id_departamento, descripcion) VALUES('02', 'Áncash');
INSERT INTO departamento (id_departamento, descripcion) VALUES('03', 'Apurímac');
@hawkapparel
hawkapparel / vueautocomplete.vue
Created July 25, 2020 03:02
Autocomplete Vuejs + Nuxt + Advanced properties
<template>
<nav class="navbar-navigate bg-white">
<div class="navbar container">
<button id="btn-menu-burguer" class="btn-sandwich btn-icon-menu-mobile btn bg-white" @click.prevent="openMenuCategories">
<!-- <i class="icon-menu iconout material-icons d-block">menu</i> -->
<span></span>
<span></span>
<span></span>
</button>
@hawkapparel
hawkapparel / yourdomain.com.conf
Created July 2, 2020 01:50
Configuratión for virtual host nginx with proxy for yourdomain.com
map $sent_http_content_type $expires {
"text/html" epoch;
"text/html; charset=utf-8" epoch;
default off;
}
server {
server_name yourdomain.com www.yourdomain.com; # setup your domain here
gzip on;
@hawkapparel
hawkapparel / _p_slug.vue
Last active February 15, 2020 10:33
Dynamic URL for products, ecommerce in Nuxt
<template>
<div class="mi-producto">
{{ product }}
</div>
</template>
<script>
import { mapState } from 'vuex';
export default {
@hawkapparel
hawkapparel / LetsEncrypt+certbot+UFW+postfix+dovecot.md
Created November 8, 2019 20:30 — forked from mrothNET/LetsEncrypt+certbot+UFW+postfix+dovecot.md
Let's Encrypt / Dovecot / Postfix / UFW firewall / Certbot

Let's Encrypt / Dovecot / Postfix / UFW firewall / Certbot

This tutorial describes how to install TLS to a mail server consisting of Postfix and/or Dovecot by using Let's Encrypt certificates with automatic renewing and firewall management.

The system used for this tutorial was:

$ lsb_release -idrc
Distributor ID: Ubuntu
@hawkapparel
hawkapparel / Json para interna de productos
Created October 18, 2019 06:31
Json para la interna de los productos de la tienda
{
"status": 1,
"code": 200,
"msg": "OK",
"data": [
{
"name": "Macacão longo",
"brand": "Urso marinho",
"model": "18-1056",
"price": 64.60,
@hawkapparel
hawkapparel / Json para secciones principales
Last active October 21, 2019 15:44
Json para secciones principales con paginado, filtros y listado de productos.
{
"status": 1,
"code": 200,
"msg": "OK",
"data": [
{
"banner": [
{
"title": "bebés",
"subtitle": "Sección donde podrás encontrar ropa infantil para bebés",
@hawkapparel
hawkapparel / Json para secciones principales
Created October 15, 2019 10:17
Json para secciones principales con paginado, filtros y listado de productos.
{
"status": 1,
"code": 200,
"msg": "OK",
"data": [
{
"banner": [
{
"title": "bebés",
"subtitle": "Sección donde podrás encontrar ropa infantil para bebés",