View solidjs-build-no-chunks.txt
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', |
View wp-config-domain
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']); |
View ssh-aws-ec2
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@*.*.*.* |
View htpasswd
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 |
View vue3-build-no-chunks.txt
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', | |
}) |
View time_helpers_php
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()); | |
} |
View get_ip_php
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']; |
View Global
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) |
View Event_DV
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', { |
View Event_FB
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