docker run -u 0 -d --name jenkins -p 8080:8080 -v /var/jenkins_home ticketfly/jenkins-example-gradle-build
` docker run -u 0 -d --name jenkins -p 8080:8080 -v /var/jenkins_home:/var/jenkins_home jenkins/jenkins:lts
| # create a local .env file with the following 4 properties: | |
| # | |
| # MYSQL_DATABASE=<something> | |
| # MYSQL_USER=<something> | |
| # MYSQL_PASSWORD=<something> | |
| # MYSQL_ROOT_PASSWORD=<something> | |
| # | |
| # Note: I have had a LOT of issues working with anything newer then Docker Desktop v4.26.1 | |
| # If you're on something newer, then double check against this release. | |
| # |
| UPDATE wp_options SET option_value = REPLACE ( option_value, 'http://dominioantiguo.com', 'http://dominionuevo.com' ); | |
| UPDATE wp_posts SET guid = REPLACE ( guid, 'http://dominioantiguo.com', 'http://dominionuevo.com'); | |
| UPDATE wp_posts SET post_content = REPLACE ( post_content, 'http://dominioantiguo.com', 'http://dominionuevo.com' ); | |
| UPDATE wp_postmeta SET meta_value = REPLACE ( meta_value, 'http://dominioantiguo.com', 'http://dominionuevo.com' ); |
| <?php | |
| /*Cambiar directorio de archivos*/ | |
| define('UPLOADS', 'media'); | |
| /*Desactivar editor del panel de administración*/ | |
| define('DISALLOW_FILE_EDIT', true); | |
| /*Limitar el número máximo de revisiones por post*/ | |
| define('WP_POST_REVISIONS', 3); |
| Options -Indexes |
| RewriteEngine On | |
| RewriteCond %{HTTPS} !=on | |
| RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE] |
| <?php | |
| /** | |
| * simple method to encrypt or decrypt a plain text string | |
| * initialization vector(IV) has to be the same when encrypting and decrypting | |
| * | |
| * @param string $action: can be 'encrypt' or 'decrypt' | |
| * @param string $string: string to encrypt or decrypt | |
| * | |
| * @return string | |
| */ |