Skip to content

Instantly share code, notes, and snippets.

View kevinnio's full-sized avatar

Kevin Perez kevinnio

View GitHub Profile
Enterprise Key Buyer Organization Code Order No Revenue Requested Ship Date Order Date Status
5117452 SP_FL_55686 15 9/6/17 14:33 3300.100-Waved
5117452 SP_FL_55994 16.09 9/8/17 19:22 1300-Backordered
5117452 SP_FL_56005 20 9/9/17 1:32 3300.100-Waved
5117452 SP_FL_56070 15 9/9/17 10:56 3300.100-Waved
5117452 SP_FL_56449 15 9/12/17 14:14 3300.200-Picked
5117452 SP_FL_56454 15 9/12/17 16:02 3300.200-Picked
5117452 SP_FL_56599 15 9/13/17 13:49 3300.300-Manifested
5117452 SP_FL_56600 15 9/13/17 14:00 3300.300-Manifested
5117452 SP_FL_56601 0 9/13/17 14:06 3300.100-Waved
@kevinnio
kevinnio / deploy.sh
Last active July 5, 2017 18:50
Script para deplegar el SIIUTeM
#! /bin/bash
set -e
# ssh siiutem.net php artisan down
# Desplegar siiutem-repositorios
cd vendor/utem-dsi/siiutem-repositorios
git push origin develop:develop
# Desplegar siiutem

Opción 1: Los artículos de cada pedido guardados en su fila dentro de pedidos.

Tabla pedidos:

id cliente_id articulos_json total_articulos total_pesos creado_en
1 45 "[{id: 1, cantidad: 1, precio: 50.00}, {id: 2, cantidad: 3, precio: 10.00}]" 2 80.00 2017-06-08 19:43:00
2 72 "[{id: 5, cantidad: 6, precio: 15.00}, {id: 9, cantidad: 2, precio: 32.00}]" 8 154.00 2017-06-08 19:50:00
3 13 "[{id: 13, cantidad: 100, precio: 15.00}]" 100 150.00 2017-06-08 19:55:00
@kevinnio
kevinnio / .profile
Created June 6, 2017 22:09
.profile file
source ~/.phpbrew/bashrc
export PATH="./:./vendor/bin:~/bin:$PATH"
export HISTCONTROL=ignoreboth:erasedups
export ANDROID_SDK_ROOT=/usr/local/share/android-sdk
# Aliases de Git
alias g='git'
alias gss='git status'
alias gbr='git branch'
alias gs='git status -s -unormal'
{
"comments": [
{
"id": 1,
"profilePhoto": "http:\/\/lorempixel.com\/200\/200\/?40195",
"postUserName": "Jerod Turcotte",
"postDateTime": "2016-05-06 19:10:13",
"comment": "Eum assumenda enim itaque et dolore. Saepe nihil sunt saepe velit architecto. Perspiciatis eos sapiente molestiae ullam. Voluptatem architecto enim quod."
},
{
@kevinnio
kevinnio / feeds.json
Last active May 30, 2016 18:44
Example of json feeds
{
"feeds": [
{
"id": 1,
"profilePhoto": "http:\/\/lorempixel.com\/200\/200\/?71382",
"postUserName": "Jenifer Hyatt",
"postDateTime": "2016-05-09 23:20:00",
"comment": "This is an example feed.",
"postImage": "http:\/\/lorempixel.com\/640\/480\/?58024",
"postTitle": "Example feed #1",
@kevinnio
kevinnio / swap_php.bash
Created July 18, 2015 07:59
Swap php versions automatically using phpbrew
#
# Find up a file in a directory hierarchy.
#
# @param $1 File to find
#
# @return Path to the nearest file location.
#
# @see http://unix.stackexchange.com/questions/6463/find-searching-in-parent-directories-instead-of-subdirectories
#
find_up() {
PS1="\[$Red\]\d \t \[$Yellow\][\W]\[\033[m\]\[$Cyan\]\$(__git_ps1)\n\[$Green\]\u@\h\[$White\] ~>: "
# Reset
Color_Off='\e[0m' # Text Reset
# Regular Colors
Black='\e[0;30m' # Black
Red='\e[0;31m' # Red
Green='\e[0;32m' # Green
Yellow='\e[0;33m' # Yellow
Blue='\e[0;34m' # Blue
Purple='\e[0;35m' # Purple
@kevinnio
kevinnio / gist:1ca6260446da9406e10a
Created January 30, 2015 17:41
composer update -vvv --profile : third time
[3.6MB/0.05s] Reading ./composer.json
[3.8MB/0.05s] Loading config file ./composer.json
[4.2MB/0.06s] Executing command (CWD): git describe --exact-match --tags
[4.4MB/0.37s] Executing command (CWD): git branch --no-color --no-abbrev -v
[5.7MB/0.60s] Reading /home/kevinkdpm/.composer/composer.json
[5.7MB/0.60s] Loading config file /home/kevinkdpm/.composer/composer.json
[5.7MB/0.60s] Executing command (CWD): git describe --exact-match --tags
[5.7MB/0.63s] Executing command (CWD): git branch --no-color --no-abbrev -v
[7.3MB/1.17s] Loading composer repositories with package information
[7.7MB/1.22s] Downloading https://packagist.org/packages.json