Skip to content

Instantly share code, notes, and snippets.

View Javlopez's full-sized avatar

Javier Lopez Lopez Javlopez

View GitHub Profile
@Javlopez
Javlopez / main.go
Last active October 20, 2021 21:00
Custom unmarshal
package main
import (
"encoding/json"
"fmt"
"strings"
"time"
)
type DateCreatedAt time.Time
/src # sh tools/start.sh
==> Django setup, Start
==> Environment: Production
==> Django setup, executing: migrate
System check identified some issues:
WARNINGS:
?: (mysql.W002) MySQL Strict Mode is not set for database connection 'default'
HINT: MySQL's Strict Mode fixes many data integrity problems in MySQL, such as data truncation upon insertion, by escalating warnings into errors. It is strongly recommended you activate it. See: https://docs.djangoproject.com/en/3.0/ref/databases/#mysql-sql-mode
Operations to perform:
@Javlopez
Javlopez / main.tf
Created March 20, 2020 17:31 — forked from danihodovic/main.tf
Terraform - static site using S3, Cloudfront and Route53
variable "aws_region" {
default = "eu-west-1"
}
variable "domain" {
default = "my_domain"
}
provider "aws" {
region = "${var.aws_region}"
java.lang.IllegalStateException: No baseURL found in HTTPContext
at org.jboss.arquillian.extension.rest.client.BaseRestEnricher.getBaseURL(BaseRestEnricher.java:110)
at org.jboss.arquillian.extension.rest.client.RestEnricher.enrichByType(RestEnricher.java:46)
at org.jboss.arquillian.extension.rest.client.BaseRestEnricher.resolve(BaseRestEnricher.java:74)
at org.jboss.arquillian.container.test.impl.execution.LocalTestExecuter.enrichArguments(LocalTestExecuter.java:94)
at org.jboss.arquillian.container.test.impl.execution.LocalTestExecuter.execute(LocalTestExecuter.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
@Javlopez
Javlopez / ECS101.txt
Created June 14, 2017 01:47 — forked from brun0d/ECS101.txt
ECS Docker Friends
Crear Cluster
aws ecs create-cluster --cluster-name cdmx
Listar Clusters
aws ecs list-clusters
Describir el Cluster
aws ecs describe-clusters --clusters cdmx
Eliminar cluster
class Button extends React.Component{
state = { counter: 0 };
handleClick = () => {
this.setState((prevState) => ({
counter: prevState.counter + 1
}));
};
render(){
$ sudo pip install awscli
$ aws configure
AWS Access Key ID [None]: AKIAIOSFODNN7EXAMPLE
AWS Secret Access Key [None]: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
Default region name [None]: us-west-2
Default output format [None]: json
$ aws ec2 create-security-group --group-name devenv-sg --description "security group for development environment in EC2"
{
"GroupId": "sg-b018ced5"
  1. Update by csv

    When we upload csv, only update (replace the quantity) catalog_supplier_stock

catalog_warehouse_stock (own stock) catalog_supplier_stock( supplier stock) reserved available stock
10 10 0 20

csv: GR843EL85HVILAVEN-68580:3

git config alias.rename 'git $1'
git config alias.rename '!git show $1'
git checkout $1 && git reset --hard remotes/origin/$1 &&git branch -m $1 $2 && git push origin :$1 && git checkout $2 && git push origin $2
git config alias.rename '!git checkout $1 && git reset --hard remotes/origin/$1 &&git branch -m $1 $2 && git push origin :$1 && git checkout $2 && git push origin $2'
git config alias.rename '!git checkout $1 && git reset --hard remotes/origin/$1 && git branch -m $1 $2 && git push origin :$1 && git checkout $2 && git push origin $2'
it branch -m MX-RC/1.41.0 MX-RC/1.42.0 && git push origin :MX-RC/1.41.0 && git checkout MX-RC/1.42.0 && git push origin MX-RC/1.42.0

ClickBus esta en búsqueda de un Desarrollador Senior PHP que tenga las siguientes habilidades:

-Haya programado en lenguaje PHP, programación orientada a objetos, patrones de diseño, MVC, MySQL; PHP (Symfony2, Zend), ORM (Doctrine2, Propel),Control de versiones (Git), Testing (PHPUnit, Behat).

-Si has trabajado con Karma/jasmine, Sass, AngularJS, Aplicaciones RESTful, integración continua o metodología agiles es un plus.

-Tenga amplio dominio en herramientas principales (PHP, HTML, CSS, HTML5, CSS3, Javascript, jQuery)

Debes Tener: