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
| sudo apt install fail2ban -y | |
| sudo fallocate -l 1G /swapfile | |
| sudo chmod 600 /swapfile | |
| sudo mkswap /swapfile | |
| sudo swapon /swapfile | |
| sudo bash -c 'echo "/swapfile none swap sw 0 0" >> /etc/fstab' | |
| free -h | |
| sudo vim /etc/apache2/mods-available/mpm_prefork.conf |
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
| sudo apt update && apt upgrade -y | |
| sudo apt install apache2 php php-mysql mariadb-server unzip wget | |
| sudo apt install postfix apt-transport-https software-properties-common libapache2-mod-security2 | |
| sudo apt install -y php-curl php-imagick php-mbstring php-zip php-gd php-intl php-xml | |
| sudo snap install aws-cli --classic | |
| sudo a2enmod ssl | |
| sudo a2enmod headers | |
| sudo a2enmod status | |
| sudo a2enmod authz_core |
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
| 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 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
| define('WP_HOME','https://' . $_SERVER['SERVER_NAME']); | |
| define('WP_SITEURL','https://' . $_SERVER['SERVER_NAME']); |
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
| ssh -i ~/.ssh****.pem ubuntu@*.*.*.* | |
| ssh -i ~/.ssh/***.pem ec2-user@*.*.*.* |
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
| # .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 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
| 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 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
| function getNow() | |
| { | |
| return date('Y-m-d H:i:s'); | |
| } | |
| function getNowISO() | |
| { | |
| return date('c', time()); | |
| } |
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
| 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 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
| <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) |
NewerOlder