Skip to content

Instantly share code, notes, and snippets.

View zazk's full-sized avatar
:octocat:
Let's talk about Javascript & DevOps

Enrique Juan de Dios zazk

:octocat:
Let's talk about Javascript & DevOps
View GitHub Profile
@zazk
zazk / README.md
Created September 3, 2018 12:45 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.


@zazk
zazk / WebsiteChecklist.md
Last active August 24, 2018 14:53
Website Checklist

Website Checklist

  • Add Analytics Report
  • All the forms should have captcha.
  • All the list should have limits.
  • Review the excerpt in all homepage(Sometimes prints extend the space that is designed)
  • Should configure the best to SEO techniques
  • Links should work on images as [Read More..] links
  • Every Page and Section should have Title Tag and be unique for each page
  • Every Page should have a description meta tag.
  • Every Form should have Captcha.
@zazk
zazk / distritos.html
Created August 4, 2018 00:28
Distritos Lima Callao HTML
<select>
<option value="">Seleccione</option>
<option value="">ANCON</option>
<option value="">ATE</option>
<option value="">BARRANCO</option>
<option value="">BREÑA</option>
<option value="">CARABAYLLO</option>
<option value="">CHACLACAYO</option>
<option value="">CHORRILLOS</option>
<option value="">CIENEGUILLA</option>
@zazk
zazk / migrate.sh
Created January 10, 2018 23:48
Overweight Migrate Bash
#!/usr/bin/env bash
#parametros localhost
db_host='192.168.10.12'
db_name='appetize_ci'
db_user='vagrant'
db_password='vagrant'
#database conection
@zazk
zazk / CorisFilter.java
Created December 18, 2017 15:22 — forked from kdonald/CorisFilter.java
Basic Cross Origin Resource Sharing (CORS) support
package org.springframework.web.servlet.support;
import java.io.IOException;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.web.filter.OncePerRequestFilter;
@zazk
zazk / openbrowser.go
Last active November 21, 2017 17:05 — forked from hyg/gist:9c4afcd91fe24316cbf0
open browser in golang
import(
"runtime"
"log"
)
func openbrowser(url string) {
var err error
switch runtime.GOOS {
case "linux":
err = exec.Command("xdg-open", url).Start()
@zazk
zazk / duplicates.set.value.sql
Created November 13, 2017 15:19
Temporary Table set value.
CREATE TEMPORARY TABLE IF NOT EXISTS duplicates AS (SELECT mto.id
FROM talleres mto
WHERE EXISTS
(
SELECT 1
FROM talleres mti
WHERE mti.latitud = mto.latitud and mti.longitud = mto.longitud
LIMIT 1, 1
)
order by id );
@zazk
zazk / select.all.rows.duplicates.values.sql
Last active November 10, 2017 19:29
Select all Row Duplicates
SELECT mto.id ,mto.latitud, mto.longitud
FROM talleres mto
WHERE EXISTS
(
SELECT 1
FROM talleres mti
WHERE mti.latitud = mto.latitud and mti.longitud = mto.longitud
LIMIT 1, 1
)
order by mto.id
@zazk
zazk / tmux-tmuxinator-setup.md
Created November 6, 2017 15:33 — forked from colmarius/tmux-tmuxinator-setup.md
Project start/stop with tmux + tmuxinator

1. Install tmux + tmuxinator

gem install tmuxinator

2. Add ~/.tmuxinator project specific configurations

# File: ~/.tmuxinator/project-name.yml

name: project-name
@zazk
zazk / while.php
Last active October 30, 2017 17:25
Taxonomy Recursive
<?php
$namelinea = $_POST['termname'];
$args = array(
'post_type' => 'productos',
'posts_per_page' => 3,
'taxonomy' => 'linea-maquinaria',
'term' => $namelinea, //slug de terminos
'nopaging' => true, // to show all posts in this taxonomy, could also use 'numberposts' => -1 instead