Skip to content

Instantly share code, notes, and snippets.

View alexmoreno's full-sized avatar

Alex M. alexmoreno

View GitHub Profile
echo "Setting new site $1"
directory="/var/www/html/$1"
echo "- Creating directory $1"
mkdir $directory
echo "- Copying backup files"
cp ~/base/kickstart.php $directory/kickstart.php
cp ~/base/base3.jpa $directory/base3.jpa
mounted() {
let startingPromises = [
this.$store.dispatch('produtos/load_marcas_data'),
this.$store.dispatch('produtos/load_categorias_data'),
this.$store.dispatch('produtos/load_produtos_tipo_data'),
this.$store.dispatch('produtos/load_tags_data'),
]
Promise.all(startingPromises).then((resolve) => {
this.$nextTick(function () {
This file has been truncated, but you can view the full file.
{
"items": [
{
"index": 1,
"index_start_at": 56,
"integer": 24,
"float": 11.4677,
"name": "Jennifer",
"surname": "Hodge",
@alexmoreno
alexmoreno / gist:36e46585d1fe59b4f00f917472a3daf6
Created July 20, 2018 17:54
serve.json - Allow CORS at zeit/serve
{
"headers": [
{
"source" : "*",
"headers" : [{
"key" : "Access-Control-Allow-Origin",
"value" : "*"
}]
}, {
"source" : "*",