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 {defineConfig} from 'vite'; | |
import solid from 'vite-plugin-solid'; | |
export default defineConfig({ | |
plugins: [solid()], | |
build: { | |
target: 'esnext', | |
rollupOptions: { | |
output: { | |
entryFileNames: 'app.js', |
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
define('WP_HOME','https://' . $_SERVER['SERVER_NAME']); | |
define('WP_SITEURL','https://' . $_SERVER['SERVER_NAME']); |
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
ssh -i ~/.ssh****.pem ubuntu@*.*.*.* | |
ssh -i ~/.ssh/***.pem ec2-user@*.*.*.* |
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
# .htaccess | |
AuthType Basic | |
AuthName "Acceso Restringido" | |
AuthUserFile /home/user/app/.htpasswd | |
Require valid-user | |
# bash | |
htpasswd -c /home/user/app/.htpasswd user |
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 {defineConfig} = require('@vue/cli-service') | |
module.exports = defineConfig({ | |
transpileDependencies: true, | |
chainWebpack: config => { | |
config.optimization.splitChunks(false) | |
}, | |
filenameHashing: false, | |
publicPath: '/cpanel/', | |
outputDir: '../public/cpanel', | |
}) |
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
function getNow() | |
{ | |
return date('Y-m-d H:i:s'); | |
} | |
function getNowISO() | |
{ | |
return date('c', time()); | |
} |
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
function getIP() | |
{ | |
if (!empty($_SERVER['HTTP_CLIENT_IP'])) { | |
return $_SERVER['HTTP_CLIENT_IP']; | |
} | |
if (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { | |
$ips = explode(',', $_SERVER['HTTP_X_FORWARDED_FOR']); | |
return trim($ips[0]); | |
} | |
return $_SERVER['REMOTE_ADDR']; |
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
<script> | |
var meta = '{{meta}}'; | |
var ads = '{{ads}}'; | |
var dv = '{{dv}}'; | |
var tt = '{{tt}}'; | |
console.log('[@][gtm:{{gtm}}]'); | |
</script> | |
<!-- Meta Pixel Code --> | |
<script> | |
!function(f,b,e,v,n,t,s) |
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
<script> | |
var event = '{{Event}}'; | |
if (event === 'productViewEvent') { | |
event = 'DC-XXXXXX/1/mcb-01+standard'; | |
} else if (event === 'checkoutEvent') { | |
event = 'DC-XXXXXX/1/mcb-02+standard'; | |
} else if (event === 'paymentSuccess') { | |
event = 'DC-XXXXXX/1/mcb-03+standard'; | |
} | |
gtag('event', 'conversion', { |
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
<script> | |
fbq('trackCustom', '{{Event}}'); | |
console.log('[@][event:fb]', '{{Event}}'); | |
</script> |
NewerOlder