server {
server_name www.domain.com domain.com;
charset utf-8;
location /blog/ {
proxy_pass https://blog.domain.com;
proxy_redirect off;
This file contains 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/sh | |
. /root/.nvm/nvm.sh | |
export WEBHOOK_URL="" | |
nameBot="Deploy" | |
project=frontend-web | |
curl -H "Content-Type: application/json" -d '{"username": "'"$nameBot"'", "content": "Deployando '"$project"'"}' $WEBHOOK_URL | |
mkdir /var/www/$project/builds/"build-$(date +"%Y%m%d%M%S")" | |
cd /var/www/$project/builds |
This file contains 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
<template> | |
<div :style="{opacity: opacity}"> | |
<slot /> | |
</div> | |
</template> | |
<script> | |
import VueGoogleMaps from "map-element.js"; | |
export default { | |
mixins: [VueGoogleMaps], | |
props: { |
This file contains 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
const removeOverlay = () => { | |
const overlay = document.getElementById('signwall-app') | |
overlay.remove() | |
const body = document.querySelector('body') | |
body.classList.remove('overflow-hidden') | |
body.style.overflow = 'scroll' | |
const html = document.querySelector('html') | |
html.classList.remove('overflow-hidden') |
This file contains 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/sh | |
projectname=$1; | |
# sh deploy-node [name] | |
cd /var/www; | |
mkdir $projectname; | |
cd $projectname; | |
touch ".env"; | |
touch ".env"; | |
mkdir builds; |
This file contains 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
document.addEventListener('wpcf7invalid', function (event) { | |
console.log('wpcf7invalid') | |
}, false); | |
document.addEventListener('wpcf7spam', function (event) { | |
console.log('wpcf7spam') | |
}, false); | |
document.addEventListener('wpcf7mailsent', function (event) { | |
console.log('wpcf7mailsent') |
This file contains 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
<div class="modal" id="modal-1"> | |
<div class="modal-box"> | |
<div class="modal-close"> | |
<div class="icon-close"></div> | |
</div> | |
<div> | |
<!-- content --> | |
</div> | |
</div> | |
</div> |
This file contains 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
setInterval(() => { | |
const newNumber = Math.floor(Math.random() * 10) | |
document.querySelector("#composerInput").value = 'soy otro del oto boot ' + newNumber | |
document.querySelector("#u_0_3o > input[type=hidden]").value = 'soy otro del oto boot ' + newNumber | |
document.querySelector("#comment_form_100000476487163_4034457913246718 > div._7om2._2pin._2pi8._4-vo > div:nth-child(3) > button").disabled = false; | |
document.querySelector("#comment_form_100000476487163_4034457913246718 > div._7om2._2pin._2pi8._4-vo > div:nth-child(3) > button").click(); | |
}, 5000); |
This file contains 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
import Vue from 'vue' | |
export default { | |
install(Vue) { | |
Vue.mixin({ | |
... metodos, computed, etc | |
}) | |
} |
NewerOlder