Skip to content

Instantly share code, notes, and snippets.

View djcesar's full-sized avatar

Cesar Vasquez djcesar

View GitHub Profile
@djcesar
djcesar / How do I find and replace a character in filenames
Created November 24, 2022 20:16
How do I find and replace a character in filenames
You can use PowerShell's Rename-Item command:
Get-Item .\path\to\file_name_with_underscores.txt |Rename-Item -NewName {$_.Name.Replace("_", " ")}
You can do this for multiple files at once if desired:
# all relevant files in the current folder
Get-ChildItem . -File -Filter *_* |Rename-Item -NewName {$_.Name.Replace("_", " ")}
# all relevant files in the current folder and all subfolders
@djcesar
djcesar / Comandos powershell para mover archivos a carpeta superior
Created November 24, 2022 16:36
Comandos powershell para mover archivos a carpeta superior
en una estructura del tipo
mainfolder
parentA
sub2
fileA.pdf
parentB
sub2
*BITNAMI*
*PAra buscar archivos grandes*
find / -size +10M -ls
*PAra borrar archivos*
sudo rm -rf /opt/bitnami/apps/wordpress/htdocs/wp-content/ai1wm-backups/nombre-del-file-psquay.wpress
*Obtain the status of a service:*
1. Run the generate certificate script
verificar si existe en /opt/bitnami/letsencrypt
cd letsencrypt/
cd scripts/
sudo ./generate-certificate.sh -m mail@empresa.com -d dominio.com -d www.dominio.com
luego
DNS y
1- Delegar Admin DNS del Domainer al Cpanel
2 - En Cpanel apuntar dominio a AWS y crear registro a para remote email host
3 - Actualizar los MX al remote email host
you can simply configure the additional "A" record for the remote email host. Here's one example of this type of record:
Domain: mailforward
TTL: 14400
Record Type: A
[vc_row full_width=" " content_placement="middle" css=".vc_custom_1539724547664{margin-bottom: -10px !important;padding-bottom: 50px !important;}"][vc_column width="1/2"][vc_btn title="Regístrate gratis" style="custom" custom_background="#43b8d6" custom_text="#ffffff" shape="square" size="lg" align="center" i_icon_fontawesome="fa fa-hand-o-right" css_animation="right-to-left" button_block="true" add_icon="true" link="url:http%3A%2F%2Fwww.elefectocenicienta.com%2Fregistrarse%2F|||"][/vc_column][vc_column width="1/2"][vc_column_text css_animation="left-to-right" css=".vc_custom_1539732685622{margin-top: 40px !important;}"]
<h3 style="margin-bottom: 60px; text-align: center; color: #00bdd7;"><strong>Para ver nuestro plan de contenidos completo.</strong></h3>
[/vc_column_text][/vc_column][/vc_row]
<p style="text-align: center; margin-bottom: 60px;">Cada módulo está dividido en 3 sesiones de trabajo, cada una con un tiempo de dedicación de entre 30 a 60 minutos. Es tu decisión la forma en que los abordes, pero sug
@djcesar
djcesar / 1 - WP Essentials
Last active September 7, 2023 02:56
Wp Plugins, Tools, Tutos
ESENCIALES:
- Duplicate Post Por Enrico Battocchi. (Permitir duplicar entradas y paginas) =>
- WordPress SEO By Yoast Por Joost de Valk (SEO, Site Maps y tb sirve para google webmasters,bing,alexa) => https://www.marketingandweb.es/marketing/w3-total-cache/
- Google Analytics for WordPress Por Joost de Valk =>
- White Label CMS por Video User Manuals =>
- Adminimize Por Frank Bültge (Bloquear menus a users en admin/backend ) =>
- Akismet
- No CAPTCHA reCAPTCHA for WooCommerce por MailOptin Team =>
- Insert Headers and Footers By WPBeginner (agregar scripts en heaader y footers =>
@djcesar
djcesar / class-public.php
Created October 21, 2018 05:39
Custom URL to share - WP Social Sharing
<?php
if($atts['url'] == "")
{
$url = urlencode( get_permalink() );
}
else
{
$url = $atts['url'];
}