This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
root /app/dir; | |
index index.php index.html; | |
client_max_body_size 20M; | |
send_timeout 300; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"ola": "mundo" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
let walk = function() { | |
return 'Walking...' | |
} | |
let talk = function() { | |
return this.sound | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openModalSelectValues: function(product) { | |
var _this = this; | |
var getAttributesURL = '{{apiUrl}}/attributes?fields[attributes]=id,name&sort=name'; | |
var attrs = []; | |
_this.configurable_product.modal.product = product; | |
_this.configurable_product.modal.attributes = []; | |
var s1 = new Promise(function(resolve, reject) { | |
_this.$http.get(getAttributesURL).then((response) => { | |
resolve(response.data.data); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openModalSelectValues: function(product) { | |
var _this = this; | |
var getAttributesURL = '{{apiUrl}}/attributes?fields[attributes]=id,name&sort=name'; | |
var attrs = []; | |
_this.configurable_product.modal.product = product; | |
_this.configurable_product.modal.attributes = []; | |
_this.$http.get(getAttributesURL).then((response) => { | |
var attributes = response.data.data; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# This script configures WordPress file permissions based on recommendations | |
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions | |
# | |
# Author: Michael Conigliaro <mike [at] conigliaro [dot] org> | |
# | |
WP_OWNER=www-data # <-- wordpress owner | |
WP_GROUP=www-data # <-- wordpress group | |
WP_ROOT=$1 # <-- wordpress root directory |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Marco Damaceno |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"order_id": 202, | |
"delivery_date": "2016-02-29 18:17:22", | |
"client": { | |
"first_name": "Marco Antonio", | |
"last_name": "Damaceno", | |
"email": "[email protected]" | |
}, | |
"items": [ | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
call plug#begin('~/.vim/plugged') | |
Plug 'junegunn/vim-easy-align' | |
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } | |
Plug 'morhetz/gruvbox' | |
Plug 'tomasr/molokai' | |
Plug 'sickill/vim-monokai' | |
Plug 'the31k/vim-colors-tayra' | |
Plug 'KKPMW/moonshine-vim' | |
Plug 'terryma/vim-multiple-cursors' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
'SELECT SETVAL(' ||quote_literal(S.relname)|| | |
', MAX(' ||quote_ident(C.attname)|| | |
') ) FROM ' ||quote_ident(T.relname)|| ';' | |
FROM | |
pg_class AS S | |
,pg_depend AS D | |
,pg_class AS T | |
,pg_attribute AS C | |
WHERE |