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
<? | |
/** | |
MIT License | |
Copyright (c) 2023 Cristian Andrés Tala Sánchez | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
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
# docker-compose.yml | |
# | |
# Author: Cristian Tala Sánchez | |
# License: MIT | |
# Website: https://cristiantala.cl | |
# | |
# Licencia MIT: | |
# | |
# Derechos de autor (c) 2023 Cristian Tala Sánchez | |
# |
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
#Este robots.txt está optimizado para el SEO del sitio wordpress. | |
User-agent: * | |
#Bloqueos de Wordpress | |
Disallow: /wp-admin/ | |
Disallow: /cgi-bin | |
Disallow: /wp-content/plugins/ | |
Disallow: /wp-content/themes/ | |
Disallow: /wp-includes/ | |
Disallow: /wp-login.php #block access to admin section |
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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Deny", | |
"Principal": "*", | |
"Action": "execute-api:Invoke", | |
"Resource": "arn:aws:execute-api:us-west-2:607613765343:80nyvq2u70/*/*/*", | |
"Condition": { | |
"StringNotEquals": { |
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
<?php | |
namespace common\components; | |
use Yii; | |
use yii\web\Application; | |
/** | |
* Reescribo para siempre usar HTTPS si es que la url no es segura | |
* Class MyWebApplication |
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
Resources: | |
SnsPostConfirm: | |
Type: "AWS::SNS::Topic" | |
Properties: | |
TopicName: ${self:custom.snsTopicPostConfirm} | |
DisplayName: Post Confirm User Cognito | |
Outputs: | |
#Name of the topic to use it from other resources | |
SnsPostConfirmNAME: |
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
language: node_js | |
node_js: | |
- 10 | |
cache: | |
directories: | |
- node_modules | |
before_install: | |
- echo "INSTALL GLOBAL DEPENDENCIES" |
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
# Extra Security Headers | |
<IfModule mod_headers.c> | |
Header set X-XSS-Protection "1; mode=block" | |
Header always append X-Frame-Options SAMEORIGIN | |
Header set X-Content-Type-Options nosniff | |
</IfModule> | |
# Solving Cookies created without HTTPOnly and Secure flag | |
php_value session.cookie_httponly 1 | |
php_value session.cookie_secure 1 |
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
################################################################################################### | |
#### Copyright 2019 cristiantala.cl. All Rights Reserved. | |
#### | |
#### Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file | |
#### except in compliance with the License. A copy of the License is located at | |
#### | |
#### http://aws.amazon.com/apache2.0/ | |
#### | |
#### or in the "license" file accompanying this file. This file is distributed on an "AS IS" | |
#### BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
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
'use strict'; | |
const mysql = require('mysql2'); | |
const connectionParams = { | |
host: process.env.DB_HOST, | |
user: process.env.DB_USER, | |
password: process.env.DB_PASS, | |
database: process.env.DB_NAME, | |
port: process.env.DB_PORT, | |
}; |
NewerOlder